X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=My-Audit.pm;h=685b382490a5e6f373d0f1c71d7cf0ad6907de3c;hb=cf27e591624c122b61fc4c9e6b37bc7a73ccb376;hp=d3e4013b30e3178ad78d56576d09517b734b8f53;hpb=815d559db331524d589531a8add62fec0f359ea2;p=PerlMail.git diff --git a/My-Audit.pm b/My-Audit.pm index d3e4013..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()); @@ -80,6 +81,7 @@ sub audit store "=err","bell" and return if headerhas \&Received_for,''; # ppl-wished foreign remapping, Reply-To is left untouched! + # FIXME: modifications are now being dropped by &write_message! header_remap("From",{ 'kerere@post.cz' =>'kamzik@k332.feld.cvut.cz', 'profes@mbox.vol.cz' =>'kratochvilova@egp.cz', @@ -124,6 +126,7 @@ sub audit store "=9kd","log" if headeris "Sender" ,''; store "=spong","log" if headeris "List-Id" ,''; store "=gtkd","silent" if headeris "List-Id" ,''; + store "=gnomevfs","log" if headeris "List-Id" ,''; store "=mffstatnice","bell" if headeris "List-Post",''; store "=hw","log" if headeris "List-Post",''; store "=gnokii","log" if headeris "List-Id" ,''; @@ -160,6 +163,9 @@ sub audit store "=libtoolpat","log" if headeris "List-Id" ,''; # own webs store "=energie","bell" if headeris "From" ,qr/^EnergieWeb/; + 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" ,'';