procmail
[Top] [All Lists]

Re: filter based on body keywords?

2005-04-29 06:00:38
Ernest Byaruhanga schreef:

My filter should see if the content of all email to 
john(_at_)example(_dot_)com
contains:
WORD1 or WORD2 or WORD3 or KEYWORD5 or BOB, and then deliver the
good mail to john(_at_)example(_dot_)com(_dot_) Otherwise, the email missing 
any of
the above keywords should go to the "spam" mailbox.

    :0
    * ^TO_\/john(_at_)example\(_dot_)com
    {
      :0
      * B ?? ()\<(WORD[1-3]|KEYWORD5|BOB)\>
      !$MATCH
      :0E:
      spam
    }

That won't allways work as wished for.

After Dallman: procmailers do it without words-blacklists.

-- 
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

<Prev in Thread] Current Thread [Next in Thread>