Thread View: alt.usenet.peering
1 messages
1 total messages
Started by Son of Serpent Esq
Sat, 07 Mar 2009 10:15
Peer Review Request
Author: 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")
};
###
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