procmail
[Top] [All Lists]

Using Formail to remove headers

2005-07-31 04:33:57
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. procmail(_at_)mydomain(_dot_)com, or 
othernewsgroup(_at_)mydomain(_dot_)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:(_dot_)procmail-support(_at_)mydomain\(_dot_)com
    | formail \
        -I Received: \
        -I Reply-To: \
        -I "From: Stephen Allen <procmail(_at_)mydomain(_dot_)com>" \
        -I X-Original-To: \
        -I Delivered-To: \
        -I "To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE" \
    | $SENDMAIL "$SENDMAILFLAGS" \
        procmail(_at_)mydomain(_dot_)com \
        procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)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 :)


____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>