[Dovecot] Fixing Timestamps

Steffen Kaiser
2013-10-02T07:28:40Z

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 1 Oct 2013, LuKreme wrote:

> Except.
>
> The messages were from 6 months back, and the messages now show up in
> his mail client with the time stamp of the date they were restored, and
> not the date that shows up in the headers of the message.
>
> Anything I can do?

You have to change the internal date. What storage do you use?

With maildir: change the mtime of the message file to the desired date.
remove dovecot-uidlist and dovecot.index.cache to force a fill resync.

If your message file looks like:
1377237376.M533007P21292.<host>,S=884,W=905:...
change the first number to the seconds since epoch, maybe these numbers
have some internal meaning as well for internal date.

- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUkvLKF3r2wJMiz2NAQLoDgf/Xq4LhpDHxmEa7ORV+hungTeu5nWHbGwf
Ih5v3HDQ3R6yL0yEq04Vf8J8spqg1Pt8rHnUQd3fC/xLHbRBV8+n2XJdD5yH99fD
j265mJPo8GO8sN40Z3ABlJdZa1YFlQZDa/zKclwEGotH3OxnXHE2LiqcuNjq6lt7
xODimr3M5fuVnYDwnH6XL4LxZXjYEHZ3zR1g7aIBsiQEvAgUBsocdjks7FcqFyzR
Turd+sw65G3Qq5u81CmFNY0gbxETCvR2M/xsH6/imk3LGkD8kKTb8ohA+dvUpd/3
DGsFYLdR6GW8Y1LAtzaia4YnnbJ+RM1PsRpssuOzQ/vwlShDujYH1g==tgbO
-----END PGP SIGNATURE-----