|-s||Pipe output to snstore directly, do not write to standard output. This is so the exit status is not lost in a shell pipeline. If you use this flag, it is also a good idea to also use -c (tell snstore to check if article already exists).|
snmail also accepts options intended for
-n, and these are passed on uninterpreted.
prefix is the prefix of the newsgroup; if not specified, it defaults to local. (note the trailing .). prefix may not begin with a . (dot) but it may be empty.
listname completes the newsgroup name; if not specified, it is the local part of the address in the Return-Path: line if it exists and isnt empty; otherwise it is the local part of the messages first From:. So if the message originated from the list <firstname.lastname@example.org>, then the default newsgroup becomes local.linux-lemmings. listname may be empty if prefix isnt.
You may want to have a file /var/spool/news/prefixlistname/.nopost to deny posting from all and sundry, to prevent the mailing list newsgroup from being contaminated.
prefix and listname may contain uppercase characters; these are converted to lower case.
There are two ways of forwarding mail to the sn news spool: directly from a users mail address; or forwarded to a central address and then invoking snmail. The central concern here is permissions; while anyone can run snmail, not everyone may store mail in the spool. Mail setups vary a lot, so basically youre on your own here.
SNROOT If this is set and is not empty, the value is used in place of /var/spool/news, the default news spool directory.
PATH If -s was specified, determines where to look for snstore, before looking in /usr/local/sbin.
snmail exits 0 if the message was successfully converted and written, or if the message ID already exists in the ID database and the message was not stored or converted.
snmail exits with 1 on usage error, 2 on operational error, 3 if the mail message wasnt in the proper format.
|N.B.||SNMAIL,V0.3.8 (8)||Harold Tay|