mirror of
https://github.com/darold/sendmailanalyzer.git
synced 2026-05-17 22:02:51 -06:00
Fix parsing of amavis virus detection. Thanks to Jean-Francois Legendre for the report.
This commit is contained in:
parent
982ba3fec4
commit
f45a9073d3
1 changed files with 2 additions and 1 deletions
|
|
@ -1726,7 +1726,8 @@ sub parse_amavis
|
|||
$SPAMDETAIL{$host}{$id}{score}= $score if ($score ne '-');
|
||||
}
|
||||
|
||||
} elsif ($str =~ /(Passed|Blocked) INFECTED \(([^\)]*)\)[^,]*, (.*) [<]*([^\s>]*)[>]* -> [<]*([^,>]*)[>]*,(.*) Message-ID: [<]*([^,>]+)[>]*, /) {
|
||||
#Apr 27 21:52:40 courriel amavis[32042]: (32042-07) Blocked INFECTED (Eicar-Test-Signature) {BouncedInternal,Quarantined}, LOCAL [192.168.10.159]:49084 <root@t500u.technocentre.net> -> <jflegendre@technocentre.net>, quarantine: 8/virus-8q0BMrnZwSoe, Queue-ID: 3BEF0600460, Message-ID: <20160428015239.GA23265@t500u>, mail_id: 8q0BMrnZwSoe, Hits: -, size: 621, 107 ms
|
||||
} elsif ($str =~ /(Passed|Blocked) INFECTED \(([^\)]*)\).*, (.*?) [<]*([^\s>]*)[>]* -> [<]*([^,>]*)[>]*,(.*) Message-ID: [<]*([^,>]+)[>]*, /) {
|
||||
my $virus = $2;
|
||||
my $relay = lc($3);
|
||||
my $from = $4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue