procmail
[Top] [All Lists]

Re: How can I ...

1999-05-13 12:30:53
At 10:51 1999-05-13 -0700, Ron 'The InSaNe One' Rosson wrote:

:0c
* ^From (_dot_)*some(_dot_)email(_at_)address(_dot_)org
! me(_at_)my(_dot_)workstation(_dot_)com

With the rule above how can I modify it so it doesn't leave the redirected
mail on the machine that is hosting this procmail recipe, but leave the
mail that does not get redirected there?

The second half of your question is obscured by your wording - I'm assuming
you mean, "don't keep messages which _are_ forwarded by this recipe, but DO
keep messages which _are not_ forwarded by it."


If this is what you're looking for, it is rather easy: lose the 'c' flag.
It creates a COPY of the message.

Any message not 'delivered' (forwarded, stored, etc) by a recipe is
automatically destined to the default mail file, and any message which is
delivered doesn't get to that stage.  The 'c' flag generates a copy to be
handled here, and so the original message continues to be parsed by the
rest of your recipes, and ends up in your default mail file.

---
 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>