Article View: news.software.nntp
Article #71096Re: [NNTP] LISTGROUP
From: Curt Welch
Date: Wed, 20 Apr 2005 02:08
Date: Wed, 20 Apr 2005 02:08
58 lines
4015 bytes
4015 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > > > I don't think so. 5-1 means: "all articles with numbers >= 5, and <= > > 1". The answer to that question is "no articles". The question is not > > invalid to ask. GROUP and LIST already return low and high water marks > > where the high water mark is less than the low water mark for a group. > > So if a client takes those numbers, and passes them to LISTGROUP in > > order to dump the entire group, he should not get an error for an empty > > group, it should return an empty list. > > That would make sense, but INN has never done that. I'm happy to change > INN to do that instead, but at least the bit of precedent that I've > looked at goes a different direction. Yeah, I saw your follow up post about INN after I wrote that. That's very odd behavior. I wouldn't have guessed that in 1000 years. But notice however that if GROUP returns a highwater mark that is one below the low water mark, and you use that as a range, it does what I would consider as the right thing by luck - meaning it returns an empty list. I assume the behavior is just a side effect and not something done on purpose. There's no reason to make 100-85 be read as 100- is there? > I'd love to hear information about what other servers do. My server treats it like my example. L-H is seen as "all articles >= L and <= H". So it's seen as the empty set. Easynews on xover will return a single article for the low value so it in effect ignores the -H. diablo seems to work like mine and treat it as the empty set. A giganews server works the same as the easynews server and returns a single article matching the low value. This is probably a highwind server behavior. I also notice that if you use numbers below the range of the group, it changes them to be the first article in the group. So if the group is articles 10-20, and you do XOVER 1-2, or XOVER 2-1, it returns an xover record for article 10. So they must be adjusting the numbers to be within the group range before executing the command. That's just poor code in my book. If you ask for 5-9 it shouldn't return a record for 10 like the giganews server does. Going back and testing the easynews server I find it doesn't do that odd out-of-range behavior. So it looks to me like there isn't any consistency in how servers have dealt with this. None I tested treated it as an error however. They all either returned nothing or returned a single article. But I only tested the xover command. I didn't do a complete test on all the cases with all the commands that support a range. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20050419220813.904$pf@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.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<87is2mz13d.fsf@windlord.stanford.edu> <Pine.WNT.4.63.0504181529350.3216@Tomobiki-Cho.CAC.Washington.EDU> <20050419205322.158$D1@newsreader.com> <87y8bei7d2.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <20050419220813.904$pf@newsreader.com>
Subject: Re: [NNTP] LISTGROUP
Date: Wed, 20 Apr 2005 02:08:13 +0000
From: curt@kcwc.com (Curt Welch)
References: <87is2mz13d.fsf@windlord.stanford.edu> <Pine.WNT.4.63.0504181529350.3216@Tomobiki-Cho.CAC.Washington.EDU> <20050419205322.158$D1@newsreader.com> <87y8bei7d2.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com dbw1x5Pd2FqzQtHPijYJbwjO/OSr6lvyRPXO5DCWoL@_PcMM
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-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 58