+"=rosbug"
[PerlMail.git] / My-Audit.pm
index bd8de88..d6e924f 100644 (file)
@@ -22,7 +22,7 @@ sub audit_init
        @alternates_host=(
                        "jabberwock.ucw.cz",    # short@ucw.cz
                        "atrey.karlin.mff.cuni.cz",     # short@atrey.karlin.mff.cuni.cz
-                       "k332.feld.cvut.cz",    # k332.feld.cvut.cz
+                       "k332.feld.cvut.cz",    # short@k332.feld.cvut.cz
                        );
 }
 
@@ -39,18 +39,6 @@ sub audit
                        || headerhas "From",'<Regexp:^owner->'
                        );
 
-       # spam detection
-       return if did sub {
-               local $store_profile="silent";
-               local $_;
-               store "=spam-abuse"                .";$_","log" 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-five"                 .";$_","log" if $_=dnsbl '.blackholes.five-ten-sg.com.',0; # just first
-               store "=spam-razor".($_ eq 1 ? "" : ";$_")      if $_=razor2();
-               # I don't send viruses but viruses propagate mails of mine
-               store "=spam-av"                                if headeris "X-Mailer",'ravmd/8.3.2';
-               };
-
        # spam honeypots
        return if did sub {
                local $_;
@@ -60,6 +48,7 @@ sub audit
                store "=spamo"        if headeris "From",'<ghandchi@hotmail.com>';
                store "=spamo"        if headeris "From",'<newsletter@levnapc.cz>';
                store "=spamo"        if headeris "From",'<Tomas@dtpstudio.cz>';
+               store "=spamo"        if headeris "From",'<BNcom@email.bn.com>';
                {
                        # weak detection: files with text/html w/o text/plain are usually a spam
                        my @types_linear=map({ mime_type($_); } parts_linear());
@@ -68,6 +57,18 @@ sub audit
                store "=spamo-big5" if ($_=mimehead(body_first())->mime_attr("Content-Type.charset")) && /^big5/i;
                };
 
+       # spam detection
+       return if did sub {
+               local $store_profile="silent";
+               local $_;
+               store "=spam-abuse"                .";$_","log" 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-five"                 .";$_","log" if $_=dnsbl '.blackholes.five-ten-sg.com.',0; # just first
+               store "=spam-razor".($_ eq 1 ? "" : ";$_")      if $_=razor2();
+               # I don't send viruses but viruses propagate mails of mine
+               store "=spam-av"                                if headeris "X-Mailer",'ravmd/8.3.2';
+               };
+
        # special delivery
        store "=err","bell" and return if headerhas \&Received_for,'<short+err@>';
 
@@ -126,6 +127,7 @@ sub audit
        store "=ros","log"           if headeris "List-Post",'<ros-general@reactos.com>';
        store "=roskernel","log"     if headeris "List-Post",'<ros-kernel@reactos.com>';
        store "=roscvs","silent"     if headeris "List-Post",'<ros-cvs@reactos.com>';
+       store "=rosbug","bell"       if headeris "Reply-To" ,'<scarab@reactos.wox.org>';
        store "=fsd","log"           if headeris "X-Mailing-List",'<linux-fsdevel@vger.kernel.org>';
        store "=surprise","sms"      if headeris "List-Post",'<surprise@atrey.karlin.mff.cuni.cz>';
        store "=surprisesuse","sms"  if headeris "Sender"   ,'<owner-surprise@suse.cz>';
@@ -143,6 +145,7 @@ sub audit
        store "=4c","sms"            if headeris "List-Post",'<4cinfo@atrey.karlin.mff.cuni.cz>';
        store "=slashdot","bell"     if headeris "From"     ,'<slashdot@slashdot.org>';
        store "=freshmeat","bell"    if headeris "From"     ,'<noreply@freshmeat.net>';
+       store "=sourceforge","bell"  if headeris "From"     ,'<noreply@sourceforge.net>';
        store "=gsmperlcvs","silent" if headeris("From"     ,'<johan@intra.tektonica.com>')
                                        && $Audit->subject()=~/^'.*' has been updated!$/;
        # own webs