Article View: news.software.nntp
Article #46302Re: INN 2.3.0 public beta
From: Curt Welch
Date: Thu, 04 May 2000 00:00
Date: Thu, 04 May 2000 00:00
103 lines
5025 bytes
5025 bytes
Process Pasteurized Fluffy Product <supersede@india.com> wrote: > Jeremy <bofh@netscum.dk> wrote: > > > This is why I'd like to see something like the HEADERS command > > implemented. I almost always *don't* want Xrefs in my overviews when > > I'm reading over the Internet, but others do, and I might sometimes, so > > it would be very nice to have a choice at the client side. > > Here's something to play with on recent 2.3 k0dez. Cool. Thanks. > It could stand > some more work that I'm unikely to have time to do (among other > things, the cmd syntax and output format are wild-ass guesses based on > various discussions here As far as I can tell from a quick scan of the code it looks almost identical to my implementaion (minus the optional :wildmat args for each header argument). I think I did bascially the same thing you did which was to take the xhdr code and add support for multiple headers. So the return codes basically follow what xhdr uses (430 for no such article on Message-ID lookup and 221 for list follows for all others). And output syntax is like XOVER with fields separated with tabs. The only minor difference I've spoted so far is the output syntax when a message-ID is used to specify the article. I do this: HEADERS <87d7n2vkx9.fsf@meowhost.meow.invalid> x-meow 221 0 <87d7n2vkx9.fsf@meowhost.meow.invalid> 0 Wouf . Where as you did this: HEADERS <87d7n2vkx9.fsf@meowhost.meow.invalid> x-meow 221 headers follow. <87d7n2vkx9.fsf@meowhost.meow.invalid> Wouf . Putting the Message-ID first and following it with a space instead of a tab. To be consistent with the output format when a range is used, I think that space needs to be a tab (so the same parsing code can be used for both types of output in the client). But whether the Message-ID is included as the first field instead of the 0 I don't think is important. My thought was that if they wanted the message-ID on the output line they could ask for it as one of the headers. I think I actually like your way better. The 221 response line I use above is taken from the HEAD command, but it's not consistent with my use of the response line when a range is used. I do this: HEADERS 12254-12255 from x-meow 221 12254-12255 From X-Meow headers follow 12254 Process Pasteurized Fluffy Product <supersede@india.com> Wouf 12255 "Kean Meng, Lim" <kmlim@cheerful.com> . So to be consistent with that, I should have returned: 221 <87d7n2vkx9.fsf@meowhost.meow.invalid> X-Meow headers follow Buy now that I think more about this, what I think actaully needs to be done here is to use a new return code for the HEADERS output instead of re-using 221 which is already used for HEAD, XHDR, XPAT, and PAT commands. XOVER uses 224 so I'd suggest using the next code after that: 225 -- which as far as I can tell isn't being used. And then make the output well defined so it can be machine parsed: 225 message-id|range header-list So the return code lines from the above examples would become: 225 <87d7n2vkx9.fsf@meowhost.meow.invalid> X-Meow and 225 12254-12255 From X-Meow Using a unique return code could make the client side programming easier. It would make it posible to use the same code for reading and parsing both XOVER and HEADERS output without having to "tell" it before hand which output to expect. And adding the headers to the 225 line also means the client code that sends the command doesn't need to "tell" the client code that parses the output what headers to expect since it's already in the output it's looking at. Any thougts about using the 225 return code like this? I've gone ahead and changed my implementation to do this now and my HEADERS by Message-ID includes the Message-ID as the first field instead of a 0. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20000504124431.501$m8@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:
<yl7ldiu3j8.fsf@windlord.stanford.edu> <bill-3004002219240001@fireproof.scconsult.com> <957160457.365327@news.netscum.dk> <bill-0105001931200001@fireproof.scconsult.com> <957242886.971518@news.netscum.dk> <87d7n2vkx9.fsf@meowhost.meow.invalid>Show Full Headers
Complete Article Headers
Message-ID: <20000504124431.501$m8@newsreader.com>
Subject: Re: INN 2.3.0 public beta
Date: Thu, 04 May 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <yl7ldiu3j8.fsf@windlord.stanford.edu> <bill-3004002219240001@fireproof.scconsult.com> <957160457.365327@news.netscum.dk> <bill-0105001931200001@fireproof.scconsult.com> <957242886.971518@news.netscum.dk> <87d7n2vkx9.fsf@meowhost.meow.invalid>
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: 619205831
X-User: Curt@NewsReader.Com
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
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Newsgroups: news.software.nntp