- $store_profile="silent";
- store "=spam" if headeris "From",'<ghandchi@hotmail.com>';
- store "=spam" if headeris "From",'<mailcontests@lists.servitall.com>';
- {
- # weak detection: files with text/html w/o text/plain are usually a spam
- my @types_linear=map({ mime_type($_); } parts_linear());
- store "=spam" if grep({ $_ eq "text/html"; } @types_linear) && !grep({ $_ eq "text/plain"; } @types_linear);
- }
- store "=spam" if ($_=mimehead(body_first())->mime_attr("Content-Type.charset")) && /^big5/i;
+ $store_profile="log";
+ local $_;
+ store "=spam".";virus=$_" if $_=clamscan();
+ store "=spam".";spamassassin".($_ eq 1 ? "" : "=$_") if $_=spamassassin();
+ store "=spam".";$_" if $_=dnsbl '.relays.ordb.org.' ,1; # all hosts
+ store "=spam".";$_" if $_=dnsbl '.blackholes.mail-abuse.org.' ,1; # all hosts
+ # we don't check all hosts as they can be "dialup" category, FIXME: check for it
+# store "=spam".";$_" if $_=dnsbl '.blackholes.five-ten-sg.com.',0; # just first
+ # I don't send viruses but viruses propagate mails of mine
+ store "=spam".";ravmd" if headeris "X-Mailer",'ravmd/8.3.2';