I have a mbox where the From_ field is incorrect but the other
fields are correct. I would like to regenerate the From_ field,
using the timestamp in the Date: field. Apparently formail can
do this, but under BUGS it says that I may not get what I want.
BUGS
When formail has to generate a leading `From ' line it
normally will contain the current date. If formail is
given the option `-a Date:', it will use the date from the
`Date:' field in the header (if present). However, since
formail copies it verbatim, the format will differ from
that expected by most mail readers.
If formail is instructed to delete or rename the leading
`From ' line, it will not automatically regenerate it as
usual. To force formail to regenerate it in this case,
include -a 'From '.
I would like to ask formail to delete the current From_ field
and regenerate it using the date in the Date: field, but using
the format of the From_ field, which differs from Date: field.
Example:
From shuntsbe(_at_)mail-pop Tue Feb 18 18:16:28 2003 -0800 [WRONG]
Date: Fri, 7 Feb 2003 16:45:00 -0800 [RIGHT]
...
Does anyone know how to do this?
Thanks,
Steve Huntsberry
Adobe Systems Inc.
shuntsbe(_at_)adobe(_dot_)com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail