procmail
[Top] [All Lists]

Re: forwarding to MULTIPLE adresses?

1997-11-26 11:18:11
At 11:59 AM 11/26/97 -0500, _Clint_ wrote:
I know this is easy--

It is! :)

How do you forward something to multiple addresses?

(note locking isn't necessary for simple forwards)

:0
* criterion
! address1 address2 address3

Alternately, how do you have multiple criterion??  Like logical and, or,
and not.

AND is just putting it on an additional line:  I'm prone to putting the
most likely one to FAIL on the first line, just from programming
experience, but I don't KNOW that procmail doesn't attempt to resolve them
both (I would expect it doesn't).

:0
* criterion1
* criterion2
! forward

NOT is easy - just preceed your criterion with a bang:

:0
* ! criterion

Unfortunatley, OR is a bit trickier - I've always just duped up the rule
and used the separate conditions (note you should be able to use an
INCLUDERC for the body of the rule).

---
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

 Sean B. Straw / Professional Software Engineering
 Post Box 2395 / San Rafael, CA  94912-2395

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