[some deleted]
Second, if you wish to match for multiple recipients, place multiple
recipes:
:0c
* ^TOfanchin
! chin(_at_)ruca(_dot_)ua(_dot_)ac(_dot_)be
:0c
* ^TOmwang
! mwang(_at_)wherever
:0c
* ^TOdoh
! doh(_at_)wherever
[some more deleted]
Fourth: why are you forwarding mail which has already been addressed,
and independently distributed to other addresses? If their addresses
are working, they'll receive the original mail at their "stanford.edu"
address, and another at wherever you send it. If these people are
reading their email from another address, then *they* should be
arranging the forwarding, not you. Most people, even friends, do
not appreciate someone doubling the time spent reading mail
messages.
OK, I think I didn't explain the situation clearly enough and it's
possible for people to think what I was trying to achieve is not necessary.
My friends and I were playing with the sendmail's database feature, so
for a while, on one of our machines, all of us were sharing an account
(mine). I.e. messages addressed to anyone of us or all of us on this
machine come to my account on this machine only.
Now, I need to figure out a simple way to
1. if the message is addressed to me, forward it to somewhere I prefer.
2. if the message has cc to anyone else, this person gets
a carbon copy at his (or their respective) real email address
Please note on this machine, these two friends do not have real accounts.
Using the c flag, procmail keeps check the rest of the rc
file. However, what's really needed is to turn off the checking as
soon as say the above three recipes are evaluated. After reading
various procmail man pages, I still can't come up anything simple.
For this reason my first urge was to write a perl script to process
the Cc line and once it's done, so be it. However, I would really
appreciate if someone shows me a way to do this via procmail
constructs alone.
Thanks,
Chin Fang
fangchin(_at_)jessica(_dot_)stanford(_dot_)edu