X-Git-Url: https://git.jankratochvil.net/?p=PerlMail.git;a=blobdiff_plain;f=My-Audit.pm;h=3ced029b560feefcc3699ed30ff50c9e17aed177;hp=6375a0c1d0dd8f42a3b343cb63bba4ec648abad7;hb=2c71524dfa11da7077ace75df3a78f5346c676ba;hpb=451abe80dd57eb5e8c4b551594ee0dfd7ffb8e18 diff --git a/My-Audit.pm b/My-Audit.pm index 6375a0c..3ced029 100644 --- a/My-Audit.pm +++ b/My-Audit.pm @@ -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 ); } @@ -60,6 +60,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()); @@ -143,6 +144,7 @@ sub audit store "=4c","sms" if headeris "List-Post",'<4cinfo@atrey.karlin.mff.cuni.cz>'; store "=slashdot","bell" if headeris "From" ,''; store "=freshmeat","bell" if headeris "From" ,''; + store "=sourceforge","bell" if headeris "From" ,''; store "=gsmperlcvs","silent" if headeris("From" ,'') && $Audit->subject()=~/^'.*' has been updated!$/; # own webs @@ -203,10 +205,10 @@ my(%args)=@_; # Remove "..." lines (is it used by anyone except me?) s/^\Q...\E$/*/gm; # quoting "> " - s/^\s*[>][>\s]*.*$/*/gm; + s/^(?:\s*[[:upper:]]{0,3}>)+.*$/*/gm; s/(?:^|\n)(?:\*\n+)+/\n*\n/gs; # attributions - s/^.*\b(?:wrote|writes):\s*$//gm; + s/^.*\b(?:wrote|writes|napsal jste):\s*$//gm; my $body=$_; return [$from,"($subject)$body"];