procmail
[Top] [All Lists]

Re: combining recipes

2003-06-12 02:43:43
On Wed, Jun 11, 2003 at 01:23:13PM -0500, Chuck Campbell wrote:
Is it valid to combine recipes like this?

<snipped for brevity>

becomes two recipes like this?

Close. What you have would require a message to be both to AND from
sunmanagers, and have two subjects (or a subject that matches both). You want
to OR your conditions.

:0:
* (^TOsunmanagers|^From.*sunmanagers)
* ^Subject:.*(summ|faq)
sunmgr

Of course, this will match a message that is From sunmanagers and subject
summ, or To sunmanagers and subject faq as well, but I'm guessing that won't
be an issue. If it is, you'll have to stick with your original separate
recipes.

:0:
* ^TOsunmanagers
* ^From.*sunmanagers
sunmgrall

or is there a way to do it all from one recipe?

No. These two have different criteria and a different delivery. Have to be
separate recipes.

-- 
Andrew Edelstein        -       http://andrew.pure-chaos.com/resume.txt

Please do not reply directly to me, or Cc: me on a reply to a list message.
I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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