/[pkg-listmaster]/trunk/spamassassin_config/common/bts_specific
ViewVC logotype

Contents of /trunk/spamassassin_config/common/bts_specific

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Sat Sep 8 17:39:45 2007 UTC (5 years, 8 months ago) by don
File size: 3268 byte(s)
add spamassassin configuration
1 # BTS Specific rules
2 # Rules to credit some properties of valid BTS mail
3
4 rawbody HAS_PACKAGE /^Package:/im
5 describe HAS_PACKAGE Has a Package: line, probably a valid report
6 tflags HAS_PACKAGE nice
7 score HAS_PACKAGE -6.0
8
9 header X_DEBBUGS_CC exists:X-Debbugs-Cc
10 describe X_DEBBUGS_CC Has an X-Debbugs-Cc: header
11 tflags X_DEBBUGS_CC nice
12 score X_DEBBUGS_CC -3.0
13
14 header X_DEBBUGS_NO_ACK exists:X-Debbugs-No-Ack
15 describe X_DEBBUGS_NO_ACK Has an X-Debbugs-No-Ack: header
16 tflags X_DEBBUGS_NO_ACK nice
17 score X_DEBBUGS_NO_ACK -3.0
18
19 # SA doesn't like literal # symbols in rules
20 # blarson 2006-10-27 Allow space
21 header HAS_BUG_NUMBER Subject =~ /Bug\s*\x23\d+:/i
22 describe HAS_BUG_NUMBER Has a debbugs-style Bug# in the subject line
23 tflags HAS_BUG_NUMBER nice
24 score HAS_BUG_NUMBER -3.0
25
26 # blarson 2007-07-05
27 rawbody VALID_BTS_CONTROL /^(reassign\s+\d{3,6}\s+[a-z\d-]+\s*|(reopen|submitter|owner)\s+\d{3,6}\s|forward\s+\d{3,6}\s+|(notforwarded|unmerge|noowner)\s+\d{3,6}\s*$|retitle\s+\d{3,6}\s+.{10,80}$|severity\s+\d{3,6}\s+(critical|grave|serious|important|normal|minor|wishlist)|clone\s+\d{3,6}\s+-\d$|merge(\s+\d{3,6}){2,4}\s*$|tags?\s+\d{3,6}\s+([\-\+\=]?\s*[a-z]+\s*)*|(not)?found\s+.+$)/i
28 describe VALID_BTS_CONTROL Seems to be valid BTS control command
29 tflags VALID_BTS_CONTROL nice
30 score VALID_BTS_CONTROL -2
31
32 # blarson 2004-04-10 20050316 add index packages
33 rawbody INDEXMAINT /^index(?:-|\s+)(?:maint\s+\S+\@|packages)/
34 describe INDEXMAINT index-maint command
35 tflags INDEXMAINT nice
36 score INDEXMAINT -5
37
38 # blarson 2006-05-11 2006-09-09 change score
39 header SUBSCRIBEBUG To =~ /\b\d{3,7}\-(?:(?:un)?subscribe|subhelp|ignore|(?:sub(?:yes|approve|reject)|unsubyes|bounce|probe|approve|reject|setlistyes|setlistsilentyes).*)\@bugs\.debian\.org\b/
40 describe SUBSCRIBEBUG subscribing to bug
41 tflags SUBSCRIBEBUG nice
42 score SUBSCRIBEBUG -1
43
44 # blarson 2007-04-26
45 header SUBSCRIBE2 received =~ /\b for \d{3,7}\-(?:(?:un)?subscribe|subhelp|ignore|(?:sub(?:yes|approve|reject)|unsubyes|bounce|probe|approve|reject|setlistyes|setlistsilentyes).*)\@bugs\.debian\.org\b/
46 describe SUBSCRIBE2 subscribing to bug
47 tflags SUBSCRIBE2 nice
48 score SUBSCRIBE2 -6
49
50 header FROMDEVELOPER From =~ /\@debian.org/i
51 describe FROMDEVELOPER Appears to be a message from a developer
52 tflags FROMDEVELOPER nice
53 score FROMDEVELOPER -2
54
55
56 # joy, 2003-07-20, 2003-11-09
57 # this is pretty generic
58 header BUGNUMBERGREETING Subject =~ /^(hi|hey)?\s*\d{4}\d*(-\S+)?(\!|,)/i
59 describe BUGNUMBERGREETING greeting or addressing the bug number
60 score BUGNUMBERGREETING 3
61
62 # joy, 2003-11-09, 2003-12-28
63 # note that Subject: Bug#12345 ... and Subject: Re: Bug#12345 ... won't match
64 header SPAMBUGNUMSUBJ Subject =~ /^\d\d\d\d/i
65 describe SPAMBUGNUMSUBJ greeting or addressing the bug number, simple test
66 score SPAMBUGNUMSUBJ 1
67
68 # joy, 2003-12-29
69 header SPAMBUGADDRSUBJ Subject =~ /^\d{4,}(-[^@]+)?\@bugs/i
70 describe SPAMBUGADDRSUBJ greeting or addressing the bug address
71 score SPAMBUGADDRSUBJ 2.5
72
73 # blarson 2007-07-06
74 header MAJORDOMO subject =~ /\bMajordomo results\: Bug\b/
75 describe MAJORDOMO MAJORDOMO infinite loop
76 score MAJORDOMO 4
77
78 # blarson 2007-07-19
79 header INFOLOOP subject =~ /Re: Bug\#\d+\: Info received \(Bug\#\d+: Info received/
80 describe INFOLOOP Loopy autoresponder
81 score INFOLOOP 7
82

  ViewVC Help
Powered by ViewVC 1.1.5