dovecot-2.2: lib-index: Fix for handling view syncing for alread...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 29 17:55:54 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/4308d1794328
changeset: 15298:4308d1794328
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 03 05:41:46 2012 +0300
description:
lib-index: Fix for handling view syncing for already deleted transaction logs.
The sync changes' hidden-flag was set randomly, which could have caused
flag changes to get lost.

diffstat:

 src/lib-index/mail-index-view-sync.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 12606087a774 -r 4308d1794328 src/lib-index/mail-index-view-sync.c
--- a/src/lib-index/mail-index-view-sync.c	Wed Oct 03 05:20:29 2012 +0300
+++ b/src/lib-index/mail-index-view-sync.c	Wed Oct 03 05:41:46 2012 +0300
@@ -767,7 +767,7 @@
 
 			/* skip internal flag changes */
 			if (ctx->data_offset == ctx->hdr->size)
-				return 0;
+				return FALSE;
 
 			update = CONST_PTR_OFFSET(data, ctx->data_offset);
 		}
@@ -835,6 +835,7 @@
 	sync_rec->type = MAIL_INDEX_VIEW_SYNC_TYPE_FLAGS;
 	sync_rec->uid1 = range[ctx->lost_flag_idx].seq1;
 	sync_rec->uid2 = range[ctx->lost_flag_idx].seq2;
+	sync_rec->hidden = FALSE;
 	ctx->lost_flag_idx++;
 	return TRUE;
 }


More information about the dovecot-cvs mailing list