In message <4856AD23(_dot_)8020903(_at_)stimulacra(_dot_)com>,
TLD Procmail (tld(_dot_)procmail(_at_)stimulacra(_dot_)com) wrote:
Ravi Pina wrote:
http://lipas.uwasa.fi/~ts/info/proctips.html#orrules
Blah. It figures it's something simple. Just a |\ at
the end of the line. Thanks Ravi and Gerald for the
replies!
For the sake of the archive, here is the correction
based on the orrules link:
--------------------
:0:
* H ?? ! ^TO_tld\(_dot_)procmail(_at_)stimulacra\(_dot_)com
* H ?? ! ^From:.*stimulacra\.com
* H ?? ^Subject:.*(phrase1|phrase2|phrase3)|\
* H ?? ^Subject:.*(phrase4|phrase5|phrase6)|\
* H ?? ^Subject:.*(phrase7|phrase8|phrase9)
/mail/has_catch_phrase
--------------------
Which won't work as you intend. I suggest you look at the example again
a little more carefully.
Personally, I would have used one combined regexp or, if your real
application is much longer than you example above, scoring. Another
possibility is calling the external programme grep(1) - see the archives
(within the last 12 months) for examples.
Cheers,
Nick.
PS It is also worth having a look at
http://www.ii.com/internet/robots/procmail/qs/ for a mine of
information about using procmail, if you haven't already done so.
--
____________________________________________________________
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