home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / KA9QTCPP / NNTP4NOS.ZIP / KLEMETS.TXT < prev    next >
Encoding:
Text File  |  1990-05-01  |  2.7 KB  |  65 lines

  1.  
  2. Date: Sat, 28 Apr 90 04:50:43 +0200
  3. From: klemets@sics.se
  4. Subject: NNTP for NOS
  5. To: tcp-group@ucsd.edu
  6.  
  7. Because of this recent discussion about News support in NOS, I thought
  8. it would be a nice idea to implement NNTP in NOS.
  9. I have only done a client yet however.
  10. The client is controlled by the following commands:
  11.  
  12.     nntp addserver <nntpserver> <interval>
  13.   where <nntpserver> is the hostname of a server from which you want
  14.   to fetch the news. <interval> is the interval between polls, 
  15.   measured in seconds.
  16.  
  17.     nntp dropserver <nntpserver>
  18.     nntp kick <nntpserver>
  19.     nntp listserver
  20.   What these commands do should be obvious.
  21.  
  22.     nntp groups <list of groups>
  23.   where <list of groups> is a series of USENET newsgroups, separated
  24.   by blanks or (preferably) commas. This command controls which
  25.   newsgroups you will receive. By default you will receive all newsgroups.
  26.   You should probably use this command to restrict the number of groups,
  27.   unless you have unlimited disk space. The "*" and "!" signs are
  28.   supported. For example
  29.     nntp groups rec.ham-radio*,!rec.ham-radio.swap
  30.   will make you receive all groups whose name matches rec.ham-radio
  31.   except rec.ham-radio.swap.
  32.  
  33. The NNTP client asks the server for the Message-ID's of any new
  34. articles that have arrived after a certain date. The client compares
  35. the Message-ID's that it gets from the server with ID's of old articles.
  36. These old ID's are kept in the /spool/news/history file. The client
  37. then requests those articles that it does not already have.
  38. The date and time when a server was last contacted is stored in the
  39. file /spool/news/nntp.dat. The date can be changed manually if necessary.
  40. Don't forget to create the /spool/news directory, by the way.
  41.  
  42. The articles are not stored as separate files, as is common in UNIX.
  43. Instead, they are converted to mailbox format and stored in one
  44. separate file for each newsgroup. The reason for this is that you are
  45. then able to use the BBS already inherent in NOS to read the articles.
  46. It is also possible to use BM for that matter.
  47.  
  48. A typical entry in the /spool/areas file would be:
  49.  
  50. rec/ham-radio/packet   The packet radio newsgroup
  51.  
  52. The client still needs some enhancement. In particular, it would be
  53. nice if it could post articles too. I might have to use the stat()
  54. call. Has it been fixed for DesqView yet?
  55.  
  56. The client should also make it possible to just grab the header of an
  57. article, and let the user decide if the rest of the article should be
  58. transfered. But this would require a special news reader utility.
  59.  
  60. The source for this is vailable with ftp from sics.se. The filename
  61. is archive/packet/ka9q/nos/nntp.arc.
  62.  
  63. /Anders SM0RGV
  64.  
  65.