File: 101_dspam-virus-notifications.diff

package info (click to toggle)
mailgraph 1.14-20%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 632 kB
  • sloc: perl: 7,677; sh: 134; makefile: 9
file content (17 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Add code to account for infected mail as logged by DSPAM
Author: Julien Valroff <julien@debian.org>
Forwarded: no


--- a/mailgraph.pl
+++ b/mailgraph.pl
@@ -801,6 +801,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/) {