dovecot-2.2: maildir: Mailbox list index refreshing shouldn't ch...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 6 13:33:20 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/6b9699ab7576
changeset: 17438:6b9699ab7576
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 05 13:38:36 2014 +0300
description:
maildir: Mailbox list index refreshing shouldn't check cur/new dirs with maildir_very_dirty_syncs=yes
The recent mailbox_list_index_very_dirty_syncs change broke this. Just
because maildir_very_dirty_syncs=yes, it doesn't mean that
mailbox_list_index_very_dirty_syncs=yes also.

diffstat:

 src/lib-storage/index/maildir/maildir-sync-index.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 09d3c9c6f0ad -r 6b9699ab7576 src/lib-storage/index/maildir/maildir-sync-index.c
--- a/src/lib-storage/index/maildir/maildir-sync-index.c	Thu Jun 05 11:30:19 2014 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c	Thu Jun 05 13:38:36 2014 +0300
@@ -717,6 +717,10 @@
 	ret = index_storage_list_index_has_changed(box, list_view, seq);
 	if (ret != 0 || box->storage->set->mailbox_list_index_very_dirty_syncs)
 		return ret;
+	if (mbox->storage->set->maildir_very_dirty_syncs) {
+		/* we don't track cur/new directories with dirty syncs */
+		return 0;
+	}
 
 	ext_id = maildir_list_get_ext_id(mbox, list_view);
 	mail_index_lookup_ext(list_view, seq, ext_id, &data, &expunged);
@@ -770,8 +774,10 @@
 	bool expunged;
 
 	index_storage_list_index_update_sync(box, trans, seq);
-	if (mbox->storage->set->maildir_very_dirty_syncs)
+	if (mbox->storage->set->maildir_very_dirty_syncs) {
+		/* we don't track cur/new directories with dirty syncs */
 		return;
+	}
 
 	/* get the current record */
 	list_view = mail_index_transaction_get_view(trans);


More information about the dovecot-cvs mailing list