home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / gopher / 1139 < prev    next >
Encoding:
Text File  |  1992-07-31  |  3.3 KB  |  100 lines

  1. Newsgroups: alt.gopher
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!schemers
  3. From: schemers@leland.Stanford.EDU (Roland Schemers)
  4. Subject: Re: official g2nntp
  5. Message-ID: <1992Jul31.183208.18646@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Distributed Computing Group, Stanford University
  8. References: <HHHNB65@cc.swarthmore.edu> <15bpcbINNsda@nigel.msen.com>
  9. Date: Fri, 31 Jul 92 18:32:08 GMT
  10. Lines: 88
  11.  
  12. In article <15bpcbINNsda@nigel.msen.com> emv@msen.com (Edward Vielmetti) writes:
  13. >I would like to see a g2nntp gateway that would let me reference articles
  14. >by message id, not just by article number.  That would increase the chance
  15. >that I could take a reference from a remote site and localize it without
  16. >having to copy the data back.
  17. >
  18.  
  19. I just downloaded a version of g2nntp (for the go4gw daemon) to boombox that
  20. has the following command:
  21.  
  22. nntp article <15bpcbINNsda@nigel.msen.com>
  23.  
  24. Is that what you meant? You can now using the following article commands with
  25. the g2nntp script (under go4gw):
  26.  
  27. nntp article su.jobs 1023               # any old article
  28. nntp article su.jobs first              # first article in group
  29. nntp article su.jobs last               # last article in group
  30. nntp article <id>                       # grab article by id
  31.  
  32. I'm probably going to add stuff like:
  33.  
  34. nntp article su.jobs last-1             # 2nd from last
  35.  
  36. But I'm not sure how useful that would be.
  37.  
  38. I have also added some other commands, which act just like their NNTP
  39. counterparts:
  40.  
  41. body
  42. head
  43.  
  44. So you can grab just the header or body of an article:
  45.  
  46. nntp body <id>
  47. nntp body su.events last
  48.  
  49. This helps out for those newsgroup that you don't want people to see the
  50. headers on. I have also added the following commands:
  51.  
  52. lsa
  53. lsb
  54. lsh
  55.  
  56. Which will list groups and return the correct "article","body","head" commands
  57. as selectors. Note the group can now be BLANK in the "ls?" commands, so you
  58. can have something like:
  59.  
  60. Name=USENET news
  61. Path=nntp lsb
  62. ...
  63. Name=USENET news (with headers)
  64. Path=nntp lsa 
  65. ...
  66.  
  67. Here are the new commands:
  68.  
  69. # ""                         -> list top level groups, using $nntp_defart
  70. # ls $group                  -> list group's articles and sub-groups
  71. # lsa $group                 -> like "", sends "article" & "lsa" commands back
  72. # lsb $group                 -> "" sends "body" & "lsb" commands back
  73. # lsh $group                 -> "" sends "header" & "lsh" commands back
  74. # article <id>               -> get article by ID
  75. # article $group $number     -> get 1 article, number can be "last" or "first"
  76. # body <id>                  -> like article, but just get text
  77. # body $group $number        -> ""
  78. # head <id>                  -> like article, but just get header
  79. # head $group $number        -> ""
  80. # sorry                      -> send sorry message
  81.  
  82.  
  83. As far as a standard "g2nntp" script, I don't see why there has to be
  84. one, since they aren't running on the same port anyways. 
  85.  
  86. If anyone wants me to post the new g2nntp script I will. Its on boombox
  87. in the go4gw.shar. (yea, yea, I'll put a version numbers and RCS on some
  88. day :-)
  89.  
  90. Roland
  91.  
  92.  
  93.  
  94.  
  95. -- 
  96. Roland J. Schemers III              |            Networking Systems
  97. Systems Programmer                  |            168 Pine Hall   (415)-723-6740
  98. Distributed Computing Group         |            Stanford, CA 94305-4122
  99. Stanford University                 |            schemers@Slapshot.Stanford.EDU
  100.