~ubuntu-branches/ubuntu/precise/spamassassin/precise-updates

« back to all changes in this revision

Viewing changes to pkgrules/25_replace.cf

  • Committer: Bazaar Package Importer
  • Author(s): Noah Meyerhans
  • Date: 2010-01-26 22:53:12 UTC
  • mfrom: (1.1.13 upstream) (5.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100126225312-wkftb10idc1kz2aq
Tags: 3.3.0-1
* New upstream version.
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# SpamAssassin - ReplaceTags configuration
 
2
#
 
3
# Please don't modify this file as your changes will be overwritten with
 
4
# the next update. Use @@LOCAL_RULES_DIR@@/local.cf instead.
 
5
# See 'perldoc Mail::SpamAssassin::Conf' for details.
 
6
#
 
7
# <@LICENSE>
 
8
# Licensed to the Apache Software Foundation (ASF) under one or more
 
9
# contributor license agreements.  See the NOTICE file distributed with
 
10
# this work for additional information regarding copyright ownership.
 
11
# The ASF licenses this file to you under the Apache License, Version 2.0
 
12
# (the "License"); you may not use this file except in compliance with
 
13
# the License.  You may obtain a copy of the License at:
 
14
 
15
#     http://www.apache.org/licenses/LICENSE-2.0
 
16
 
17
# Unless required by applicable law or agreed to in writing, software
 
18
# distributed under the License is distributed on an "AS IS" BASIS,
 
19
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
20
# See the License for the specific language governing permissions and
 
21
# limitations under the License.
 
22
# </@LICENSE>
 
23
#
 
24
###########################################################################
 
25
 
 
26
# Requires the Mail::SpamAssassin::Plugin::ReplaceTags plugin be loaded.
 
27
 
 
28
ifplugin Mail::SpamAssassin::Plugin::ReplaceTags
 
29
 
 
30
replace_tag     A       [gra\@\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xe4\xe3\xe2\xe0\xe1\xe2\xe3\xe4\xe5\xe60o]
 
31
replace_tag     B       [b8]
 
32
replace_tag     C       [ck\xc7\xe7@]
 
33
replace_tag     D       [d\xd0]
 
34
replace_tag     E       [e3\xc8\xc9\xca\xcb\xe8\xe9\xea\xeb\xa4]
 
35
replace_tag     F       f
 
36
replace_tag     G       [gk]
 
37
replace_tag     H       h
 
38
replace_tag     I       [il|!1y?\xcc\xcd\xce\xcf\xec\xed\xee\xef]
 
39
replace_tag     J       j
 
40
replace_tag     K       k
 
41
replace_tag     L       [il|!1\xa3]
 
42
replace_tag     M       (?:m|rn)
 
43
replace_tag     N       [n\xd1\xf1]
 
44
replace_tag     O       [go0\xd2\xd3\xd4\xd5\xd6\xd8\xf0\xf2\xf3\xf4\xf5\xf6\xf8]
 
45
replace_tag     P       [p\xfe]
 
46
replace_tag     Q       q
 
47
replace_tag     R       r
 
48
replace_tag     S       [sz\xa6\xa7]
 
49
replace_tag     T       t
 
50
replace_tag     U       [uv\xb5\xd9\xda\xdb\xdc\xfc\xfb\xfa\xf9\xfd]
 
51
replace_tag     V       (?:[vu]|\\\/)
 
52
replace_tag     W       [wv]
 
53
replace_tag     X       (?:[x\xd7]|><)
 
54
replace_tag     Y       [y\xff\xfd\xa5j]
 
55
replace_tag     Z       [zs]
 
56
replace_tag     IMG     (?:jpe?g|gif|png)
 
57
replace_tag     SP      [\s\d_*\$\%(),.:;?!}{\[\]|\/?^\#~\xa1`'+-]
 
58
replace_tag     CUR     [\$\xa5\xa3\xa4\xa2]
 
59
 
 
60
replace_inter   SP      [\s\d_*\$\%(),.:;?!}{\[\]|\/?^\#~\xa1`'+-]
 
61
replace_inter   W1      \W?
 
62
replace_inter   W2      \W{0,2}
 
63
replace_inter   W3      \W{0,3}
 
64
 
 
65
replace_post    P2      {1,2}
 
66
replace_post    P3      {1,3}
 
67
 
 
68
###########################################################################
 
69
# fuzzy header tests
 
70
 
 
71
header SUBJECT_FUZZY_MEDS       Subject =~ /(?:\b|_)(?!meds)<M><E><D><S>(?:\b|_)/i
 
72
describe SUBJECT_FUZZY_MEDS     Attempt to obfuscate words in Subject:
 
73
replace_rules SUBJECT_FUZZY_MEDS
 
74
 
 
75
header __SUBJECT_FUZZY_VPILL    Subject =~ /<inter W2><post P3>(?!viagra)<V><I><A><G><R><A>/i
 
76
replace_rules __SUBJECT_FUZZY_VPILL
 
77
meta SUBJECT_FUZZY_VPILL        __SUBJECT_FUZZY_VPILL && !FUZZY_VPILL
 
78
describe SUBJECT_FUZZY_VPILL    Attempt to obfuscate words in Subject:
 
79
 
 
80
header SUBJECT_FUZZY_CHEAP      Subject =~ /<inter W2><post P3>\b(?!cheap)<C><H><E><A><P>(?:\b|<E>)/i
 
81
describe SUBJECT_FUZZY_CHEAP    Attempt to obfuscate words in Subject:
 
82
replace_rules SUBJECT_FUZZY_CHEAP
 
83
 
 
84
header SUBJECT_FUZZY_PENIS      Subject =~ /<inter W3><post P3>\b(?!(pen(is|ny)))<P><E><N><I><S>\b/i
 
85
describe SUBJECT_FUZZY_PENIS    Attempt to obfuscate words in Subject:
 
86
replace_rules SUBJECT_FUZZY_PENIS
 
87
 
 
88
header SUBJECT_FUZZY_TION       Subject =~ /<post P3>(?!tion)<T><I><O><N>/i
 
89
describe SUBJECT_FUZZY_TION     Attempt to obfuscate words in Subject:
 
90
replace_rules SUBJECT_FUZZY_TION
 
91
 
 
92
###########################################################################
 
93
# fuzzy body tests
 
94
 
 
95
body FUZZY_AFFORDABLE   /<inter W1><post P2>(?!affordable)<A><F><F><O><R><D><A><B><L><E>/i
 
96
describe FUZZY_AFFORDABLE       Attempt to obfuscate words in spam
 
97
replace_rules FUZZY_AFFORDABLE
 
98
 
 
99
body FUZZY_AMBIEN       /<inter W1><post P2>(?!ambien)<A><M><B><I><E><N>/i
 
100
describe FUZZY_AMBIEN   Attempt to obfuscate words in spam
 
101
replace_rules FUZZY_AMBIEN
 
102
 
 
103
body FUZZY_BILLION      /(?!billion)<B><I><L><L><I><O><N>/i
 
104
describe FUZZY_BILLION  Attempt to obfuscate words in spam
 
105
replace_rules FUZZY_BILLION
 
106
 
 
107
 
 
108
body FUZZY_CPILL        /(?!ciali[sz])<C><I><A><L><I><S>/i
 
109
describe FUZZY_CPILL    Attempt to obfuscate words in spam
 
110
replace_rules FUZZY_CPILL
 
111
 
 
112
body FUZZY_CREDIT       /<inter W1>(?!credit)<C><R><E><D><I><T>/i
 
113
describe FUZZY_CREDIT   Attempt to obfuscate words in spam
 
114
replace_rules FUZZY_CREDIT
 
115
 
 
116
body FUZZY_ERECT        /<inter W2><post P3>(?!erection)<E><R><E><C><T><I><O><N>/i
 
117
describe FUZZY_ERECT    Attempt to obfuscate words in spam
 
118
replace_rules FUZZY_ERECT
 
119
 
 
120
 
 
121
body FUZZY_GUARANTEE    /<inter W1><post P2>(?!guarantee)<G><U><A><R><A><N><T><E><E>/i
 
122
describe FUZZY_GUARANTEE        Attempt to obfuscate words in spam
 
123
replace_rules FUZZY_GUARANTEE
 
124
 
 
125
body FUZZY_MEDICATION   /<inter W1><post P2>(?!medication)<M><E><D><I><C><A><T><I><O><N>/i
 
126
describe FUZZY_MEDICATION       Attempt to obfuscate words in spam
 
127
replace_rules FUZZY_MEDICATION
 
128
 
 
129
 
 
130
body FUZZY_MILLION      /(?!million)<M><I><L><L><I><O><N>/i
 
131
describe FUZZY_MILLION  Attempt to obfuscate words in spam
 
132
replace_rules FUZZY_MILLION
 
133
 
 
134
body FUZZY_MONEY        /(?!money)<M><O><N><E><Y>/i
 
135
describe FUZZY_MONEY    Attempt to obfuscate words in spam
 
136
replace_rules FUZZY_MONEY
 
137
 
 
138
body FUZZY_MORTGAGE     /<inter W1><post P2>(?!mortgage)<M><O><R><T><G><A><G><E>/i
 
139
describe FUZZY_MORTGAGE Attempt to obfuscate words in spam
 
140
replace_rules FUZZY_MORTGAGE
 
141
 
 
142
body FUZZY_OBLIGATION   /<inter W1><post P2>(?!obligation)<O><B><L><I><G><A><T><I><O><N>/i
 
143
describe FUZZY_OBLIGATION       Attempt to obfuscate words in spam
 
144
replace_rules FUZZY_OBLIGATION
 
145
 
 
146
body FUZZY_OFFERS       /(?!offers)<O><F><F><E><R><S>/i
 
147
describe FUZZY_OFFERS   Attempt to obfuscate words in spam
 
148
replace_rules FUZZY_OFFERS
 
149
 
 
150
body FUZZY_PHARMACY     /<inter W2><post P2>(?!pharmacy)<P><H><A><R><M><A><C><Y>/i
 
151
describe FUZZY_PHARMACY Attempt to obfuscate words in spam
 
152
replace_rules FUZZY_PHARMACY
 
153
 
 
154
body FUZZY_PHENT        /<inter W1><post P2>(?!phentermine)<P><H><E><N><T><E><R><M><I><N><E>/i
 
155
describe FUZZY_PHENT    Attempt to obfuscate words in spam
 
156
replace_rules FUZZY_PHENT
 
157
 
 
158
 
 
159
body FUZZY_PRESCRIPT    /<inter W2><post P2>(?!prescription)<P><R><E><S><C><R><I><P><T><I><O><N>/i
 
160
describe FUZZY_PRESCRIPT        Attempt to obfuscate words in spam
 
161
replace_rules FUZZY_PRESCRIPT
 
162
 
 
163
# left S off of negative look-ahead on purpose
 
164
body FUZZY_PRICES       /<inter W2><post P2>(?!price)<P><R><I><C><E><S>/i
 
165
describe FUZZY_PRICES   Attempt to obfuscate words in spam
 
166
replace_rules FUZZY_PRICES
 
167
 
 
168
body FUZZY_REFINANCE    /<inter W2><post P2>(?!refinance)<R><E><F><I><N><A><N><C><E>/i
 
169
describe FUZZY_REFINANCE        Attempt to obfuscate words in spam
 
170
replace_rules FUZZY_REFINANCE
 
171
 
 
172
body FUZZY_REMOVE       /(?!remove)<R><E><M><O><V><E>/i
 
173
describe FUZZY_REMOVE   Attempt to obfuscate words in spam
 
174
replace_rules FUZZY_REMOVE
 
175
 
 
176
body FUZZY_ROLEX        /(?!rolex)<R><O><L><E><X>/i
 
177
describe FUZZY_ROLEX    Attempt to obfuscate words in spam
 
178
replace_rules FUZZY_ROLEX
 
179
 
 
180
body FUZZY_SOFTWARE     /(?!software)<S><O><F><T><W><A><R><E>/i
 
181
describe FUZZY_SOFTWARE Attempt to obfuscate words in spam
 
182
replace_rules FUZZY_SOFTWARE
 
183
 
 
184
body FUZZY_THOUSANDS    /(?!thousands)<T><H><O><U><S><A><N><D><S>/i
 
185
describe FUZZY_THOUSANDS        Attempt to obfuscate words in spam
 
186
replace_rules FUZZY_THOUSANDS
 
187
 
 
188
 
 
189
body FUZZY_VLIUM        /<inter W1><post P2>(?!valium)<V><A><L><I><U><M>/i
 
190
describe FUZZY_VLIUM    Attempt to obfuscate words in spam
 
191
replace_rules FUZZY_VLIUM
 
192
 
 
193
 
 
194
body FUZZY_VIOXX        /<inter W1><post P2>(?!vioxx)<V><I><O><X><X>/i
 
195
describe FUZZY_VIOXX    Attempt to obfuscate words in spam
 
196
replace_rules FUZZY_VIOXX
 
197
 
 
198
body FUZZY_VPILL        /(?!viagra)<V><I><A><G><R><A>/i
 
199
describe FUZZY_VPILL    Attempt to obfuscate words in spam
 
200
replace_rules FUZZY_VPILL
 
201
 
 
202
body FUZZY_XPILL        /<inter W3><post P2>(?!xanax)<X><A><N><A><X>/i
 
203
describe FUZZY_XPILL    Attempt to obfuscate words in spam
 
204
replace_rules FUZZY_XPILL
 
205
 
 
206
endif   # Mail::SpamAssassin::Plugin::ReplaceTags