dovecot-2.2: dsync: Fixed mailbox tree sync with some backends (...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 10 23:12:04 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/28db20f9c0cf
changeset: 15742:28db20f9c0cf
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 10 23:05:46 2013 +0200
description:
dsync: Fixed mailbox tree sync with some backends (imapc)

diffstat:

 src/doveadm/dsync/dsync-mailbox-tree-fill.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 03a0af22100d -r 28db20f9c0cf src/doveadm/dsync/dsync-mailbox-tree-fill.c
--- a/src/doveadm/dsync/dsync-mailbox-tree-fill.c	Tue Feb 05 03:53:40 2013 +0200
+++ b/src/doveadm/dsync/dsync-mailbox-tree-fill.c	Sun Feb 10 23:05:46 2013 +0200
@@ -38,7 +38,7 @@
 	/* try the fast path */
 	if (mailbox_get_metadata(box, MAILBOX_METADATA_GUID, metadata_r) < 0)
 		return -1;
-	if (mailbox_get_status(box, STATUS_UIDVALIDITY, status_r) < 0)
+	if (mailbox_get_status(box, STATUS_UIDVALIDITY | STATUS_UIDNEXT, status_r) < 0)
 		return -1;
 
 	i_assert(!guid_128_is_empty(metadata_r->guid));
@@ -48,7 +48,7 @@
 	/* no UIDVALIDITY assigned yet. syncing a mailbox should add it. */
 	if (mailbox_sync(box, 0) < 0)
 		return -1;
-	if (mailbox_get_status(box, STATUS_UIDVALIDITY, status_r) < 0)
+	if (mailbox_get_status(box, STATUS_UIDVALIDITY | STATUS_UIDNEXT, status_r) < 0)
 		return -1;
 	i_assert(status_r->uidvalidity != 0);
 	return 0;


More information about the dovecot-cvs mailing list