Michelle Konzack wrote:
But Formail wiil remove the "Message-ID:" Header and write a new one.
Only if you use
formail -a Message-Id:
I want to keep the "Message-ID" and add only the "< >" to it.
So, formail can be told to do that and only that.
:0hwf
* ^Message-Id: *\/[^ ]+
* ! MATCH ?? ^<.*>$
| formail -i "Message-Id: <$MATCH>"
Now, what exactly to do if there are two or more Message-Id: headers
depends on how you want to handle the situation, particularly if one of
them already has angle brackets and one doesn't.
____________________________________________________________
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