Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jul 2006 11:36:24 -0600 (MDT)
From:      Lyndon Nerenberg <lyndon@orthanc.ca>
To:        "David J. Orman" <ormandj@corenode.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Fix dates via IMAP on messages
Message-ID:  <20060718113009.L43660@orthanc.ca>
In-Reply-To: <ca17c8974fc5.44bbb83c@corenode.com>
References:  <ca17c8974fc5.44bbb83c@corenode.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> All of my new mail is fine (I run my mailserver now) but my mail from 
> about 7-10 years ago is all the date of the migration. Is there any 
> program out there that will read the headers of the mail and change the 
> server-date of the files? I've tried imapsync with -syncinternaldate, to 
> see if it read headers, but it doesn't. I just want to be able to run 
> the command on the user/imap server of choice, and have it read all the 
> mail headers, and set the creation dates properly on the mails (all via 
> IMAP).

I'm not aware of a tool that will do this, but writing a program to handle 
this is trivial. All it needs to do is read the message until you find the 
date header, parse the date, then call utimes() to update the file's 
mtime.

If you need an RFC822 date parser, look for the infamous getdate.y.

--lyndon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060718113009.L43660>