procmail
[Top] [All Lists]

Re: Converting from MH to mbox?

2004-02-09 15:59:09
On  9 Feb, David W. Tamkin wrote:
| Kreemy followed up,
| 
| > Current date and time is not acceptable.  Some of this email goes back
| > 10 years.
| 
| ... and I gather you ened the original delivery timestamp in From_. 
| Maybe you didn't; I couldn't have known either way until you said.
| 
| If you have GNU date or another date(1) that supports the -d switch, 
| perhaps you can extract the timestamp of the original delivery from the 
| topmost Received: header and have GNU date rewrite it in the proper form 
| for a From_ line.

There is a thread from early last year that demonstrated using the MATCH
operator to extract the appropriate values from the topmost Received:
header then uses a sed pipe to rewrite From_.

http://www.xray.mpe.mpg.de/mailing-lists/procmail/2003-02/msg00544.html

Note there is at least one typo in that message (a duplicate :0).

Interestingly, his Kremliness followed up with another implementation,
so maybe he could use his own code.

http://www.xray.mpe.mpg.de/mailing-lists/procmail/2003-03/msg00026.html

I didn't look at the differences.  At the time there was a debate
between using Received: and Date: headers.  I know mine used the topmost
Received: header.  I don't know about LuKreme's. One obvious need is to
change the sed pipe since there is no From_ for sed to edit; but
somewhere in those two messages ought to be the beginning of a solution.


-- 
Email address in From: header is valid  * but only for a couple of days *
This is my reluctant response to spammers' unrelenting address harvesting



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