Hi,
unless someone has already provided a patch, amavislogsumm (http://mbegan.phpwebhosting.com/pfix/amavislogsumm) does not process properly 2.3.3 log format.

I wrote a very simple patch so that test names are read without leading/trailing square brackets.

While I was at it, I also added the computation of Bayes-autolearnt spam messages.

HTH,
Paolo

PS: is the original author reading this list?

--
|    QRPp-I #707  + www.paolocravero.tk +  I QRP #476   |
| SpamAssassin-based email antispam/antivirus solutions |
 \    Italian/English-to/from-Croatian translations    /
  \                   Skype: pcravero                 /
34a35,38
> # 15 Sep. 2005
> # * Slight changes to parse logged tests for amavisd-new2.3; added autolearnt
> #   SPAM count. By Paolo Cravero
> #
114a119,120
>     $autolearn, $spamAutolearnt,
>
274a281
>     my $autolearnL = shift @_;
279a287
>     $spamAutolearnt++ if ($autolearnL eq 'spam');
391d398
<         print "\n";
392a400,404
>
>     print "\n";
>     printf "\tSPAM AutoLearnt: %d\n", $spamAutolearnt;
>     print "\n";
>
505c517
<   if ($logLine =~ m/SPAM, <(.*)> -> <(.*)>, Yes, hits=(\d+\.\d+) tag=\-?\d+ 
tag2=\d+\.\d+ kill=\d+\.\d+ tests=(.*), quarant
ine/i) {
---
>   if ($logLine =~ m/SPAM, <(.*)> -> <(.*)>, Yes, hits=(\d+\.\d+) tag=\-?\d+ 
> tag2=\d+\.\d+ kill=\d+\.\d+ tests=\[(.*)\], aut
olearn=(.*), quarantine/i) {
510a523
>           $autolearn = $5;
512c525
<   if ($logLine =~ m/SPAM-TAG, <(.*)> -> <(.*)>, Yes, hits=(\d+\.\d+) 
tagged_above=\-?\d+ required=\d+\.\d+ tests=(.*)/i) {
---
>   if ($logLine =~ m/SPAM-TAG, <(.*)> -> <(.*)>, Yes, hits=(\d+\.\d+) 
> tagged_above=\-?\d+ required=\d+\.\d+ tests=\[(.*)\]/i
) {
531c544
<    workSpam($sender, $recipient, $isSpamMail) if ($isSpamMail > 0);
---
>    workSpam($sender, $recipient, $isSpamMail, $autolearn) if ($isSpamMail > 
> 0);

Reply via email to