home *** CD-ROM | disk | FTP | other *** search
-
- Date: Sat, 28 Apr 90 04:50:43 +0200
- From: klemets@sics.se
- Subject: NNTP for NOS
- To: tcp-group@ucsd.edu
-
- Because of this recent discussion about News support in NOS, I thought
- it would be a nice idea to implement NNTP in NOS.
- I have only done a client yet however.
- The client is controlled by the following commands:
-
- nntp addserver <nntpserver> <interval>
- where <nntpserver> is the hostname of a server from which you want
- to fetch the news. <interval> is the interval between polls,
- measured in seconds.
-
- nntp dropserver <nntpserver>
- nntp kick <nntpserver>
- nntp listserver
- What these commands do should be obvious.
-
- nntp groups <list of groups>
- where <list of groups> is a series of USENET newsgroups, separated
- by blanks or (preferably) commas. This command controls which
- newsgroups you will receive. By default you will receive all newsgroups.
- You should probably use this command to restrict the number of groups,
- unless you have unlimited disk space. The "*" and "!" signs are
- supported. For example
- nntp groups rec.ham-radio*,!rec.ham-radio.swap
- will make you receive all groups whose name matches rec.ham-radio
- except rec.ham-radio.swap.
-
- The NNTP client asks the server for the Message-ID's of any new
- articles that have arrived after a certain date. The client compares
- the Message-ID's that it gets from the server with ID's of old articles.
- These old ID's are kept in the /spool/news/history file. The client
- then requests those articles that it does not already have.
- The date and time when a server was last contacted is stored in the
- file /spool/news/nntp.dat. The date can be changed manually if necessary.
- Don't forget to create the /spool/news directory, by the way.
-
- The articles are not stored as separate files, as is common in UNIX.
- Instead, they are converted to mailbox format and stored in one
- separate file for each newsgroup. The reason for this is that you are
- then able to use the BBS already inherent in NOS to read the articles.
- It is also possible to use BM for that matter.
-
- A typical entry in the /spool/areas file would be:
-
- rec/ham-radio/packet The packet radio newsgroup
-
- The client still needs some enhancement. In particular, it would be
- nice if it could post articles too. I might have to use the stat()
- call. Has it been fixed for DesqView yet?
-
- The client should also make it possible to just grab the header of an
- article, and let the user decide if the rest of the article should be
- transfered. But this would require a special news reader utility.
-
- The source for this is vailable with ftp from sics.se. The filename
- is archive/packet/ka9q/nos/nntp.arc.
-
- /Anders SM0RGV
-
-