🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #271

Re: Useful NNTP Patch

#271
From: Jerry Aguirre
Date: Thu, 31 Aug 1989 20:01
50 lines
2795 bytes
In article <237@wugate.wustl.edu> chris@wugate.wustl.edu (Chris Myers) writes:
>a) Modify rnews/inews to add a 'Z' flag in the sys file (used instead of the
>'F' flag).  The 'Z' option causes rnews to create batch file entries of the
>form: "<path> <messageID>" rather than just "<path>".

I have also made this change locally and have found it useful.  I used
the "Q" (Queue) flag instead of "Z" but that is, of course, not
important.

A more important difference is in how the file was organized.  I write
it as:

	<messageID> pathname

instead of the reverse.  This makes it much simpler to check for the new
format.  It is only necessary to check if the first character is an "<".
I was a little leary of the other format because there is no guarantee
that an "<" won't be imbedded in a path name.  For example if one did an
index for "<" on a pathname that looked like:

	/usr/spool/newsfile/<890831FE03@foo.bar>

one could confuse the pathname with an ID.  The above is a perfectly
legal path name in Unix and I can immagine a news system that would use
something like that.

I have discussed this with others and they have convinced me that it
would be desirable to accept multiple pathnames and even no pathnames at
all.  (This is primarily for compatability with CNEWS though others
might benifit.)  The optional formats would then be:

		pathname
		pathname pathname ...
		<messageID>
		<messageID> pathname
		<messageID> pathname pathname ...

Handling a message ID by itself shouldn't be too difficult as there is
already code to handle a request for an article ID and find the pathname
from the history file.  I happen to feel this is a high overhead way of
doing it but as it is not difficult to code it should probably be
supported.  The multiple pathnames handle the case where the article
might be expired early in one group but still exist in another.

I suggest that we decide on a standard for NNTP that the different
versions of news can code for.  Making the nntpxmit code flexible now
will prevent future hacking on the code to make it work for "DNews".

				Jerry
Technical Details
Message-ID: <47388@oliveb.olivetti.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!olivey!jerry
References: <237@wugate.wustl.edu>

Show Full Headers
Complete Article Headers
Message-ID: <47388@oliveb.olivetti.com>
Subject: Re: Useful NNTP Patch
Date: Thu, 31 Aug 1989 20:01:50 +0000
From: jerry@olivey.olivetti.com (Jerry Aguirre)
References: <237@wugate.wustl.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!olivey!jerry
Newsgroups: news.software.nntp
Keywords: nntpxmit speedup
Sender: news@oliveb.olivetti.com
Reply-To: jerry@olivey.UUCP (Jerry Aguirre)
Organization: Olivetti ATC; Cupertino, Ca
Lines: 49