Section: Maintenance Commands (8)Updated: Harold TayLocal indexUp
snsend - distribute articles
snstore - store articles locally
reads articles from descriptor 0 and distributes each one
into each newsgroup they are posted to, like
does the same but stores them all locally.
The input articles are expected to be in wire format (lines end with CRLF,
leading dots are doubled, and articles are terminated with a lone
Control messages are not treated specially.
The newsgroups list is taken from the
field if it exists; otherwise it is taken from the
field, which must exist or the article will be
All fields whose names begin with
(case insensitive) are always removed.
are not present, these are created.
The local hosts name is prepended to the
If an article is to be
it is sent to the junk newsgroup if
it exists, otherwise it is discarded.
This applies only to
does not route; it treats all
as though they were local (see
If any of the following fails,
an article is (cross-) posted to,
routes the article as follows, aborting if any action fails:
is not a directory,
are thus ignored, the article is
is a (symlink to a) directory,
stores the article into a file in that directory, if the same
article does not already exist there (so
upstream feed doesn't get multiple copies of the same article.)
Such in-transit article files are given names that begin with a
Local processing via script
is a regular file, it is taken to be a script or program and is run
with the article available on its input. See
Local processing via fifo
is a fifo, the article is written into it. It is an error if
nothing is reading the fifo.
does not exist, the article is stored into
Options apply to
The article stream is in rnews batch format, rather than wire
format. Only the
form is understood.
If an article already exists in the local newsgroup it is destined
for, don't store it there. For
this option has no effect on newsgroups
that are not local.
(Aliases not allowed.)
When storing to multiple local newsgroups, do not alias subsequent
copies to the first, instead, make a copy. Aliasing saves disk
space, but when the original expires, so do all aliases to it.
This option has no effect on newsgroups that
are not local.
Don't actually do anything with the article, just dump it back onto
For each article stored in each newsgroup, output a line to
descriptor 1 similar to what
would emit, except that for non-local newsgroups the serial number
will always be 0.
newsgroup if it exists.
Each such directory represents the newsgroup of the same name, and
articles are stored in files
etc. beneath it. Each such file contains 1 or more articles.
This is contrary to the traditional form of
above. The presence of this directory indicates that
is global, and articles posted to
end up here in files named
These files are linked in already complete, so all such files are
ready to be uploaded.
If this file exists, articles stored in
are candidates for compression. The content of the file is a number
representing a minimum article body size below which compression
won't be applied. If the file is empty this threshold defaults to
If this file exists, it's contents are taken to be the local hosts
name for purposes of the
field. Otherwise the name is obtained from
for other variables exported when
invokes a .outgoing program.
If this is set, its value is used in place of /var/spool/sn.
exit 0 on success, 1 on usage error, 2 on system error, 3 on
article format error, and 9 if
only) exits with other than 0.