🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #27942

Perl Filtering with Cleanfeed...

#27942
From: Mike Wilson, UCE Account
Date: Fri, 01 May 1998 00:00
22 lines
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

Technical Details
Message-ID: <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

Show Full Headers
Complete Article Headers
Message-ID: <6id3ln$nv2$1@valkyrie.OnRamp.Net>
Subject: Perl Filtering with Cleanfeed...
Date: Fri, 01 May 1998 00:00:00 +0000
From: uce_mike@hotmail.com (Mike Wilson, UCE Account)
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: 349390876
Organization: http://www.drwho.org
User-Agent: tin/pre-1.4-971215 (UNIX) (SunOS/5.6 (sun4u))
Newsgroups: news.software.nntp