Thread View: news.software.nntp
2 messages
2 total messages
Started by Mike Wilson, UCE Account
Fri, 01 May 1998 00:00
Perl Filtering with Cleanfeed...
Author: Mike Wilson, UCE Account
Date: Fri, 01 May 1998 00:00
Date: Fri, 01 May 1998 00:00
22 lines
1284 bytes
1284 bytes
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) ||
#
(lc($hdr{"From"}) =~ /(\b(?:$badguys)\.(?:$tlds)\b|$badips)/o) ||
(lc($hdr{"NNTP-Posting-Host"}) =~ /(\b(?:$badguys)\.(?:$tlds)\b)/o)) &&
(return reject ($verbose ? "Spam - $1" : "Spam domain"));
--
---
Mike Wilson http://www.drwho.org
http://www.pobox.com/~mwilson
Re: Perl Filtering with Cleanfeed...
Author: Jeremy
Date: Fri, 01 May 1998 00:00
Date: Fri, 01 May 1998 00:00
20 lines
1361 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads