🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #27933

Re: Perl Filtering with Cleanfeed...

#27933
From: Jeremy
Date: Fri, 01 May 1998 00:00
20 lines
1361 bytes
Mike Wilson, UCE Account <uce_mike@hotmail.com> wrote:

> I've a question. I want to make any post that has badguys|badips in the
> Path: to be rejected. However when I add the follow entry it doesn't seem to
> work (rejects all messages). Thanks for any insight. The # denotes the
> changed portion from filter_innd.pl.
> 
> (($organization =~ /((?:\b$badguys|$baddomainpat)\.(?:$tlds)\b|$badips)/o) || 
> #
> #  ($hdr{"Path"} =~ /((?:$badguys)\.(?:$tlds)|$badips)|/o) ||
                                                 -------^
There's your culprit.  You're saying "or nothing" which matches
anything.  Lose that "or".

-- 
Jeremy  |  jeremy@exit109.com
"Never tell me the odds."  --Han Solo

Technical Details
Message-ID: <olp21.16$bZ4.5803@firestorm.gunslinger.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.mbox.zip!not-for-mail
References: <6id3ln$nv2$1@valkyrie.OnRamp.Net>

Show Full Headers
Complete Article Headers
Message-ID: <olp21.16$bZ4.5803@firestorm.gunslinger.net>
Subject: Re: Perl Filtering with Cleanfeed...
Date: Fri, 01 May 1998 00:00:00 +0000
From: Jeremy <jeremy@exit109.com>
References: <6id3ln$nv2$1@valkyrie.OnRamp.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.mbox.zip!not-for-mail
X-Deja-AN: 349402341
Organization: Still working on it...
NNTP-Posting-Date: Fri, 01 May 1998 15:26:12 EST
Newsgroups: news.software.nntp
Originator: jeremy@exit109.com (Jeremy)