home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.gopher
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!schemers
- From: schemers@leland.Stanford.EDU (Roland Schemers)
- Subject: Re: official g2nntp
- Message-ID: <1992Jul31.183208.18646@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Distributed Computing Group, Stanford University
- References: <HHHNB65@cc.swarthmore.edu> <15bpcbINNsda@nigel.msen.com>
- Date: Fri, 31 Jul 92 18:32:08 GMT
- Lines: 88
-
- In article <15bpcbINNsda@nigel.msen.com> emv@msen.com (Edward Vielmetti) writes:
- >I would like to see a g2nntp gateway that would let me reference articles
- >by message id, not just by article number. That would increase the chance
- >that I could take a reference from a remote site and localize it without
- >having to copy the data back.
- >
-
- I just downloaded a version of g2nntp (for the go4gw daemon) to boombox that
- has the following command:
-
- nntp article <15bpcbINNsda@nigel.msen.com>
-
- Is that what you meant? You can now using the following article commands with
- the g2nntp script (under go4gw):
-
- nntp article su.jobs 1023 # any old article
- nntp article su.jobs first # first article in group
- nntp article su.jobs last # last article in group
- nntp article <id> # grab article by id
-
- I'm probably going to add stuff like:
-
- nntp article su.jobs last-1 # 2nd from last
-
- But I'm not sure how useful that would be.
-
- I have also added some other commands, which act just like their NNTP
- counterparts:
-
- body
- head
-
- So you can grab just the header or body of an article:
-
- nntp body <id>
- nntp body su.events last
-
- This helps out for those newsgroup that you don't want people to see the
- headers on. I have also added the following commands:
-
- lsa
- lsb
- lsh
-
- Which will list groups and return the correct "article","body","head" commands
- as selectors. Note the group can now be BLANK in the "ls?" commands, so you
- can have something like:
-
- Name=USENET news
- Path=nntp lsb
- ...
- Name=USENET news (with headers)
- Path=nntp lsa
- ...
-
- Here are the new commands:
-
- # "" -> list top level groups, using $nntp_defart
- # ls $group -> list group's articles and sub-groups
- # lsa $group -> like "", sends "article" & "lsa" commands back
- # lsb $group -> "" sends "body" & "lsb" commands back
- # lsh $group -> "" sends "header" & "lsh" commands back
- # article <id> -> get article by ID
- # article $group $number -> get 1 article, number can be "last" or "first"
- # body <id> -> like article, but just get text
- # body $group $number -> ""
- # head <id> -> like article, but just get header
- # head $group $number -> ""
- # sorry -> send sorry message
-
-
- As far as a standard "g2nntp" script, I don't see why there has to be
- one, since they aren't running on the same port anyways.
-
- If anyone wants me to post the new g2nntp script I will. Its on boombox
- in the go4gw.shar. (yea, yea, I'll put a version numbers and RCS on some
- day :-)
-
- Roland
-
-
-
-
- --
- Roland J. Schemers III | Networking Systems
- Systems Programmer | 168 Pine Hall (415)-723-6740
- Distributed Computing Group | Stanford, CA 94305-4122
- Stanford University | schemers@Slapshot.Stanford.EDU
-