📄 inews.1
字号:
.\" $Revision: 1.25 $.TH INEWS 1.SH NAMEinews \- send a Usenet article to the local news server for distribution.SH SYNOPSIS.B inews[.B \-h][.B \-D][.B \-O][.B \-R][.B \-S][.I "header_flags"][.I input].SH DESCRIPTION.I Inewsreads a Usenet news article (perhaps with headers) fromthe named file or standard input if no file is given.It adds some headers and performs some consistency checks.If the article does not meet these checks (for example, too muchquoting of old articles, or posting to non-existent newsgroups) thenthe article is rejected.If it passes the checks,.I inewssends the article to the local newsserver as specified in the.IR inn.conf (5)file for distribution..PPIn the standard mode of operation, the input consists of the articleheaders, a blank line, and the message body.For compatibility with older software, the ``\-h'' flag must be used.If there are no headers in the message, then this flag may be omitted..PPSeveral headers may be specified on the command line, shown in thesynopsis above as.IR "header_flags" .Each of these flags takes a single parameter; if the value is more thanone word (for example, almost all Subject lines) then quotes must be usedto prevent the shell from splitting it into multiple words.The options, and their equivalent header, are as follows:.RS.nfa Approvedc Controld Distributione Expiresf Fromw Followup-Ton Newsgroupsr Reply-Tot SubjectF Referenceso Organizationx Path prefix.fi.RE.PP.\" =()<.if '@<INEWS_PATH>@'DO' \{\>()=.if 'DO'DO' \{\The Path header is built according to the following rules.\}If the ``\-x'' flag is used, then its value will be the start of the header.Any other host will see the site in the header, and therefore notoffer the article to that site..\" =()<.if '@<INEWS_PATH>@'DO' \{\>()=.if 'DO'DO' \{\If the ``pathhost'' configuration parameter is specified in the.IR inn.conf (5)file, then it will be added to the Path.Otherwise, if the ``server'' configuration parameter is specified,then the full domain name of the local host will be added to the Path.\}The Path will always end.\" =()<.IR @<PATHMASTER>@ .>()=.IR not-for-mail ..PPThe default Organization header will be provided if none is presentin the article or if the ``\-o'' flag is not used.To prevent adding the default, use the ``\-O'' flag..PPAs a debugging aide, if the ``\-D'' flag is used, the consistency checkswill be performed, and the article will be sent to the standard output,rather then sent to the server..PPFor compatibility with C News,.I inewsaccepts, but ignores, the ``\-A'', ``\-V'' and ``\-W'' flags.The C News ``\-N'' flag is treated as the ``\-D'' flag..PPIf a file named.I .signatureexists in the user's home directory,.I inewswill try to append it to the end of the article.If the file cannot be read, or if it is too long (for example, more thanfour lines or one standard I/O buffer), or if some other problem occurs,then the article will not be posted.To suppress this action use the ``\-S'' flag..PPIf the ``\-R'' flag is used then.I inewswill reject any attempts to post control messages..PPIf an unapproved posting is made to a moderated newsgroup,.I inewswill try to mail the article to the moderator for posting.It uses the.IR moderators (5)file to determine the mailing address.If no address is found, it will use the.IR inn.conffile to determine a ``last-chance'' host to try..PPIf the NNTP server needs to authenticate the client,.I inewswill use the.IR NNTPsendpassword (3)routine to authenticate itself.In order to do this, the program will need read access to the.IR passwd.nntp (5)file.This is typically done by having the file group-readable and making.I inewsrun setgid to that group..PP.I Inewsexits with a zero status if the article was succesfully posted or mailed,or with a non-zero status if the article could not be delivered..PPSince.I inewswill spool its input if the server is unavailable, it is usually necessaryto run.IR rnews (1)with the ``\-U'' flag on a regular basis, usually out of.IR cron (8)..SH HISTORYWritten by Rich $alz <rsalz@uunet.uu.net> for InterNetNews..de R$This is revision \\$3, dated \\$4....R$ $Id: inews.1,v 1.25 1993/03/18 21:03:38 rsalz Exp $.SH "SEE ALSO"moderators(5),inn.conf(5).rnews(1).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -