SCHAPPY — 10. September 2006, 18:40
mailgraph.pl
Problem: After upgrading spamassassin to 3.1.x mailgraph may no longer log spam mails.
Reason: Spamassassin changed its output for logging by adding (a redundant) information — its client app. name. Therefore, the regular expression will not start with the desired text.
Solution:
--- /usr/sbin/mailgraph.pl.v1.10 2006-09-10 00:00:00.000000000 +0200 +++ /usr/sbin/mailgraph.pl.v.1.10p 2006-09-10 00:00:00.000000000 +0200 @@ -615,7 +615,7 @@ } } elsif($prog eq 'spamd') { - if($text =~ /^identified spam/) { + if($text =~ /identified spam/) { event($time, 'spam'); } }
Filed under: Field-tested, You've got mail!