🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83746

Re: control-archive 1.4.0 released

#83746
From: Russ Allbery
Date: Sun, 02 Jan 2011 19:58
43 lines
2956 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> I see that process-control redefines @control here:

> # If this is a checkgroups, figure out what hierarchy it's affecting.
> # This should really be based on the checkgroups arguments if present, but
> # isn't yet.
> if ($control[0] eq 'checkgroups') {
>     my $group = checkgroups_group (\@body);
>     @control = ('checkgroups', $group);
> }

> $group is set to the first valid newsgroup in the checkgroups control
> article.

> Incidentally, I do not see any use afterwards of $group; and @control
> in the case of a checkgroups is used in check_ctl() just below (to match
> the first group).  Maybe check_ctl could be changed to take $group
> and no longer modify @control before its call.

> Hmm…  If the inclusion pattern is set to the first group, why is it
> then excluded from the checkgroups?  (and not also from the active
> file when it is read)
> Is
>   my ($id, $pattern, $body, @args) = @_;
> assigning the right arguments with
>   checkgroups ($id, $pattern, \@body, @control[1 .. $#control]);
> ?

Yup, that was the problem.  It was limiting processing of the checkgroups
to only the first group in the checkgroups, and then excluding that group
from the checkgroups due a separate bug in handling chkscope arguments,
resulting in removing the first group and ignoring the rest of the
checkgroups.  Sigh.

I really need to write some sort of effective test suite for this
software.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <878vz3f57i.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!news.glorb.com!news2.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
References: <87oc8qmjjd.fsf@windlord.stanford.edu> <nsn.1101021229.25@thorondor.akallabeth.de> <8obuasF7v0U1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <878vz3f57i.fsf@windlord.stanford.edu>
Subject: Re: control-archive 1.4.0 released
Date: Sun, 02 Jan 2011 11:58:25 -0800
From: Russ Allbery <rra@stanford.edu>
References: <87oc8qmjjd.fsf@windlord.stanford.edu> <nsn.1101021229.25@thorondor.akallabeth.de> <8obuasF7v0U1@mid.individual.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!news.glorb.com!news2.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 43
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: usenet-its.stanford.edu 1293998305 28284 171.67.225.134 (2 Jan 2011
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
Cancel-Lock: sha1:zj+Hwkbcjkft3E42FC7qP+yADo4=