All,
I'm trying to put together a recipe that will take an
e-mail matching my filter criteria, replace the From:
line with another address, and forward it on to a
different address unchanged.
I put together this recipe:
:0 h c
* ^Subject:.*test
| (formail -k -X Subject:) | $SENDMAIL
-fJoe(_at_)foo(_dot_)bar new(_at_)newplace(_dot_)com
and the formail part seems to work fine from command
line but when invoked within the recipe, I do NOT get
the body of the message, only the header. Any ideas?
For bonus points, I'd like to get the original From:
line (or at least the sender address) prepended to the
body so people can see where the message originally
came from.
Also, I get a warning in the message header when
recieved by another system. Any ideas of this will
cause messages to be dropped?
This isn't for spam purposes- I promise...
Thanks for the help!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David Sun
dsun_mail(_at_)yahoo(_dot_)com
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail