X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=My-Audit.pm;h=685b382490a5e6f373d0f1c71d7cf0ad6907de3c;hb=cf27e591624c122b61fc4c9e6b37bc7a73ccb376;hp=1097bfdff1b5628040ffcb5748d8a2ec897bfd9d;hpb=cc8901bc5751c88150b4529d23518ca30b28ea12;p=PerlMail.git diff --git a/My-Audit.pm b/My-Audit.pm index 1097bfd..685b382 100644 --- a/My-Audit.pm +++ b/My-Audit.pm @@ -7,8 +7,8 @@ sub audit_init "silent"=>["=btw" ,"did"], "log" =>["=silent","syslog"], "bell" =>["=log" ,"bell"], - "sms" =>["=bell" ,"sms=1"], - "crit" =>["=sms" ,"sms=3"], + "sms" =>["=bell" ], #,"sms=1"], + "crit" =>["=sms" ], #,"sms=3"], ); @sms_squeezes=( { "SqueezeControl"=>"noconv" }, @@ -51,6 +51,7 @@ sub audit store "=spamo" if headeris "From",''; store "=spamo" if headeris "From",''; store "=spamo" if headeris "From",''; + store "=spamo" if headeris "From",''; { # weak detection: files with text/html w/o text/plain are usually a spam my @types_linear=map({ mime_type($_); } parts_linear()); @@ -162,8 +163,9 @@ sub audit store "=libtoolpat","log" if headeris "List-Id" ,''; # own webs store "=energie","bell" if headeris "From" ,qr/^EnergieWeb/; - store "=ats","bell" if headeris "From" ,''; - store "=atscasablanca","sms" if headeris "From" ,''; + store "=ats","log" if headeris("From" ,'') + || (headeris("From",'') && headerhas("To",'')); + store "=atscasablanca","log" if headeris "From" ,''; # Petr Koutecky does not mark his Stuff store "=koutecky","log" if headeris "From" ,'';