Книга: Linux Network Administrator Guide, Second Edition
Changing to NNRP Reader Mode
Changing to NNRP Reader Mode
Newsreaders use their own set of commands when talking to a news server. To activate these commands, the news server has to be operating in reader mode. Most news servers default to reader mode, unless the IP address of the connecting host is listed as a news-forwarding peer. In any case, NNTP provides a command to explicitly switch into reader mode:
mode reader
200 news.vbrew.com InterNetNews NNRP server INN 1.7.2 08-Dec-1997 ready/
(posting ok).
help
100 Legal commands
authinfo user Name|pass Password|generic <prog> <args>
article [MessageID|Number]
body [MessageID|Number]
date
group newsgroup
head [MessageID|Number]
help
ihave
last
list [active|active.times|newsgroups|distributions|distrib.pats|/
overview.fmt|subscriptions]
listgroup newsgroup
mode reader
newgroups yymmdd hhmmss ["GMT"] [<distributions>]
newnews newsgroups yymmddhhmmss ["GMT"] [<distributions>]
next
post
slave
stat [MessageID|Number]
xgtitle [group_pattern]
xhdr header [range|MessageID]
xover [range]
xpat header range|MessageID pat [morepat...]
xpath MessageID
Report problems to <[email protected]>
.
NNTP reader mode has a lot of commands. Many of these are designed to make the life of a newsreader easier. We mentioned earlier that there are commands that instruct the server to send the head and the body of articles separately. There are also commands that list the available groups and articles, and others that allow posting, an alternate means of sending news articles to the server.
- Connecting to the News Server
- Pushing a News Article onto a Server
- Changing to NNRP Reader Mode
- Listing Available Groups
- Listing Active Groups
- Posting an Article
- Listing New Articles
- Selecting a Group on Which to Operate
- Listing Articles in a Group
- Retrieving an Article Header Only
- Retrieving an Article Body Only
- Reading an Article from a Group
- Класс StreamReader
- В Adobe Acrobat Reader русский текст на экране читается нормально, а при печати получается текст из набора символов. Как...
- 1.1.4. Model Explorer - навигатор модели
- RSS Readers
- The Pan News Client Newsreader
- Changing Passwords in a Batch
- Temporarily Changing User Identity with the su Command
- Changing Runlevels
- Листинг 14.2. Использование параметра XMLWriteMode при сохранении объекта ADO.NET DataSet
- Entering and Exiting PHP Mode
- Changing Directories with cd
- Changing File Access Permissions with chmod