dovecot-2.1: imap: While modseq tracking hasn't been enabled, re...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 23 14:47:25 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/1222b7e38bf3
changeset: 14464:1222b7e38bf3
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 23 14:47:13 2012 +0300
description:
imap: While modseq tracking hasn't been enabled, return mailbox as NOMODSEQ.
It would be possible to avoid this by always keeping track of highestmodseq,
but that requires changing the index format a bit.

diffstat:

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

diffs (14 lines):

diff -r 63af3274fb6f -r 1222b7e38bf3 src/lib-storage/index/index-status.c
--- a/src/lib-storage/index/index-status.c	Mon Apr 23 14:11:37 2012 +0300
+++ b/src/lib-storage/index/index-status.c	Mon Apr 23 14:47:13 2012 +0300
@@ -58,7 +58,9 @@
 	status_r->uidvalidity = hdr->uid_validity;
 	status_r->uidnext = hdr->next_uid;
 	status_r->first_recent_uid = hdr->first_recent_uid;
-	status_r->nonpermanent_modseqs = mail_index_is_in_memory(box->index);
+	status_r->nonpermanent_modseqs =
+		mail_index_is_in_memory(box->index) ||
+		!mail_index_have_modseq_tracking(box->index);
 	if ((items & STATUS_HIGHESTMODSEQ) != 0) {
 		status_r->highest_modseq =
 			mail_index_modseq_get_highest(box->view);


More information about the dovecot-cvs mailing list