Re: Restore message date from "Date:" field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@domain -x -f -r -G", but with no avail.

Thanks.


-- 
Nic Bernstein                               nic@xxxxxxxxxxxxxxxx
https://www.nicbernstein.com
https://www.linkedin.com/in/nic-b-26577a178/
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux