David Coppit wrote:

>Hi folks,
>
>I'd like to add a couple rules to SpamAssassin:
>
>- Detect if the email is in some funky character set
>- Detect if the email is not in english
>- Detect if the subject ends in six or more digits
>
>How do I go about doing this? I hope I can just dump a couple files in
>.spamassassin/rules or something. :)
>
There is already a "funky character set" test; see CHARSET_FARAWAY_BODY. 
It doesn't work because it doesn't parse MIME correctly. This is an 
ongoing issue with SpamAssassin that seems to be headed for resolution 
because of a consensus that it's more important to add a dependency with 
a package that can do this correctly than it is to preserve package 
independence and possibly performance.

As to detecting messages not in English, I would say that's probably a 
function of CHARSET_FARAWAY_BODY.

There's already a test for the subject ending in a unique identifier; 
it's SUBJ_HAS_UNIQ_ID.

-- 
    http://www.pricegrabber.com
          "We are smarter individually." -- Larry Niven

                                   




_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to