procmail
[Top] [All Lists]

Matching a word on Subject or Body

2009-05-11 08:49:22
Hello all,

I've been trying to accept only messages that have a certain word
either on the subject line or on the first line of the body. I could
not figure out the right filters to do that. I currently have the
header filter set up:

:0
* ! ^Subject:.*word1*
 ! ^Subject:.*word2*
/dev/null
}

However I still wanted to check the first line of the body for either
word 1 or 2.
Does anyone have any idea about how to do that?

Regards,
Diego Lima

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