Article View: alt.usenet.peering
Article #403Peer Review Request
From: Son of Serpent Esq
Date: Sat, 07 Mar 2009 10:15
Date: Sat, 07 Mar 2009 10:15
22 lines
1446 bytes
1446 bytes
After careful thought I've decided to modify my spam filters. I am
posting the relevant changes here for review, comments and
suggestions. My main interest is advice on how to make this code
more efficient and perhaps a little more elegant.
###
my $not_big8 = 1;
foreach (@groups) {
if ($_ =~ /^(?:comp|misc|news|rec|soc|sci|humanities|talk)\./)
{ $not_big8 = 0; };
if ($_ =~ /^(?:alt|perl|linux|free|uk|de|aus|fr|it|relcom)\./)
{ $not_big8 = 1; };
};
if ($not_big8) {
#
## Filters go here
#
return reject("Spam ($&) From: $hdr{From} $not_big8 @groups")
};
###
Technical Details
Message-ID:
<gothge$7n4$1@tioat.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.usenet.peering.20140306.mbox.gz!border2.nntp.ams.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!tioat.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <gothge$7n4$1@tioat.net> Subject: Peer Review Request Date: Sat, 07 Mar 2009 10:15:42 +0000 From: Son of Serpent Esq <junior@tioat.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.usenet.peering.20140306.mbox.gz!border2.nntp.ams.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!tioat.net!not-for-mail Newsgroups: alt.usenet.peering Organization: Serpent and Son - Garden Supplies and Lawn Mower Repair Lines: 22 NNTP-Posting-Host: 0x12768570C1B9C0EB Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: news@tioat.net or http://tioat.net/nntp-contact NNTP-Posting-Date: Sat, 7 Mar 2009 10:15:42 +0000 (UTC)