procmail
[Top] [All Lists]

Re: new user: what am I doing wrong with this recipe?

2002-09-16 00:43:09
in message <005f01c25d2b$090e3c60$0400a8c0(_at_)mail(_dot_)ops(_dot_)net>,
wrote Bill Wilson thusly...

I am trying to send all non-Japanese mail to a spam filtering
program called spamassassin for processing.

this doesn't directly answer your question & is only a suggestion...

i try to filter non-english emails by checking for absence of
english characters in Subject: header[0].  in that case or if 
Subject: contains the encoding[1], messages are stored in separate
folder.

  [0] i know not prefect, but checking body will be too expensive.

  [1] not quite foolproof; it's entirely possible that Subject: would
      be encoded even for an english messages.


below is the recipe...

  #  save subject
  :0
  * ^Subject:[  ]*\/.+
  { subj = "$MATCH" }

  #  check $subj for charatcters which are not ASCII alphabets
  #  or, if $subj is encoded
  :0:
  * 9876543210^0  subj  ??  ^^([^a-z]+)?^^
  * 9876543210^0  subj  ??  ^^[^a-z]*[-_.+:/=?a-z0-9]+[^a-z]*^^
  file


  - parv

-- 

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail