Article View: news.software.nntp
Article #44614Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
From: Curt Welch
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
72 lines
4331 bytes
4331 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: > > >> A server would actually be better off indexing *all* the headers > >> in an article, > > Curt> I think this HEADERS command will encourage future designs to > Curt> do just that. > > How do you suggest multiple instances of a header be handled? Never thought about it. Good question. What does/should PAT do about that? In my server, you only get the first header for those commands. But with the PAT format, you could of course print out multiple responses for the same header. But I doubt any implementation of PAT does that. My HEADERS command would be forced to drop the extra headers, or combine them all together as if they were one long header. Are there any headers in common use that are allowed to be duplicated. X-Comments: is something I think I've seen duplicated (or ones like that). That would be one that would be OK to combine together I think. Looking at some headers, I spot X-FTN-SEEN-BY: duplicated. That looks like one that could be combined into one line without a problem. And X-FTN-PATH:. Not sure about that. I see a lot of stuff like X-Moderation-1: and X-Moderation-2: i.e. people numbering headers to prevent duplication. Ah, there's an X-Abuse-Info: that's duplicated in <38a68045$0$2994@reader3.casema.net>. The Mail headers like To: and Cc: which can be duplicated in mail (right?) are something people might want to extract with the HEADERS command, and if you simply combined them together without adding the comma, then it wouldn't work. You could special case those and add the comma only for those when they are combined togther. But for the mail Received: header there's nothing you can do. Combining them together would never work well. I'm thinking that maybe the correct approach is to ONLY return the first header in the cases where it's duplicated. This would reinforce the convention that "real" Usenet headers can not be duplicated. The HEADERS command could still be used to help locate articles which had a To: header, but if you want to be sure to get all the data for these non-standard Usenet headers, you would just have to use the HEAD command. HEADERS isn't meant to be the end-all solution for all your header needs. It's just meant to be a "beter" form of XOVER that 1) allows applications to leave out what they don't need, and 2) add in extras they may want like MIME headers or Organization etc. > (As a server implementor, I personally don't feel that the overhead of > indexing 24kbytes per post of meower vanity headers is really worth it > just to support HEADERS X-Fuckkkhead * or whatever.) I don't index anything as it comes in. I do it all on demand and then cache it. So I won't be wasting any time or storage indexing X-Fuckkkhead headers unless a user starts asking for it -- and then the work is only associated with the group in which they ask that. And, actually, my current design is only able to cache the standard XOVER data, so X-Fuckkkhead requests are always going to be slow. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20000229123842.306$6M@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> <20000228025703.219$Yt@newsreader.com> <951759933.438276@news.netscum.dk> <20000228153833.742$B7@newsreader.com> <951779481.407957@news.netscum.dk> <20000228212608.617$kG@newsreader.com> <87r9dw1yqz.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <20000229123842.306$6M@newsreader.com>
Subject: Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Date: Tue, 29 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <87aeknd2ua.fsf@erlenstar.demon.co.uk> <20000228025703.219$Yt@newsreader.com> <951759933.438276@news.netscum.dk> <20000228153833.742$B7@newsreader.com> <951779481.407957@news.netscum.dk> <20000228212608.617$kG@newsreader.com> <87r9dw1yqz.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: 591383625
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