Article View: news.software.nntp
Article #44543Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
From: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
79 lines
4177 bytes
4177 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
> 9.4.9 PAT
>
> PAT header range|<message-id> [wildmat[ wildmat"]]
Has anybody though of extending this to include multiple headers?
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.
And this command would be better named "HEADERS". (why keep the silly PAT
name if the wildmats are optional and you are loosing all backward
compatibility by renaming it from XPAT to PAT anyway?)
Newsreaders waste a lot of bandwidth doing XOVER commands which return
data they don't want to see. And multiple XHDR/XPAT/PAT commands
are far less efficent for the server to execute than one command which
returns all the headers the client wants in one pass.
> The PAT command is used to retrieve specific headers from
> specific articles, based on pattern matching on the contents
> of the header.
>
> The required header parameter is the name of a header line
> (e.g. "subject") in a news group article. See RFC-1036 for a
> list of valid header lines. The required range argument may
> be any of the following:
The issue of non-standard headers should be addressed. As well as how
a server which only supports XOVER headers should respond to a request
for a different header.
And the "Bytes" and "Lines" pseudo headers should be discussed.
> . an article number
> . an article number followed by a dash to indicate all
> following . an article number followed by a dash followed by
> another article number.
> The required message-id argument indicates a specific
> article. The range and message-id arguments are mutually
> exclusive. An additional argument consisting of one wildmat
> or two or more wildmats separated by a space may be
> specified. If there are no additional argument, a wildmat "*"
> is the default.
What does two wildmat arguments mean? only headers matching both
wildmats will be shown. Headers matching either will be shown? A
wildmat is created by combining the two with a space and then only
those will be shown?
> Successful responses start with a 221
> response followed by article number,
This makes no sense for Message-ID look-ups. It's dangerous and
likely to cause confusion.
Current implementations of XPAT seem to return the Message-ID first, not an
article number. It should either be the Message-ID or a 0 value. I think
the Message-ID is probably the way to go.
It's questionable as to whether the Message-Id version of this command
is even needed since doing a HEAD command is almost as easy. But I guess
it might make things a little easier for some client authors.
> an US-ASCII space, and
> the header from that message
What happens with multiline headers? Are they returned "as is" in
multiline fashion? Is only the first line returned? Is the line
munged in XOVER fashion first?
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20000227033621.800$eb@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-mailReferences:
<87aeknd2ua.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <20000227033621.800$eb@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>
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: 590539272
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