procmail
[Top] [All Lists]

Re: Two Questions: ORing rules

1998-03-10 07:36:19
1) Is there a flag which causes rulesets to be ORed rather than ANDed?
I'd like to keep my rules cleaner by avoiding |\ continuations.

Not really.  Using (a|b) is the best way.

2) If in such a case or ORed ruleset, how can I grab the particular 
portion of it that matched?  Ie: if I have
:0:
* A|B|C|D|E|F|G
foo

How can I set $MATCH to be one of (A..G)?

   :0
   * \/(a|b|c|d|e|f|g)

If it matters to you that they be distinguished as upper case, use the
'D' flag:

   :0D
   * \/(a|b|c|d|e|f|g)

Chris

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