🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44534

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

#44534
From: Curt Welch
Date: Sun, 27 Feb 2000 00:00
55 lines
3144 bytes
Jeremy <bofh@netscum.dk> wrote:
> Curt Welch <curt@kcwc.com> wrote:
>
> >>             PAT header range|<message-id> [wildmat[ wildmat"]]
> >
> > Has anybody though of extending this to include multiple headers?
> >
> >               PAT header [header...] range|<message-id> [wildmat...]

Actually re-thinking that syntax, it should be:

>               PAT header[,header...] range|<message-id> [wildmat...]

> > The data would be returned in XOVER fashion.
> >
> > If you do that, then you could drop the OVER COMMAND from the RFC.
>
> You'll probably just think I'm a sick bastard, but I've thought more than
> once that it would be cool for a client to be able to go SET OVERVIEW.FMT
> and tell the server how it wants its overviews, until told differently.
> So, if I'm not using the enormous Xref lines, I don't have to get them,
> and similiarly, if I want X-Meow in my overviews, I could have it.
>
> Though I bet there are programmers who would curse me to the end of the
> earth for that one. :)

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.

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

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.

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

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

Show Full Headers
Complete Article Headers
Message-ID: <20000227162210.142$UD@newsreader.com>
Subject: Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Date: Sun, 27 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>
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: 590586688
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