🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46727

Re: HEADERS comand (was: Re: Xnews follow-up notification ?)

#46727
From: J. B. Moreno
Date: Wed, 31 May 2000 00:00
89 lines
5173 bytes
Curt Welch <curt@kcwc.com> wrote:

> andrew@supernews.com wrote:
> > In article <1eb9n93.6zm4ecsdufpcN%planb@newsreaders.com>, J. B. Moreno
> > wrote:
> > >Search for HEADERS and curt welch in news.software.nntp, it's not been
> > >written up as a RFC, just something that has been batted around
> > >(although curt has implemented it, I'm probably the only person that
> > >ever uses it and I have to do so by telnet).
> > >
> > >headers 1- from user-agent:NewsHound?0*
> 
> BTW, did you every find that elusive version of NewsHound?

Nope, still looking.

> > two things just sprung to mind.
> >
> > a) should there be a way to use a header for selection of data but not
> > have it returned in the output.
> 
> I too spent some time thinking about that.  But I concluded it wasn't
> that important and would be fine to force the user to receive copies
> of the header if he wanted to select on it.  Many times they will want
> to see the header anyway (for example to make sure it was really what
> they were looking for).

The only time I see finding but not returning as being useful would be
for References scanning, and even then -- there would be several common
searches, first id is mine, contains my id, and id is within X of the
last id.  And it seems to me that these are better searched by the
client (to keep him from asking from them one after another).

-snip-
> And that opens up the idea of supporting multiple wildmats per header to
> mean OR instead of the default AND:
> 
>   headers 1- From:*curt* From:*bob* subject:*Xnews*
> 
> which would mean (From curt OR From bob) AND subject Xnews.
> 
> This would all be nice, but is it going too far???

Yes.

> The real question here is whether support of wildmats here is really the
> right thing to do.  I'm beginning to think it isn't.  There's no question
> that it's both easy to implement, and useful.  But there's real potential
> for server abuse here.
-snip-
> Even without the wildmat extension, the HEADERS command has the problem of
> forcing the server to read and processes a lot more data than what it has
> to send to the client.  But without wildmat, the client is forced to get
> at least some data for every article the server has to deal with. This
> keeps the ratio of server read data to transmitted data to a reasonable
> level.  But once you add wildmat, then the ratio can get way out of hand.
> (scan 10M articles but transmit the Message-ID of only one).

I don't see a high ratio of server read to transmitted as a problem, in
fact I think it's a good thing -- take your example of 10M articles but
only returning 1 id, this is obviously better than scanning a million
and returning a 100 thousand and then the client only using 1 id.

> So, my current thought is that we should probably drop the wildmat support
> from HEADERS.  Force the client to read the data and do any of the wildmat
> types of scanning on the client side.

I would suggest support for wildmat's but not to get fancy about it.
 
> > b) should there be a distinction between real headers and
> > pseudo-headers. Currently this distinction is blurred for XHDR, with
> > clients expecting XHDR Lines and XHDR Bytes to work. I think that real
> > headers and pseudo- headers should have separate namespaces, if
> > possible.
> 
> If it's only Bytes: and Lines: we are talking about, then I don't see this
> as being important enough to fix.  But if people continue to add new
> pseudo-headers, then it could be a problem.  So I wouldn't mind making the
> distinction.
> 
> How about creating the convention that pseudo-headers start with a :?

It might be a bit confusing, but if it's going to be done, now's the
time to do it.

-- 
John B. Moreno

Technical Details
Message-ID: <1ebi1xd.x2k8okfzmd2sN%planb@newsreaders.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: <8F3253F00bartctsbvnl@195.86.58.244> <8F32634E9pt101594@207.211.168.97> <8F3FD4236shivawellcom@207.126.101.100> <1eb8qlt.1s5z5uu1rag5spN%planb@newsreaders.com> <slrn8itn8b.9rk.andrew+news@uk21.supernews.com> <8F40CCF87farkle@24.64.2.57> <slrn8iubou.9rk.andrew+news@uk21.supernews.com> <8F40E796Cfarkle@24.64.2.57> <1eb9n93.6zm4ecsdufpcN%planb@newsreaders.com> <slrn8iuuto.ner.andrew+news@uk21.supernews.com> <20000531111455.642$zy_-_@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1ebi1xd.x2k8okfzmd2sN%planb@newsreaders.com>
Subject: Re: HEADERS comand (was: Re: Xnews follow-up notification ?)
Date: Wed, 31 May 2000 00:00:00 +0000
From: planb@newsreaders.com (J. B. Moreno)
References: <8F3253F00bartctsbvnl@195.86.58.244> <8F32634E9pt101594@207.211.168.97> <8F3FD4236shivawellcom@207.126.101.100> <1eb8qlt.1s5z5uu1rag5spN%planb@newsreaders.com> <slrn8itn8b.9rk.andrew+news@uk21.supernews.com> <8F40CCF87farkle@24.64.2.57> <slrn8iubou.9rk.andrew+news@uk21.supernews.com> <8F40E796Cfarkle@24.64.2.57> <1eb9n93.6zm4ecsdufpcN%planb@newsreaders.com> <slrn8iuuto.ner.andrew+news@uk21.supernews.com> <20000531111455.642$zy_-_@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: 629579276
Mail-Copies-To: nobody
X-ACLA-Charter: <http://www.deja.com/msgid.xp?MID=%3Cphenix-121119981748546229@roxboro0-023.dyn.interpath.net%3E&ST=&AH=1>
X-Trace: fu-berlin.de 959801526 2471129 207.59.121.19 (16 [22426])
X-Face: ]lUBtDImSD_`E"<*ZgyJUoCT\=CdRLFX4qCMLK[xy^L7v|uX|f8`cFDd*PaH8 N*x>d^h
Organization: NetNews BOFH wannabe
User-Agent: MacSOUP/2.4.4
Newsgroups: news.software.readers,news.software.nntp