🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44572

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

#44572
From: Jeremy
Date: Mon, 28 Feb 2000 00:00
57 lines
3381 bytes
Curt Welch <curt@kcwc.com> wrote:

> You don't want the session to store that state for you.  It just makes it
> harder to write clients (for example when on NNTP session is shared by
> multiple parallel functions).  Make the client send the overview.fmt at the
> begining of every xover command instead.  And if you do that, you end up
> with exactly what I suggested above.

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, 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...

>> With your suggestion, though, how is the server to know which header
>> to apply the wildmat to?
> 
> There's no problem there.
> 
> It creates one long xover like line from the headers listed and applies
> the wildmat to the whole thing.  I guess it would be nice to allow
> a way to put tabs in the wildmat, so you could really control what
> it matched with, but that's not even important.

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

> Remeber the wildmat is optional.  In most cases when you were requesting
> multiple headers, you probably wouldn't even use the wildmat. Using the
> command with no wildmat gives you an xover like replacement which gives you
> full control over which headers you get.
>
> If you had to do per-header wildmats, you would just go back to doing
> them one header at a time.

I think you're really describing more than one command here.  PAT is fine
as it is; on top of that, there is a need for a multi-header pattern-matching
overview-like-returning command as you describe.  It should allow access to
any arbitrary header (that's the part the programmers won't like) and should
allow the pattern to be applied to any specific header on the requested list.

But, the more I think about SET OVERVIEW.FMT, the more I want it.  You could
even obtain the result you're talking about by having the overview.fmt apply
to your "new and improved" overview-like PAT-like command; then you don't
have to tell it what headers you want, but only what headers you want to
apply the wildmat to, and have it return matches in overview format according
to the currently specified format.  So,

  OVERPAT Subject 1- *.jpg*

would return overview records, according to the currently selected overview
format, in which the Subject line matches the pattern.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Technical Details
Message-ID: <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
References: <87aeknd2ua.fsf@erlenstar.demon.co.uk> <20000227033621.800$eb@newsreader.com> <951648329.164637@news.netscum.dk> <20000227162210.142$UD@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <951696824.53483@news.netscum.dk>
Subject: Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Date: Mon, 28 Feb 2000 00:00:00 +0000
From: Jeremy <bofh@netscum.dk>
References: <87aeknd2ua.fsf@erlenstar.demon.co.uk> <20000227033621.800$eb@newsreader.com> <951648329.164637@news.netscum.dk> <20000227162210.142$UD@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
X-Deja-AN: 590644825
Organization: There Is No Organization
X-Meow: Meow
Newsgroups: news.software.nntp