dovecot-2.2: lib-storage: Fixed searching message flags on mailb...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 5 16:08:16 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/e9e1b97c78c7
changeset: 14709:e9e1b97c78c7
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 05 16:08:07 2012 +0300
description:
lib-storage: Fixed searching message flags on mailboxes without private index.

diffstat:

 src/lib-storage/index/index-search.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 2ab4aa784474 -r e9e1b97c78c7 src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c	Thu Jul 05 10:51:42 2012 +0300
+++ b/src/lib-storage/index/index-search.c	Thu Jul 05 16:08:07 2012 +0300
@@ -153,14 +153,14 @@
 {
 	if (ctx->pvt_uid == uid)
 		return ctx->pvt_seq != 0;
-	ctx->pvt_uid = uid;
-	ctx->pvt_seq = uid;
 
 	if (ctx->box->view_pvt == NULL) {
 		/* no private view (set by view syncing) -> no private flags */
 		return FALSE;
 	}
 
+	ctx->pvt_uid = uid;
+	ctx->pvt_seq = uid;
 	return mail_index_lookup_seq(ctx->mail_ctx.transaction->view_pvt,
 				     uid, &ctx->pvt_seq);
 }


More information about the dovecot-cvs mailing list