Hi Jeff,

>> Yes, but... how do you get a word like 'CensoredByServer' or
>> other nasty word associated with the symbol
>> 'BAD_WORD' in your example?

Here's an example that seems to be working.
in /etc/mail/spamassassin/

myphrases.cf

header SUBJ_VICODIN              Subject =~ /vicodin/i
describe SUBJ_VICODIN            Subject contains "vicodin"

myscores.cf

score VICODIN           4
score SUBJ_VICODIN      5

I keep them in two files so I can easily change scores. The right side of these are Perl regular expressions.

Look at this page (I use SA 2.54)

http://www.spamassassin.org/full/2.5x/dist/doc/Mail_SpamAssassin_Conf.html

You will see there are lines to add to a .cf file that
you would put in the local server config. In fact, if
you look at the SYNOPSIS part near the top of the file,
you'll see these example lines:

header FROM_HAS_MIXED_NUMS    /BADWORDHERE/i
FROM_HAS_MIXED_NUMS           This bad word found in
score A_HREF_TO_REMOVE        2.0

header can be replaced by body etc.

Search for the word SYMBOLIC_TEST on that page
and you will find all the explanations you need. The
tricky part is to use the right Perl regex.

hth



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to