--- mailgraph.pl.orig Wed Aug 29 12:06:01 2007 +++ mailgraph.pl Thu Dec 20 14:41:13 2012 @@ -596,7 +596,7 @@ sub process_line($) } } elsif($prog eq 'smtpd') { - if($text =~ /^[0-9A-Z]+: client=(\S+)/) { + if($text =~ /^[0-9a-zA-Z]+: client=(\S+)/) { my $client = $1; return if $opt{'ignore-localhost'} and $client =~ /\[127\.0\.0\.1\]$/; @@ -604,16 +604,16 @@ sub process_line($) $client =~ /$opt{'ignore-host'}/oi; event($time, 'received'); } - elsif($opt{'virbl-is-virus'} and $text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: .*: 554.* blocked using virbl.dnsbl.bit.nl/) { + elsif($opt{'virbl-is-virus'} and $text =~ /^(?:[0-9a-zA-Z]+: |NOQUEUE: )?reject: .*: 554.* blocked using virbl.dnsbl.bit.nl/) { event($time, 'virus'); } - elsif($opt{'rbl-is-spam'} and $text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: .*: 554.* blocked using/) { + elsif($opt{'rbl-is-spam'} and $text =~ /^(?:[0-9a-zA-Z]+: |NOQUEUE: )?reject: .*: 554.* blocked using/) { event($time, 'spam'); } - elsif($text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: /) { + elsif($text =~ /^(?:[0-9a-zA-Z]+: |NOQUEUE: )?reject: /) { event($time, 'rejected'); } - elsif($text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?milter-reject: /) { + elsif($text =~ /^(?:[0-9a-zA-Z]+: |NOQUEUE: )?milter-reject: /) { if($text =~ /Blocked by SpamAssassin/) { event($time, 'spam'); } @@ -628,7 +628,7 @@ sub process_line($) } } elsif($prog eq 'cleanup') { - if($text =~ /^[0-9A-Z]+: (?:reject|discard): /) { + if($text =~ /^[0-9a-zA-Z]+: (?:reject|discard): /) { event($time, 'rejected'); } }