|
NAMEreadnews - read news articlesSYNOPSISreadnews [ -n newsgroups ] [ -d commands ] [ -i ] [ -c ] [ -l ] [ -p ] [ -C ] [ -L ] [ -Agroup ] [ -Dgroup ]DESCRIPTIONReadnews without arguments enters command mode, which allows printing of unread articles. This is the normal way of using readnews.Readnews maintains a .newsrc file in the user's home directory that specifies all news articles already read. It is updated at the end of each reading session. Some useful functions are available which don't use command mode. The flags for these are:
The remaining flags mostly determine article selection, and may also appear in the .newsrc file. Options may be specified in the .newsrc file by entering lines prefixed with the word `options', followed by the options arguments. This is most useful with the -n flag, specifying the usual groups one wishes to subscribe to.
Some overall parameters are set by a control file, /var/lib/news/readnews.ctl, which contains control lines (each a keyword followed by white space followed by a value) and comments (each starting with `#'). If no -n option is specified, either by the user or his .newsrc file, the value specified on the defsub line of the control file is used as the list of newsgroups to be presented. A single mandatory newsgroup may be specified as the value of the mustsub control line; in the absence of a command-line -n (not one from a .newsrc), that newsgroup is always presented to the user even if he did not ask for it. Both defsub and mustsub default to ``general''. COMMANDSThis section details the commands available when readnews is in command mode (no -clpsC arguments). The simplest way of using this mode, is to enter RETURN after every prompt. This will present to the user, a short heading for an article, then a prompt. Typing RETURN again will print the article body. Typing RETURN yet again will print the next heading, and so on. If having read the heading, you don't wish to read the article, you may type `n' (or `+' or ';') which will take you directly to the next heading.An article is treated as having been read, if either you have seen the article body, or typed `n' to skip over it. A number of commands operate on the `current' article. This is defined as the article whose header you have most recently seen. The commands to read news are:
Some commands are available to send/reply or post news articles:
In order to permanently resubscribe to a newsgroup denied by `U', it is necessary to understand the format of the .newsrc file. The .newsrc file consists of two types of lines:
EXAMPLESTo invoke readnews for ``read only'' access to specified newsgroups, with the user unable to do anything but read those groups, a shell file might do:
which disables responses (r, f, and p), saving of copies (s), shell escapes (!), and unsubscribing (U). FILES$HOME/.newsrc options and list of previously read articles /var/lib/news/active current newsgroups /var/lib/news/readnews.ctl control file /var/lib/news/readnews.help help file /usr/local/libexec/cnews/inject/postnews for postings SEE ALSOpostnews(1CN), mail(1), ed(1)HISTORYOriginally written by Michael Rourke, University of N.S.W (decvax!mulga!michaelr:elecvax). Modified and simplified for the C News project.BUGSThe mustsub control line really ought to be able to specify a subscription, i.e. multiple groups.Control characters other than tab and backspace are turned into `#' when displaying article bodies. This heads off letter bombs at the price of interfering with use of non-ASCII character sets. Cleanup of command-line syntax has eliminated the old -s option in favor of -L, -A, and -D. This is a change for the better, but an incompatible one. The -A and -D options have a nasty tendency to dump core; they should be fixed or deleted. This program is about as simple as they come. Almost any seasoned news user will want something more complex.
Visit the GSP FreeBSD Man Page Interface. |