dovecot-2.2: maildir: If INDEXPVT is set, assume private \Seen f...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 12 07:58:29 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/16a626119f7b
changeset: 15211:16a626119f7b
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 12 07:58:17 2012 +0300
description:
maildir: If INDEXPVT is set, assume private \Seen flags even if dovecot-shared doesn't exist.

diffstat:

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

diffs (21 lines):

diff -r 22e7322e8601 -r 16a626119f7b src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c	Fri Oct 12 05:45:42 2012 +0300
+++ b/src/lib-storage/index/maildir/maildir-storage.c	Fri Oct 12 07:58:17 2012 +0300
@@ -614,9 +614,14 @@
 	mbox->private_flags_mask_set = TRUE;
 
 	path = mailbox_list_get_root_forced(box->list, MAILBOX_LIST_PATH_TYPE_MAILBOX);
-	if (!mailbox_list_get_root_path(box->list, MAILBOX_LIST_PATH_TYPE_INDEX,
-					&path2) ||
-	    strcmp(path, path2) == 0) {
+	if (box->list->set.index_pvt_dir != NULL) {
+		/* private index directory is set. we'll definitely have
+		   private flags. */
+		mbox->_private_flags_mask = MAIL_SEEN;
+	} else if (!mailbox_list_get_root_path(box->list,
+					       MAILBOX_LIST_PATH_TYPE_INDEX,
+					       &path2) ||
+		   strcmp(path, path2) == 0) {
 		/* no separate index directory. we can't have private flags,
 		   so don't even bother checking if dovecot-shared exists */
 	} else {


More information about the dovecot-cvs mailing list