Rechercher une page de manuel

Chercher une autre page de manuel:


Langue: en

Version: 15 Sept 1994 (ubuntu - 07/07/09)

Section: 1 (Commandes utilisateur)


injnews, inews - `user-friendly' news-posting front-ends for relaynews


injnews [ -N ] [ -A ] [ -V ] [ -x excluded-site ]

inews [ -h ] [ -N ] [ -A ] [ -V ] [ -x excluded-site ] [ -W ] [ -M ] [ -a Approved:-contents ] [ -c Control:-contents ] [ -d Distribution:-contents ] [ -e Expires:-contents ] [ -f From:-contents ] [ -n Newsgroups:-contents ] [ -o Organization:-contents ] [ -r Reply-To:-contents ] [ -t Subject:-contents ] [ -C newsgroup ] [ -F References:-contents ] [ file ... ]
inews -p [ file ... ]


Injnews and inews massage news articles to make them conform to DARPA RFC 1036, then inject them into the news flow. Injnews is the preferred interface. Inews is slower but handles all the old B News options, primarily for the benefit of old news readers.

Injnews injects an article, found on standard input, into the news flow, installing it locally and broadcasting it (if appropriate) onto the network. Injnews assumes the presence of at least Subject: and Newsgroups: headers in the article, then adds and alters headers, notably Message-ID:, From: and Path:, deletes invisible characters, and appends the first four lines of $HOME/.signature, if any, to the article, and hands the resulting article to relaynews(8CN), provided the newsgroup(s) are unmoderated. If any of the groups are moderated, the article will instead be mailed to the moderator of one of the moderated newsgroups in the Newsgroups: header. -N suppresses posting and produces on standard output the article that would have otherwise been posted; the resultant article will have been checked for illegalities as usual and will be suitable as input to relaynews(8CN). -A waits until enough space becomes free in /var/spool/news. -V causes relaynews to emit a log file line on stdout after processing is complete, by having relaynews not redirect stdout and stderr to /var/lib/news/log and /var/lib/news/errlog. -x prevents transmission to site excluded-site.

Inews does everything that injnews does, plus some backwardly-compatible things. The article is read from files or standard input if none. Normal usage is inews -h, which assumes that the input article starts with headers; otherwise it starts the article body and the B News options described below must be given to supply the headers. -W waits for relaynews to complete, instead of running it in the background and not waiting. -M does nothing, for B News compatibility. The rest of the options are inherited from B News and exist only for backward-compatibility with news readers. They should not be used by humans, as they are equivalent to adding the obvious headers, with two small twists: -f generates From: From:-contents which generates a Sender: user@host header if there is no Sender: header in the input, and -C tells you to use addgroup for local group creations and tells you what to feed to injnews for global ones.

inews -p files is exactly equivalent to invoking relaynews -r files, where files may be an empty list; there is no automatic recovery of the input file(s) in case of errors, full disks or other problems.


injnews <article Post article to Usenet.

injnews -N <article >/dev/null Check article for obvious errors.


contains (un)moderated flag
routes to moderators, Internet gateway
the name of this cluster of machines for purposes of mail, including any domain (may be of the form ``a@b'' if mail addresses should be of the form ``user%a@b'')
the hostname of this cluster's server
the name of this cluster for purposes of news
your name and network addresses (no line-printer graphics, please)
saved article in case of errors or problems


mail(1), news(5), newsaux(8CN), relaynews(8CN)
RFC 1036 (or successor)


Written by Geoff Collyer as part of the C news project.


Inews should be unnecessary; its only useful function is adding Message-ID: headers and most novices use Pnews, which could invoke relaynews directly.

Inews is a shell script currently and can fail if any of the underlying Unix tools fail. This typically happens with very long input lines.

Ne croire, dans le travail, qu'à ce qui est préparé ;
et, dans la vie, qu'à ce qui ne l'est pas.
-+- Gilbert Cesbron (1913-1979), de petites choses. -+-