procmail
[Top] [All Lists]

Re: regarding OR's on multiple lines

2008-06-16 16:56:53
TLD Procmail schreef:

How do I set multiple lines that act
as OR's?

:0:
* H ?? ! ^TO_tld\(_dot_)procmail(_at_)stimulacra\(_dot_)com
* H ?? ! ^From:.*stimulacra\.com
* H ?? ^Subject:.*(phrase1|phrase2|phrase3)    OR
* H ?? ^Subject:.*(phrase4|phrase5|phrase6)    OR
* H ?? ^Subject:.*(phrase7|phrase8|phrase9)
/mail/has_catch_phrase


Alternative-1:

  OR  = "9876543210^0"
  AND = ""

  :0
  * ^Subject:\/.*
  { SUBJ = $MATCH }

  :0:
  *       SUBJ ?? .
  *$ $AND ! ^TO_tld\(_dot_)procmail(_at_)stimulacra\(_dot_)com
  *$ $AND ! ^From:.*stimulacra\.com
  *$ $OR  SUBJ ?? phrase1
  *$ $OR  SUBJ ?? phrase2
  *$ $OR  SUBJ ?? phrase3
  *$ $OR  SUBJ ?? phrase4
  *$ $OR  SUBJ ?? phrase5
  *$ $OR  SUBJ ?? phrase6
  *$ $OR  SUBJ ?? phrase7
  *$ $OR  SUBJ ?? phrase8
  *$ $OR  SUBJ ?? phrase9
  /mail/has_catch_phrase



Alternative-2:

  re_CATCH=\
(phrase1\
|phrase2\
|phrase3\
|phrase4\
|phrase5\
|phrase6\
|phrase7\
|phrase8\
|phrase9\
)

  :0:
  * ! ^TO_tld\(_dot_)procmail(_at_)stimulacra\(_dot_)com
  * ! ^From:.*stimulacra\.com
  *$ ^Subject:.*${re_CATCH}
  /mail/has_catch_phrase

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