🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44568

Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)

#44568
From: Curt Welch
Date: Mon, 28 Feb 2000 00:00
84 lines
4819 bytes
Jeremy <bofh@netscum.dk> wrote:
> Curt Welch <curt@kcwc.com> wrote:

> Not a bad point.  On the other hand, if you require LIST OVERVIEW.FMT to
> return the current format, then a client can request it whenever it's not
> able to be sure,

Or just send it every time if it's not sure.  And that's not much
worse that sending along with the request like I said.

Even if the server is going to have a setable overview format, it should
not be the "LIST OVERVIEW.FMT" that's being set becaue that has very
specific meaning to performance.  Most servers will return bulk OVERVIEW
data very quickly.  And they use it for XHDR commands as well.  But when
you ask for a header which isn't in the OVERVIEW.FMT list, it either
won't return it, or it will return it, but it will be much slower becuse
the server is forced to fetch each article one at a time to do so.

And the OVERVIEW.FMT command helps the client know what may work and
what may not work, and what will work quickly, etc.  (at least in
theory).

So if you create a new command that allows you to pick the headers
you want, and you go with the set format and get format type of server
state, then it should not be the OVERVIEW.FMT that's getting changed.

> rather than sending it every time -- resulting in less
> network traffic.  'Course, it's barely a drop in the bucket compared to
> the rest of the NNTP traffic we're tossing around these days...

We are talking bulk header dumps here.  The extra 60 bytes won't
be noticed.

The XOVER replacement command with all standard headers is only this long:

HEADERS Subject From Date Message-ID References Bytes Lines Xref

> >> With your suggestion, though, how is the server to know which header
> >> to apply the wildmat to?
> >
> > There's no problem there.

> I think it would be; applying the wildmat to the whole returned entry
> would make it far less useful.

The important extension in my mind is just the ability to do bulk header
downlods of only the headers you want.  That makes sense because it saves
bandwith which is good for both the server and the client, and in the case
of replacing multiple XHDRs with one HEADERS, it both reduces to load on
the server (single instead of multiple articles fetchs for each article),
speeds up the entire transaction, and reduces bandwidth.

The wildmat stuff I just don't get.  That is, I can't think of why I'd ever
use it in a typical newsreader.  I do like it with the good old TELNET
newsreader, and there's a few speical purpose utilities I might use it in,
but mostly, I just feel it's not too important (and perhaps even
questionable as to whether it should be allowed on the server side instead
for forcing the client to do that work).

And in the TELNET case, I sure I can alwas make due with greping the entire
line instead of just the header I want.

But, in writing this, I came up with this syntax by accident
which even I think is kinda neat:

  HEADERS 1- Message-ID From:*Jeremy* Subject:*NNTP* X-Meow

Allow the wildmat to be added to any header using the colon!  How simple
and straight forward to both understand and parse.  The only thing this
doesn't address is the multiple wildmats per header issue (which I have no
problem dropping support of), and the question of AND vs OR.  i.e. should
it display articles that match all wildmats, or articles that match any
wildmat.  I'm thinking it would be best to go with the "ALL" option.

Oh, and there's also the NULL/zero length wildmat possibility with this
syntax. Should that match all empty headers? (i.e. article doesn't have
that header), or just be treated as * (i.e. same as no wildmat), or be
considered an error?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <20000228025703.219$Yt@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <87aeknd2ua.fsf@erlenstar.demon.co.uk> <20000227033621.800$eb@newsreader.com> <951648329.164637@news.netscum.dk> <20000227162210.142$UD@newsreader.com> <951696824.53483@news.netscum.dk>

Show Full Headers
Complete Article Headers
Message-ID: <20000228025703.219$Yt@newsreader.com>
Subject: Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Date: Mon, 28 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <87aeknd2ua.fsf@erlenstar.demon.co.uk> <20000227033621.800$eb@newsreader.com> <951648329.164637@news.netscum.dk> <20000227162210.142$UD@newsreader.com> <951696824.53483@news.netscum.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 590754125
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp