I have a spam filter that I have written that I would like to work with Outlook Express and I would really like to get it implemented... can anyone help?
come on clever dudes - I really need your help!
To elaborate - I get about 100 spam emails a day and I have come up with this:-
It might not be rocket science but it sure would catch almost all of my rubbish emails - and it is so simple to expand - so I am desperate to get it working!
Kind Regards
Duncan
come on clever dudes - I really need your help!
To elaborate - I get about 100 spam emails a day and I have come up with this:-
Code:
@spam_words = (
"viagra",
"paris hilton",
"vicodin",
"teen movies",
"human growth hormone",
"xanax",
"valium",
);
foreach $spam_word (@spam_words) {
$filter = join ("[^a-z]*", split(//, $spam_word));
push (@spam_filters, $filter);
}
@emails = (
'you can get v/i/a/g/r/a for only $10 per tablet!',
'Low Everyday Prices on Vicódin',
'you can get a date with P*a*r*i*s H*i*l*t*o*n!!!',
'WITH H_U_M_A_N G_R_O_W_T_H H_O_R_M_O_N_E DIETARY THERAPY !!!',
'Cc: 1/2 off valíum, xãnax. - Delivered Overnight',
'Welcome to our F.r.e.e T.e.e.n M.o.vie.s Newsletter Issue # 9',
);
foreach $email (@emails) {
$email =~ s|ç|c|;
$email =~ s|ó|o|;
$email =~ s|ã|a|;
$email =~ s|í|i|;
print "$email\n";
print "—" x length ($email) . "\n";
foreach $spam_filter (@spam_filters) {
if ($email =~ m|$spam_filter|i) {
print "SPAM : $spam_filter\n";
} else {
print "o.k. : $spam_filter\n";
}
}
print "\n";
}
It might not be rocket science but it sure would catch almost all of my rubbish emails - and it is so simple to expand - so I am desperate to get it working!
Kind Regards
Duncan