|
NAMErnews - Inject individual articles and UUCP batches into INNSYNOPSISrnews [-abdNUv] [-h host] [-P port] [-rS server] [file]DESCRIPTIONrnews injects either individual articles or UUCP-style article batches into an INN server. It submits articles via IHAVE and is suitable for injecting articles received from other sources; local postings should generally use inews(1) instead. It is also used to process spooled messages created by, for example, nnrpd while innd is not available.If authentication credentials are present for the remote server in the passwd.nntp file in pathetc, then rnews will use them to authenticate. The message is read from file if given, spooled files (with the -U flag) or standard input if no file is given. Articles are sent to the server given in the -r or -S command line options if given, otherwise to the server set via nnrpdposthost in inn.conf, otherwise to the local server. When sent over UUCP, Usenet articles are typically collected in a single batch to reduce the UUCP overhead. Batches can also be compressed to reduce communication time. If the input to rnews does not begin with the characters "#!", it is taken to be a single news article; otherwise, the first line of the input is interpreted as a batch command. If the batch command is: #! rnews <number> then the next <number> bytes (starting with the next line) are read as a news article. After that article is processed, the next line is again treated as a batch command. If the command is: #! cunbatch then the rest of the input is fed to "gzip -d" to uncompress it, and then the resulting uncompressed output is re-read as if it were the original input to rnews. A compressed batch should therefore start with this line and contain a batch of articles separated by "#! rnews" lines and then compressed with compress(1). (Batches compressed with gzip(1) should instead use "gunbatch" as the batch command; INN just uses gzip rather than compress because it can handle compress-style compression but is more widely available, due to old patent issues, than compress.) Otherwise, if the command is any other word and the -a flag is not given, rnews will try to execute a program with that name, looking for it in the directory pathbin/rnews.libexec. The rest of the batch will be fed to that program's standard input, and the standard output from the program will be treated as if it were the original input to rnews. INN comes with three such standard batch processors:
OPTIONS
BUGSrnews cannot process articles that have embedded nul characters in them. (Neither can the rest of INN at present.)HISTORYWritten by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Rewritten in POD by Russ Allbery <eagle@eyrie.org>.SEE ALSObzip2(1), compress(1), gzip(1), inn.conf(5), innd(8), nnrpd(8), passwd.nntp(5).
Visit the GSP FreeBSD Man Page Interface. |