🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74137

Re: Checkgroups control articles

#74137
From: Iulius
Date: Tue, 29 Aug 2006 11:10
39 lines
2587 bytes
> There was a little problem yesterday, regarding the « it-alt.* » 
> checkgroups
> <20060828194118$09f2@pegasus.linuxfan.it> posted in
> « it-alt.config,news.admin.hierarchies ».
> I do not carry that hierarchy and there is no mention of it in my « 
> control.ctl ».

In « controlchan »:

     foreach (@$ctllist) {
         my @ctlline = split /:/;
         # 0: type  1: from@addr  2: group.*  3: action
         if ($type =~ /$ctlline[0]/ and $sender =~ /$ctlline[1]/i and
             ($type !~ /(?:new|rm)group/ or $newsgroup =~ /$ctlline[2]/)) {
             $action = $ctlline[3];
             $action =~ s/\^(.+)\$/$1/;
             $action =~ s/\\//g;
             $hier = $ctlline[2] if $type eq 'checkgroups';
             last;
         }
     }


Well, why is it « $type !~ /(?:new|rm)group/ » and not « $type =~ /(?:new|rm)group/ » ?
And if I put « =~ », PERL complains:
Use of uninitialized value in pattern match (m//) at /usr/lib/news/bin//controlchan line 277.

Well, in fact, « $newsgroup » seems not to be defined.

But it is « $progparams[0] » and it is not defined before the call of « ctlperm ».
I do not see well what is happening here.


Anyway, it looks as though « $ctlline[2] » is not taken into account...

-- 
Iulius

« Auri sacra fames ! » (Virgile)
Technical Details
Message-ID: <ed17ai$b20$1@guepard.ecp.fr>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.ecp.fr!not-for-mail
References: <ebsvjo$u37$1@guepard.ecp.fr> <87psentg8t.fsf@windlord.stanford.edu> <ed0v3f$87g$1@guepard.ecp.fr>

Show Full Headers
Complete Article Headers
Message-ID: <ed17ai$b20$1@guepard.ecp.fr>
Subject: Re: Checkgroups control articles
Date: Tue, 29 Aug 2006 13:10:10 +0200
From: Iulius <iulius@nom-de-mon-site.com.invalid>
References: <ebsvjo$u37$1@guepard.ecp.fr> <87psentg8t.fsf@windlord.stanford.edu> <ed0v3f$87g$1@guepard.ecp.fr>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.ecp.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: Gens Iulia -- http://www.trigofacile.com/
Lines: 39
NNTP-Posting-Host: amontpellier-157-1-65-69.w86-202.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: guepard.ecp.fr 1156849810 11328 86.202.140.69 (29 Aug 2006 11:10:10
 GMT)
X-Complaints-To: ingesys@cti.ecp.fr
NNTP-Posting-Date: Tue, 29 Aug 2006 11:10:10 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr;
In-Reply-To: <ed0v3f$87g$1@guepard.ecp.fr>