RNEWS(1)
π NAME β rnews π
okay so bestie, meet rnews π β it injects individual articles and UUCP batches. That's the NAME tea: inject individual articles and UUCP batches β¨
β¨ SYNOPSIS β¨
rnews [-abdNUv] [-h host] [-P port] [-rS server] [file]
π DESCRIPTION π
so rnews injects either individual articles or UUCP-style article batches into a local or remote news server π°οΈ. It submits articles via IHAVE and is suitable for injecting articles received from other sources; local postings should generally use inews(1) instead, bestie. It's 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 at "127.0.0.1", and finally to the server set via server in inn.conf. That order, no cap π«Ά.
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:
bunbatchβ it invokesbzip2and should be used for batches compressed withbzip2.c7unbatchβ it undoes an ASCII encoding to recover the original binary compressed stream and then decompresses it as explained above.gunbatchβ it invokesgzipand should be used for batches compressed withgzip.
πΈ OPTIONS πΈ
-aβ by default,rnewslooks for additional unpackers in thernews.libexecsub-directory ofpathbin(as set ininn.conf). If-ais given, no additional batch processor will be used; onlyrnewsandcunbatchwill be recognized as valid batch commands.-bβ by default,rnewswill log and discard any articles that are rejected by the server or cannot be parsed byrnewsfor some reason (such as a missing header field). If-bis given, rejected articles will also be backed up in thebadsub-directory ofpathincoming(as set ininn.conf).-dβ if-dis given,rnewswill log via syslog themessage-IDand thePathheader field body of each article rejected as a duplicate by the server.-h hostβ if-his given,rnewswill log the message ID andhostvia syslog for each article that it offers to the server. This is used in conjunction with a UUCP feed to get a log of the messages received via that feed. This will also be done if the environment variableUU_MACHINEis set, but will only be done ifhostis not an empty string. (You can therefore turn off logging even ifUU_MACHINEwill be set by passing the flag-h ''tornews.)-Nβ normally, if unpacking the input batch fails, it is re-spooled topathincomingfor another attempt later. If the-Nflag is given, no such re-spooling is done andrnewswill instead exit with status9if unpacking fails.-P portβ useportas the server port to connect to rather thannnrpdpostport(as set ininn.conf). Note that this value is only used ifrnewsdoes not connect to the local server (in other words, when-ror-Sis given ornnrpdposthostis set).-r server,-S serverβ-rand-Sare synonymous. If either is given, articles will be sent toserverrather than using the local server, overriding also the setting ofnnrpdposthostininn.conf.-Uβ if the server is not available, bothrnewsandnnrpdwill spool posts to new files in thepathincomingdirectory (as specified ininn.conf). Whenrnewsis invoked with the-Uoption, it scans that directory and processes all spooled messages found there whose filenames do not begin with., attempting to send them to the server again. It's a good idea to run this periodically out ofcronto pick up any articles spooled due to temporary server unavailability.-vβ enable verbose mode, with more traces, notably logging the reason why articles are rejected by the server.
π BUGS π
π¨ real talk, bestie: rnews cannot process articles that have embedded null characters in them. (Neither can the rest of INN at present.)
π¦ HISTORY π¦
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Rewritten in POD by Russ Allbery <eagle@eyrie.org>.
π₯ SEE ALSO π₯
bzip2(1), compress(1), gzip(1), inews(1), inn.conf(5), innd(8), nnrpd(8), passwd.nntp(5).
and that's the whole RNEWS(1) tea, bestie π«Ά source/version is INN 2.7.4, dated 2024-05-19 β slay and goodbye π
β¨
π¦ where this page comes from
- arch rolling: inn 2.7.4-4 Β· ISC
- epel 10: inn 2.7.4-5.el10_3 Β· ISC AND BSD-3-Clause AND BSD-4-Clause AND FSFAP AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LicenseRef-Fedora-Public-Domain AND MIT AND NTP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms