1 |
On 01/26/2011 01:25 PM, meino.cramer@×××.de wrote: |
2 |
> |
3 |
> Hi, |
4 |
> |
5 |
> is it possible to configure Spamassassin to filter out spam-mail, |
6 |
> if the mail contains certain keywords and/or the subject line match |
7 |
> a certain pattern without diving too deep into the source and the |
8 |
> ruleset of spamassassin? |
9 |
|
10 |
The rules are generally just regular expressions. From 20_phrases.cf: |
11 |
|
12 |
body GUARANTEED_100_PERCENT /100% GUARANTEED/i |
13 |
|
14 |
and from 72_active.cf: |
15 |
|
16 |
header DRUGS_HDIA Subject =~ /\bhoodia\b/i |
17 |
|
18 |
Once you have rules defined, you give them a score. From 50_scores.cf: |
19 |
|
20 |
score DRUGS_HDIA 0 |
21 |
|
22 |
You can add descriptions too if you want, just copy whatever the S.A. |
23 |
signatures do. You can stick them in any (loaded) cf file. |