dovecot-1.2: virtual: More syncing fixes.

dovecot at dovecot.org dovecot at dovecot.org
Fri Dec 19 07:49:12 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/563e61fa7726
changeset: 8571:563e61fa7726
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Dec 19 07:49:08 2008 +0200
description:
virtual: More syncing fixes.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/plugins/virtual/virtual-sync.c |    4 +++-

diffs (21 lines):

diff -r 67ef46a47065 -r 563e61fa7726 src/plugins/virtual/virtual-sync.c
--- a/src/plugins/virtual/virtual-sync.c	Fri Dec 19 07:25:20 2008 +0200
+++ b/src/plugins/virtual/virtual-sync.c	Fri Dec 19 07:49:08 2008 +0200
@@ -827,7 +827,7 @@ static void virtual_sync_backend_ext_hea
 	bbox->sync_highest_modseq = status.highest_modseq;
 	bbox->sync_next_uid = status.uidnext;
 
-	if (!ctx->ext_header_rewrite) {
+	if (ctx->ext_header_rewrite) {
 		/* we'll rewrite the entire header later */
 		return;
 	}
@@ -1213,6 +1213,8 @@ static int virtual_sync(struct virtual_m
 	ret = virtual_sync_backend_boxes(ctx);
 	if (ctx->retry && ret == 0) {
 		ctx->retry = FALSE;
+		/* map uids again to update changed message flags */
+		ctx->mbox->uids_mapped = FALSE;
 		ret = virtual_sync_backend_boxes(ctx);
 		i_assert(!ctx->retry);
 	}


More information about the dovecot-cvs mailing list