Synchronet v3.20d-Win32 (install) has been released (Mar-2025).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
module:postmsg [2018/03/01 12:21] – old revision restored digital manmodule:postmsg [2025/03/29 15:07] (current) – Update the help output to match the current version in Git digital man
Line 1: Line 1:
-====== Postmsg ======+====== Post Message ======
  
-This module replaces the functionality of the ''[[util:smbutil]] i'' command and is the recommended method for auto-posting (or e-mailing) messages.+The Synchronet Post Message module replaces the functionality of the ''[[util:smbutil]] i'' command and is the recommended method for auto-posting (or e-mailing) messages. You should be able to find the source for this module (''postmsg.js'') in your Synchronet ''[[dir:exec]]'' directory.
  
 ===== Usage ===== ===== Usage =====
Line 7: Line 7:
 The postmsg module may be executed from the Synchronet Terminal Server (e.g. as //Timed Event// or using the '';EXEC'' sysop command) with a ''?'' prefix (e.g. ''?postmsg -option sub-code''), or it may be executed from an operating system command prompt via [[util:JSexec]]. The postmsg module may be executed from the Synchronet Terminal Server (e.g. as //Timed Event// or using the '';EXEC'' sysop command) with a ''?'' prefix (e.g. ''?postmsg -option sub-code''), or it may be executed from an operating system command prompt via [[util:JSexec]].
  
-The command-line syntax is very similar to the import (''i'') command supported by [[util:smbutil]].+The command-line syntax is very similar to the import (''i'') command supported by ''[[util:smbutil]]''.
  
 ==== Syntax ==== ==== Syntax ====
Line 13: Line 13:
 usage: postmsg.js [-option] [-option] [...] <sub-code> usage: postmsg.js [-option] [-option] [...] <sub-code>
  
-<sub-code> must be a valid sub-board (msgbase) internal code+<sub-code> must be a valid sub-board (msgbase) internal code or 'mail'
  
 options: options:
-        -i<filename>  import text from filename rather than stdin+        -i<filename>  import body text from filename rather than stdin
         -t<name>      set 'to' user name         -t<name>      set 'to' user name
         -n<addr>      set 'to' netmail address         -n<addr>      set 'to' netmail address
Line 23: Line 23:
         -e<number>    set 'from' user number         -e<number>    set 'from' user number
         -s<subject>   set 'subject'         -s<subject>   set 'subject'
 +        -D<date>      set message date in numeric format
 +        -T<date/time> set message date and time in string format supported by JS Date()
         -d            use default values (no prompt) for to, from, and subject         -d            use default values (no prompt) for to, from, and subject
 +        -F            set file request attribute flag
  
 Note: You may need to enclose multi-word options in quotes (e.g. "-fMy Name") Note: You may need to enclose multi-word options in quotes (e.g. "-fMy Name")
Line 29: Line 32:
  
 ===== See Also ===== ===== See Also =====
-  * [[:module:|module index]]+  * [[:module:|Modules]] 
 +  * [[:module:Bulkmail]] module
  
-{{tag>smb smbutil}}+{{tag>smb smbutil jsutil}}