Hello -
I would like to change the "From" header of one special incoming mail.
I came up with this recipe, and I'd like the experts to have a look at it
and correct me, please.
:0:
* ^From: (_dot_)*sender(_at_)theirdomain\(_dot_)com
* !^FROM_DAEMON
* !^X-Loop: myaddress(_at_)domain(_dot_)com
| (formail -rI "To: myaddress(_at_)domain(_dot_)com" \
-A "X-Loop: myaddress(_at_)domain(_dot_)com" \
-i "From: Senders Name <sender(_at_)domain(_dot_)com>) \
| $SENDMAIL -oi -t
Basically, it works, but I noticed that formail -i does create a new
"From" but does *not* create an "Old-From" header.
The reason for this recipe is that a friend of mine has a special
character in his name (i.e., Senders ^BName) which Pine 4.44 doesn't like.
Therefore, I cannot use the "Reply" option. For reasons beyond my
intervention, he refuses to change this, which would obviously be the
easiest part, but he is afraid he will loose his e-mail.
--
CU, Niki
*Draft beer, not people*
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail