procmail
[Top] [All Lists]

Re: Question about how to handle odd character stuff

2005-03-30 08:05:08
Steve Lake schreef:
         I call it odd character stuff because that's about the only
real name I can think of for it.  I've gotten a lot of emails lately
(even before I upgraded) with subject lines like this:

         ðÏÌuÇÒÁÆuÑ Ë ÐpÁÚÄÎÉËÁÍ u Äp. ÓoÂÙÔÉÑÍ ÏÅÇ

         In other words it's garbled text that I'm guessing is
supposed to be from another language.  How would I catch this and
stop it from coming in?  Is there a rule that might take care of
this?  Or would this be something I'd have to bounce off the spam
assassin guys?  Any pointers are welcome.

Normally, SpamAssassin tags those messages. Because of the charset
mentioned inside some Content-header.

With procmail, you could check the fraction of 8bit characters:

  TAB = '    '  # one character: a literal tab

  :0D
  * ^Subject:\/.+
  *$ 2^1 MATCH ?? [^${TAB}-~]
  * -1^1 MATCH ?? .
  -IN.suspect

(untested)

-- 
Grtz, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail