🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71101

Re: [NNTP] LISTGROUP

#71101
From: Curt Welch
Date: Wed, 20 Apr 2005 17:43
38 lines
2603 bytes
Francois Petillon <fanch@fanfan.staff.proxad.net> wrote:
> On Wed, 20 Apr 2005 02:08:13 +0000, Curt Welch wrote:
> > 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?
>
> It depends on the test you do (pseudo-code) :
> xover(group, low, high) {
>   if (low<group.low) low=group.low;
>   low--;
>   do
>     low++;
>     xover(group, low);
>   until ((low==high) and (low<group.high))
> }
>
> But I agree it is not the right way... :-)

I'm guessing INN didn't turn 100-85 into 100- because they did an absolute
test for matching the high value.  My guess is that they have a range
parser which considers the second value invalid since it was too low and
treates it like it doesn't exist.

Dealing with the values being out of range for the group can create bogus
behavior if you adjust both the high and low values as well.  I even have a
vague memory of writing it the wrong way once and then noticing the problem
and fixing it.  It's easy to get wrong, but getting it right is simple as
well:

  n = low
  if (n < group.low)
     n = group.low

  while (n <= high && n <= group.high)
     xover(group, n++)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20050420134321.436$PG@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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mail
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> <20050419220813.904$pf@newsreader.com> <pan.2005.04.20.08.42.21.253185@fanfan.staff.proxad.net>

Show Full Headers
Complete Article Headers
Message-ID: <20050420134321.436$PG@newsreader.com>
Subject: Re: [NNTP] LISTGROUP
Date: Wed, 20 Apr 2005 17:43:21 +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> <20050419220813.904$pf@newsreader.com> <pan.2005.04.20.08.42.21.253185@fanfan.staff.proxad.net>
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.dca.giganews.com!border1.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 8fr27CR+.Xfd8t4mlNP2=dZnH45ocTzrmDrzSangsRr.Xx
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: 38