+=rosd
[PerlMail.git] / PerlMail / Config.pm
index 980c4df..bd40727 100644 (file)
@@ -43,7 +43,7 @@ require Mail::Alias;
 
 BEGIN {
        for (qw(headerhas store headeris did dnsbl store_muttrc_alternates Received_for parts_linear mime_type
-                       body_first mimehead razor2 header_remap)) {
+                       body_first mimehead spamassassin header_remap)) {
                eval 'sub '.$_.' { return ::'.$_.'(@_); }';
                }
        }
@@ -102,6 +102,7 @@ my @lists=qw(
                gsm@pandora.cz
                ros-general@reactos.com
                ros-kernel@reactos.com
+               ros-dev@reactos.com
                ros-cvs@reactos.com
                4cinfo@atrey.karlin.mff.cuni.cz
                libtool@gnu.org
@@ -126,6 +127,10 @@ my @lists=qw(
                mailman-developers@python.org
                wineconf@winehq.org
                prague-pm@pm.org
+               dev@httpd.apache.org
+               asterisk-perl@lists.gnuinter.net
+               isdn4linux@listserv.isdn4linux.de
+               libc-alpha@sources.redhat.com
                );
                #4c-list@vellum.cz
 
@@ -251,7 +256,6 @@ our $store_ignore;  # imported
 sub audit
 {
        $store_profile=undef();
-       # TODO: <short-m@> storage?
 
        # never spawn new mail if FROM_MAILER
        # $isFROM_MAILER postponed after maillists as they may look as FROM_MAILER
@@ -290,7 +294,7 @@ sub audit
                # Do not local $store_file as it is our-imported
                $store_profile="silent";
                local $_;
-               store "=spam".($_ eq 1 ? "" : ";$_")      if $_=razor2();
+               store "=spam".($_ eq 1 ? "" : ";$_")      if $_=spamassassin();
                };
        $store_profile=undef();
        return if did sub {
@@ -370,6 +374,7 @@ sub audit
        store "=wineconf","log"      if headeris "List-Id"  ,'<wineconf.winehq.org>';
        store "=ros","log"           if headeris "List-Id"  ,'<ros-general.reactos.com>';
        store "=roskernel","log"     if headeris "List-Id"  ,'<ros-kernel.reactos.com>';
+       store "=rosd","log"          if headeris "List-Id"  ,'<ros-dev.reactos.com>';
        store "=roscvs","silent"     if headeris "List-Id"  ,'<ros-cvs.reactos.com>';
        store "=rosbug","log"        if headeris "Reply-To" ,'<scarab@reactos.wox.org>';
        store "=fsd","silent"        if headeris "X-Mailing-List",'<linux-fsdevel@vger.kernel.org>';
@@ -424,12 +429,20 @@ sub audit
        store "=orbit","log"         if headeris "List-Id"  ,'<orbit-list.gnome.org>';
        store "=kand","log"          if headeris "List-Id"  ,'<devel.kannel.org>';
        store "=mailmand","log"      if headeris "List-Id"  ,'<mailman-developers.python.org>';
+       store "=asterisk-perl","log" if headeris "List-Post",'<asterisk-perl@lists.gnuinter.net>';
+       store "=i4l","log"           if headeris "List-Id"  ,'<isdn4linux.listserv.isdn4linux.de>';
+       store "=glibc","log"         if headeris "Mailing-List",qr/\b\Qlibc-alpha-help\E@\Qsources.redhat.com\E\b/;
+       store "=fedann","bell"       if headeris "List-Id"  ,'<fedora-announce-list.redhat.com>';
+       store "=fedtools","log"      if headeris "List-Id"  ,'<fedora-tools-list.redhat.com>';
        # own webs
        store "=energie","bell"      if headeris "From"     ,qr/^EnergieWeb/;
        store "=ats","log"           if headeris("From"     ,'<root@ms.atspraha.cz>')
                                        || (headeris("From",'<online@ringier.cz>') && headerhas("To",'<blesk@atspraha.cz>'));
        store "=atscasablanca","log" if headeris "From"     ,'<casablanca@ms.atspraha.cz>';
        store "=www-sms","log"       if headeris "List-Id"  ,'<www-sms-developers.lists.sourceforge.net>';
+       store "=httpdd","log"        if headeris "list-post",'<dev@httpd.apache.org>';
+       store "=mms2log","log"       if headeris "Return-Path",'<root@node0.mms2.org>';
+       store "=hotelgatelog","log"  if headeris "Return-Path",'<root@hotelgate.hotelsevendays.cz>';
 
        # Petr Koutecky does not mark his Stuff
        store "=koutecky","log"      if headeris "Return-Path",'<velkyhroch@seznam.cz>';
@@ -437,7 +450,10 @@ sub audit
 
        store "=errm","bell"         if $isFROM_MAILER && !did();
 
-       store "==","sms"             if !did;
+       if (!did) {
+               store "==","sms";
+               spamassassin "sa-learn --ham";
+               }
 }
 
 sub audit_sms_address