Post Message
The Synchronet Post Message module replaces the functionality of the 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 exec
directory.
Usage
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 JSexec.
The command-line syntax is very similar to the import (i
) command supported by smbutil
.
Syntax
usage: postmsg.js [-option] [-option] [...] <sub-code> <sub-code> must be a valid sub-board (msgbase) internal code or 'mail' options: -i<filename> import body text from filename rather than stdin -t<name> set 'to' user name -n<addr> set 'to' netmail address -u<number> set 'to' user number -f<name> set 'from' user name -e<number> set 'from' user number -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 -F set file request attribute flag Note: You may need to enclose multi-word options in quotes (e.g. "-fMy Name")