From 317403eb4faad8467fe49b56f53e300dc5e14f2f Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Mon, 4 Jan 2010 20:51:05 +0100 Subject: Add patch to account for infected mail as logged by DSPAM (Closes: #370091) --- debian/patches/101_dspam-virus-notifications.diff | 17 +++++++++++++++++ debian/patches/series | 1 + 2 files changed, 18 insertions(+) create mode 100644 debian/patches/101_dspam-virus-notifications.diff 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 +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 -- cgit v1.2.3