summaryrefslogtreecommitdiff
path: root/mail/mailgraph/files/patch-mailgraph.pl
blob: 41fdfe685030e194308c08d7444a4d3e2ace246a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- mailgraph.pl.orig	2011-11-19 17:58:21.000000000 +0100
+++ mailgraph.pl	2011-11-19 18:01:09.000000000 +0100
@@ -632,6 +632,13 @@
 				event($time, 'rejected');
 			}
 		}
+		elsif($prog eq 'postscreen')
+		{
+			if($text =~ /NOQUEUE: reject:/)
+			{
+				event($time, 'rejected');
+			}
+		}
 	}
 	elsif($prog eq 'sendmail' or $prog eq 'sm-mta') {
 		if($text =~ /\bmailer=local\b/ ) {
@@ -853,6 +860,11 @@
 			event($time, 'virus');
 		}
 	}
+	elsif($prog eq 'clapf') {
+		if($text =~ /SPAM/) {
+			event($time, 'spam');
+		}
+	}
 }
 
 sub event($$)