I have a user with a lot of email (A LOT of email, probably over 500,000 emails). Recently, several thousand messages of his were lost, and I pulled them out of the backup archives (zip files containing each days emails in an mbox) that are created on his account and fed them into his procmail scripts and they were all processed just fine and ended up in the right directories. 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? -- I AM NOT A LICENSED HAIRSTYLIST Bart chalkboard Ep. AABF04
-----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-----
W dniu 02.10.2013 01:42, LuKreme pisze:> I have a user with a lot of email (A LOT of email, probably over 500,000 emails). Recently, several thousand messages of his were lost, and I pulled them out of the backup archives (zip files containing each days emails in an mbox) that are created on his account and fed them into his procmail scripts and they were all processed just fine and ended up in the right directories. > > 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?Hi! Does procmail add header Delivery-date: ? Can you compare headers of email before and after procmail delivered it? Marcin
On 2013-10-01 7:42 PM, LuKreme <kremels at kreme.com> wrote:> I have a user with a lot of email (A LOT of email, probably over 500,000 emails). Recently, several thousand messages of his were lost, and I pulled them out of the backup archives (zip files containing each days emails in an mbox) that are created on his account and fed them into his procmail scripts and they were all processed just fine and ended up in the right directories. > > 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?Fix your restore script/methodology, then restore them again... -- Best regards, */Charles/*