Stephen Allen
2005-07-31 11:20:39 UTC
I'm a newbie to pocmail/formail so please forgive anything that seems
overwhelmingly obvious!
I write to several mailing lists, each of which needs a different return
address (eg. ***@mydomain.com, or ***@mydomain.com).
Because I need to be able to post messages from different places, I have to
send the messages to myself and let Procmail/Formail re-send it to the right
place. To keep things tidy I also remove a few non-essential headers. This
is an example:
:0
* ^X-Original-To:.procmail-***@mydomain\.com
| formail \
-I Received: \
-I Reply-To: \
-I "From: Stephen Allen <***@mydomain.com>" \
-I X-Original-To: \
-I Delivered-To: \
-I "To: ***@lists.RWTH-Aachen.DE" \
| $SENDMAIL "$SENDMAILFLAGS" \
***@mydomain.com \
***@lists.RWTH-Aachen.DE
I would like to remove all headers except Subject: and the MIME-related
ones, then set the To: and From: as above. So, I'm stuck! Would anyone be
able to help me find a solution please?
Many thanks,
Steve :)
overwhelmingly obvious!
I write to several mailing lists, each of which needs a different return
address (eg. ***@mydomain.com, or ***@mydomain.com).
Because I need to be able to post messages from different places, I have to
send the messages to myself and let Procmail/Formail re-send it to the right
place. To keep things tidy I also remove a few non-essential headers. This
is an example:
:0
* ^X-Original-To:.procmail-***@mydomain\.com
| formail \
-I Received: \
-I Reply-To: \
-I "From: Stephen Allen <***@mydomain.com>" \
-I X-Original-To: \
-I Delivered-To: \
-I "To: ***@lists.RWTH-Aachen.DE" \
| $SENDMAIL "$SENDMAILFLAGS" \
***@mydomain.com \
***@lists.RWTH-Aachen.DE
I would like to remove all headers except Subject: and the MIME-related
ones, then set the To: and From: as above. So, I'm stuck! Would anyone be
able to help me find a solution please?
Many thanks,
Steve :)