summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/101_dspam-virus-notifications.diff17
-rw-r--r--debian/patches/series1
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/101_dspam-virus-notifications.diff b/debian/patches/101_dspam-virus-notifications.diff
new file mode 100644
index 0000000..4769e37
--- /dev/null
+++ b/debian/patches/101_dspam-virus-notifications.diff
@@ -0,0 +1,17 @@
+Description: Add code to account for infected mail as logged by DSPAM
+Author: Julien Valroff <julien@kirya.net>
+Forwarded: no
+
+
+--- a/mailgraph.pl
++++ b/mailgraph.pl
+@@ -774,6 +774,9 @@
+ if($text =~ /spam detected from/) {
+ event($time, 'spam');
+ }
++ elsif($text =~ /infected message from/) {
++ event($time, 'virus');
++ }
+ }
+ elsif($prog eq 'spamproxyd' or $prog eq 'spampd') {
+ if($text =~ /^\s*SPAM/ or $text =~ /^identified spam/) {
diff --git a/debian/patches/series b/debian/patches/series
index 24900d0..a25f2e5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
001_path-to-rrd.diff
+101_dspam-virus-notifications.diff