Blob Blame History Raw
diff -Naur mailgraph-1.14-pristine/mailgraph.pl mailgraph-1.14/mailgraph.pl
--- mailgraph-1.14-pristine/mailgraph.pl	2007-08-29 03:06:01.000000000 -0600
+++ mailgraph-1.14/mailgraph.pl	2014-09-14 22:08:33.325627418 -0600
@@ -595,7 +595,7 @@
 				event($time, 'bounced');
 			}
 		}
-		elsif($prog eq 'smtpd') {
+		elsif($prog eq 'smtpd' || $prog eq 'postscreen') {
 			if($text =~ /^[0-9A-Z]+: client=(\S+)/) {
 				my $client = $1;
 				return if $opt{'ignore-localhost'} and
@@ -631,6 +631,9 @@
 			if($text =~ /^[0-9A-Z]+: (?:reject|discard): /) {
 				event($time, 'rejected');
 			}
+			elsif($text =~ /Virus found/) {
+				event($time, 'virus');
+         }
 		}
 	}
 	elsif($prog eq 'sendmail' or $prog eq 'sm-mta') {