🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74138

Re: Checkgroups control articles

#74138
From: F. Senault
Date: Tue, 29 Aug 2006 12:58
31 lines
2707 bytes
Le 29 août à 13:10, Iulius a écrit :

>          if ($type =~ /$ctlline[0]/ and $sender =~ /$ctlline[1]/i and
>              ($type !~ /(?:new|rm)group/ or $newsgroup =~ /$ctlline[2]/)) {
> 
> 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.

I'd guess it's a shortcut - if it isn't a rm/newgroup, the newsgroup is
undefined (you can't guess a newsgroup or a hierarchy from a checkgroups
message), so you can't test it.  The part before the or catches it and
ensures the test against $newsgroup isn't executed.
 
> 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...

Yeah.  Sounds logical to me.  How can you guess the newsgroup of a
checkgroups message ?  Taking the first group in the newsgroups list is
a bit hazardous...

Fred
-- 
The quality of life and the world in general become much better if we
start chopping off spammers' fingers at a rate of say, 1 finger per
message, with bonus pre-amputation limb flattening for html or other
"prettification" mail.	               (Peter N. M. Hansteen in the SDM)
Technical Details
Message-ID: <19mlvs9qxyu6h$.dlg@ballantines.lacave.local>
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!t-online.de!feeder.news-service.com!feed.xsnews.nl!feeder.xsnews.nl!217.145.39.3.MISMATCH!talisker.lacave.net!lacave.net!not-for-mail
References: <ebsvjo$u37$1@guepard.ecp.fr> <87psentg8t.fsf@windlord.stanford.edu> <ed0v3f$87g$1@guepard.ecp.fr> <ed17ai$b20$1@guepard.ecp.fr>

Show Full Headers
Complete Article Headers
Message-ID: <19mlvs9qxyu6h$.dlg@ballantines.lacave.local>
Subject: Re: Checkgroups control articles
Date: Tue, 29 Aug 2006 14:58:50 +0200
From: "F. Senault" <fred@lacave.net>
References: <ebsvjo$u37$1@guepard.ecp.fr> <87psentg8t.fsf@windlord.stanford.edu> <ed0v3f$87g$1@guepard.ecp.fr> <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!t-online.de!feeder.news-service.com!feed.xsnews.nl!feeder.xsnews.nl!217.145.39.3.MISMATCH!talisker.lacave.net!lacave.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Grand maitre de la secte de l'Elephant Fuschia
Lines: 31
NNTP-Posting-Host: 78.179-112-217.pro.adsl.belcenter.be
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: talisker.lacave.net 1156856331 79468 217.112.179.78 (29 Aug 2006
X-Complaints-To: abuse@lacave.net
NNTP-Posting-Date: Tue, 29 Aug 2006 12:58:51 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.1fr (31e21e21.213.296)