Restore message date from "Date:" field
Nic Bernstein
nic at nicbernstein.com
Fri Jul 31 07:58:36 EDT 2020
Gionatan,
I believe the tool you're looking for is 'mbtool' From the man page:
DESCRIPTION
mbtool is a tool for performing various actions on the indexes of a
list of mailboxes. The only actions currently supported are -t, which
will normalize the internaldate time stamp of each record in the index
to GMT, and -r which will create a new unique ID for each mailbox.
...
-t Normalize internaldate on all index records of all listed mail‐
boxes to match the Date: header if theyâre off by more than a
day, which can be used to fix up a mailbox which has been re‐
stored from backup and lost its internaldate information.
...
EXAMPLES*mbtool -t* user.jsmith
Normalize |internaldate| on all index records in /user.jsmith/.
Working on user.jsmith...
00000001: Tue, 08 Jul 2014 16:45:18 -0500 => Mon, 07 Jul 2014 20:44:18 +0000
00000002: Tue Jul 08 16:45:13 CDT 2013 => Fri, 30 Aug 2013 19:46:03 +0000
<...>
http://www.cyrusimap.org/imap/reference/manpages/systemcommands/mbtool.html?highlight=mbtool
Cheers,
-nic
On 7/31/20 6:39 AM, Gionatan Danti wrote:
> Hi all,
> I just noticed the dates of some old emails are wrongly displayed on
> roundcube webmail.
>
> In short, the list view shows the filesystem date of the affected
> messages (ie: mtime of u.1 file), rather than what is found in the
> "Date:" header field
>
> These were emails migrated from an old system, but I vaguely remember
> I had some issue at the time which I solved with some combination of
> rsync+imapsync.
>
> Can "reconstruct" be used to repopulate the index file with the
> correct date from "Date:" field? If not, what I can do to solve the
> issue? I already tried "reconstruct -u user at domain -x -f -r -G", but
> with no avail.
>
> Thanks.
>
--
Nic Bernstein nic at nicbernstein.com
https://www.nicbernstein.com
https://www.linkedin.com/in/nic-b-26577a178/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20200731/2e1b0b64/attachment.html>
More information about the Info-cyrus
mailing list