From: Timo Sirainen Date: Tue, 4 Jan 2011 10:04:42 +0000 (+0200) Subject: dsync: Saved messages' save-date was set to 1970-01-01. X-Git-Tag: 2.0.9~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a31ee53e11fb7ecbc37b024d0cad6250e3d06fae;p=thirdparty%2Fdovecot%2Fcore.git dsync: Saved messages' save-date was set to 1970-01-01. --- diff --git a/src/dsync/dsync-worker-local.c b/src/dsync/dsync-worker-local.c index 801f0696bc..d2fc36fec1 100644 --- a/src/dsync/dsync-worker-local.c +++ b/src/dsync/dsync-worker-local.c @@ -1000,6 +1000,8 @@ local_worker_msg_iter_next(struct dsync_worker_msg_iter *_iter, msg_r->flags = mail_get_flags(iter->mail); msg_r->keywords = mail_get_keywords(iter->mail); msg_r->modseq = mail_get_modseq(iter->mail); + if (mail_get_save_date(iter->mail, &msg_r->save_date) < 0) + msg_r->save_date = (time_t)-1; return 1; }