procmail
[Top] [All Lists]

Re: Simple question: How does one set up an 'or' recipe?

1996-11-01 21:11:37
Responding To:  "Matthew N. Reichman" <reichman(_at_)usc(_dot_)edu>
Original Date:  Fri,  1 Nov 96 16:28:40 -0800
Message-ID:     <199611020028(_dot_)QAA03938(_at_)usc(_dot_)edu>

Example:

Right now I have these two recipes to handle certain ways the list
comes to me: ==================
0 w
* ^To:(_dot_)*djb-qmail(_at_)koobera(_dot_)math(_dot_)uic(_dot_)edu*
|appnmail /Users/reichman/Mailboxes/CompTech/QMail

0 w
* ^Cc:(_dot_)*djb-qmail(_at_)koobera(_dot_)math(_dot_)uic(_dot_)edu*
|appnmail /Users/reichman/Mailboxes/CompTech/QMail
===================

Can I consolidate these two somehow and would it make for a
'faster' working recipe?


assuming you have $MAILDIR set to $HOME/Mailboxes

:0w
* ^TOdjb-qmail(_at_)koobera(_dot_)math(_dot_)uic(_dot_)edu
|appnmail CompTech/QMail

        or if it looks more reasonable like this:

:0w
* ^TO()djb-qmail(_at_)koobera(_dot_)math(_dot_)uic(_dot_)edu
|appnmail CompTech/QMail


Trailing "*" are a waste.

The ^TO will match either To or Cc

TjL

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