On Sun, 9 Nov 1997, Kari T Kesseli wrote:
I would like to copy my incoming mail also to address user(_at_)doma(_dot_)in
but messages coming from address friend(_at_)somewhe(_dot_)re and all messages
with a word "personal" in subject-field should not be forwarded. How
do I make that? I guess it must be a simple solution but I don't
know who to ask.
Kari,
This recipe should do what you ask. This recipe presumes that the
address you are forwarding from is
kkesseli(_at_)cc(_dot_)helsinki(_dot_)fi(_dot_)
Before trying this recipe, make sure your PATH includes a path to
formail, usually /usr/local/bin.
David Hunt
# Forward a copy of all mail, except mail with the word "personal" in
# the subject, to "user(_at_)doma(_dot_)in":
:0 c
* ! ^Subject:.*\<personal\>
* ! ^X-Loop:.*\<kkesseli(_at_)cc(_dot_)helsinki(_dot_)fi\>
{
:0 f
| formail -A"X-Loop: kkesseli(_at_)cc(_dot_)helsinki(_dot_)fi"
:0
! user(_at_)doma(_dot_)in
}