dovecot-2.2: imapc: If reconnect fails during syncing, don't tre...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 13 18:04:17 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/6efdf22c96f1
changeset: 18349:6efdf22c96f1
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 13 20:03:27 2015 +0200
description:
imapc: If reconnect fails during syncing, don't treat all mails as expunged in error handling code.

diffstat:

 src/lib-storage/index/imapc/imapc-mail.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r cf60180695ac -r 6efdf22c96f1 src/lib-storage/index/imapc/imapc-mail.c
--- a/src/lib-storage/index/imapc/imapc-mail.c	Fri Mar 13 16:28:31 2015 +0200
+++ b/src/lib-storage/index/imapc/imapc-mail.c	Fri Mar 13 20:03:27 2015 +0200
@@ -36,6 +36,11 @@
 	struct imapc_msgmap *msgmap;
 	uint32_t lseq, rseq;
 
+	if (!mbox->initial_sync_done) {
+		/* unknown at this point */
+		return FALSE;
+	}
+
 	if (mbox->sync_view != NULL) {
 		/* check if another session has already expunged it */
 		if (!mail_index_lookup_seq(mbox->sync_view, _mail->uid, &lseq))


More information about the dovecot-cvs mailing list