procmail
[Top] [All Lists]

RE: putting header fields into a set order (was a few other things)

2001-08-10 07:19:12

(I haven't seen the original post, just David's followup)

I put headers in the order I wanted them awhile back when I wanted them in
this order:

To
From
Date
Subject

I just used $MATCH and formail to re-order them, something like this (from
memory, not error checked)

:0
* ^From:.*\/
{ FROM=$MATCH }

:0
* ^Subject:.*\/
{ SUBJECT=$MATCH }

:0
* ^Date:.*\/
{ DATE=$MATCH }

:0
* ^To:.*\/
{ TO=$MATCH }


:0 fh w
| formail -I "To: $TO" -I"From: $FROM" -I"Date: $DATE" -I"Subject: $SUBJECT"

HTH


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail