summaryrefslogtreecommitdiff
path: root/mail/mailgraph/files/patch-mailgraph.pl
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mailgraph/files/patch-mailgraph.pl')
-rw-r--r--mail/mailgraph/files/patch-mailgraph.pl28
1 files changed, 28 insertions, 0 deletions
diff --git a/mail/mailgraph/files/patch-mailgraph.pl b/mail/mailgraph/files/patch-mailgraph.pl
new file mode 100644
index 000000000000..4aed38964513
--- /dev/null
+++ b/mail/mailgraph/files/patch-mailgraph.pl
@@ -0,0 +1,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($$) \ No newline at end of file