dovecot-2.2: lib-storage: mailbox_get_*status(STATUS_HIGHESTMODS...

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 8 10:48:05 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/48506e8e1c7a
changeset: 17685:48506e8e1c7a
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 08 13:46:05 2014 +0300
description:
lib-storage: mailbox_get_*status(STATUS_HIGHESTMODSEQ) now enables CONDSTORE feature.
This makes sure that the highestmodseq is added to the mailbox list index if
not already there.

diffstat:

 src/lib-storage/mail-storage.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r d733aecb00d5 -r 48506e8e1c7a src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Fri Aug 08 13:32:08 2014 +0300
+++ b/src/lib-storage/mail-storage.c	Fri Aug 08 13:46:05 2014 +0300
@@ -1523,6 +1523,9 @@
 	mailbox_get_status_set_defaults(box, status_r);
 	if (mailbox_verify_existing_name(box) < 0)
 		return -1;
+
+	if ((items & STATUS_HIGHESTMODSEQ) != 0)
+		mailbox_enable(box, MAILBOX_FEATURE_CONDSTORE);
 	if (box->v.get_status(box, items, status_r) < 0)
 		return -1;
 	i_assert(status_r->have_guids || !status_r->have_save_guids);
@@ -1537,6 +1540,8 @@
 	i_assert((items & MAILBOX_STATUS_FAILING_ITEMS) == 0);
 
 	mailbox_get_status_set_defaults(box, status_r);
+	if ((items & STATUS_HIGHESTMODSEQ) != 0)
+		mailbox_enable(box, MAILBOX_FEATURE_CONDSTORE);
 	if (box->v.get_status(box, items, status_r) < 0)
 		i_unreached();
 }


More information about the dovecot-cvs mailing list