procmail
[Top] [All Lists]

Re: Multiple recipients from a single account

1997-07-15 08:16:00

On Tue, 15 Jul 1997, Reuven M. Lerner wrote:

The problem is this: In order to ensure delivery to multiple
recipients at our site (i.e., a message address to both x(_at_)foo(_dot_)com 
and
y(_at_)foo(_dot_)com), I used the "c" option in each user-matching recipe.  
That
is, for each user on our system, we have the following recipes:

    :0 c:
    * ^(To|cc): *(_dot_)*reuven(_at_)foo(_dot_)com
    ! reuven

    :0 c:
    * ^(To|cc): *(_dot_)*stephen(_at_)foo(_dot_)com
    ! stephen

But because I use the "c" option, our secretary (whose address is set
as $DEFAULT) receives copies of *all* e-mail.  What I would like to do
is send mail to $DEFAULT only if none of the previous recipes matched.
But if more than one non-default recipe matches, then the mail should
be sent to each of those individuals.

You may try:

  :0 c:
  * ^(To|cc): *(_dot_)*reuven(_at_)foo(_dot_)com
  ! reuven
 
  :0 c:
  * ^(To|cc): *(_dot_)*stephen(_at_)foo(_dot_)com
  ! stephen

  :0 c
  * !^(To|Cc) +(.*stephen|reuven)
  $DEFAULT

  :0 A:
  COLLECT_CAN

You may find any unattanded mails in "COLLECT_CAN" and improve your
recipe ...

Zhiliang

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