Hey Timo,
On 02.05.2014 12:37, Timo Sirainen wrote:
During a reindex maildir_mail_get_received_date() does an i_stream_stat on the the i_stream_seekable stream created in zlib_mail_cache_open, but this istream does not know about the original maildir message file and always returns the current time for the file's stat times. This is also broken on initial index, but if mail is indexed when it's received (ours isn't) it coincidentally gets the right time.
Thanks, fixed: http://hg.dovecot.org/dovecot-2.2/rev/9f1460682295
It seems this is unfortunately also broken in 2.1.17.
If possible could you also provide a fix for the 2.1.x tree, as we are still happily running your code from that era. Your fix for 2.2 does sadly not apply without modifications and I don't want to destroy things with incompetent attempts to do production grade C coding ;-)
With regards from Cologne,
Christian