On Fri, 10 May 2002, Jean-Rene Cormier wrote:
I want to forward a copy of the email I receive from a certain address
to another email and change the To: field to that new address.
Here's what I have right now.
:0 c
* ^From(_dot_)*someemail(_at_)someplace(_dot_)com
! otheremail(_at_)someotherplace(_dot_)com
but when I receive the email the To: field is set to my current email
and I want change it to otheremail(_at_)someotherplace(_dot_)com
pipe it through 'formail' with the '-I' option, which will replace the
header as appropriate.
should be something like [UNTESTED!!!] :
:0 c
* ^From(_dot_)*someemail(_at_)someplace(_dot_)com
| formail -I "To: otheremail(_at_)someotherplace(_dot_)com" | /usr/lib/sendmail
-i otheremail(_at_)someotherplace(_dot_)com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail