]> git.donarmstrong.com Git - spamassassin_config.git/blob - common/bts_specific
add changes from blarson
[spamassassin_config.git] / common / bts_specific
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+\d+\s+\S+\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      -0.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
83 # blarson 2007-11-17
84 header KOI8R            Content-Type =~ /koi8-r/i
85 describe KOI8R          russian content
86 score KOI8R             4
87
88 # blarson 2007-09-07
89 header SUBKOI8R         subject =~ /koi8-r/i
90 describe SUBKOI8R       russian subject
91 score SUBKOI8R          4
92
93 # blarson 2007-12-10
94 score ONEWORD           3
95
96 # blarson 2008-04-03
97 header CLOSE            subject =~ /^\s*(?:closed?|done|Closing)\s*$/i
98 describe CLOSE          closing bug
99 tflags  CLOSE           nice
100 score CLOSE             -2
101
102 # blarson 2008-06-97
103 body VERSION            /^version\:\s+\S+\s*$/i
104 describe VERSION        version number specified in body
105 tflags VERSION          nice
106 score VERSION           -1
107
108 # blarson 2008-09-04   new spamassasin html rules broken
109 header HTMLCONT         content-type =~ /text\/html/i
110 describe HTMLCONT       html only
111 score HTMLCONT          3
112
113 # blarson 2008-09-04
114 header MULTALT          content-type =~ /multipart\/alternative/i
115 describe MULTALT        multipart-alternative
116 score MULTALT           1
117
118 # blarson 2008-10-29
119 header CREATETICK       subject =~ /Unable to create Ticket/
120 describe CREATETICK     Unable to create Ticket
121 score CREATETICK        4
122
123 # blarson 2008-11-28
124 body ONPHPDEV           /onphp-dev-ru.lists.shadanakar.org/
125 describe ONPHPDEV       keeps spamming owner, spamassassin autolearns as ham?
126 score ONPHPDEV          3
127
128 # blarson 2009-07-03
129 header FELIX            X-BeenThere =~ /felix-impl\@lists\.sourceforge\.net/
130 describe FELIX          felix list bounces
131 score FELIX             4