dovecot-2.0: dbox, cydir: Ignore MAILBOX_OPEN_NO_INDEX_FILES fla...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 4 20:08:28 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/3396bab1feb6
changeset: 9445:3396bab1feb6
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 04 13:08:19 2009 -0400
description:
dbox, cydir: Ignore MAILBOX_OPEN_NO_INDEX_FILES flag when opening mailbox.

diffstat:

2 files changed, 6 insertions(+)
src/lib-storage/index/cydir/cydir-storage.c |    3 +++
src/lib-storage/index/dbox/dbox-storage.c   |    3 +++

diffs (26 lines):

diff -r 99a97c5c9912 -r 3396bab1feb6 src/lib-storage/index/cydir/cydir-storage.c
--- a/src/lib-storage/index/cydir/cydir-storage.c	Thu Jun 04 13:07:11 2009 -0400
+++ b/src/lib-storage/index/cydir/cydir-storage.c	Thu Jun 04 13:08:19 2009 -0400
@@ -109,6 +109,9 @@ cydir_mailbox_open(struct mail_storage *
 			"cydir doesn't support streamed mailboxes");
 		return NULL;
 	}
+
+	/* cydir can't work without index files */
+	flags &= ~MAILBOX_OPEN_NO_INDEX_FILES;
 
 	path = mailbox_list_get_path(list, name,
 				     MAILBOX_LIST_PATH_TYPE_MAILBOX);
diff -r 99a97c5c9912 -r 3396bab1feb6 src/lib-storage/index/dbox/dbox-storage.c
--- a/src/lib-storage/index/dbox/dbox-storage.c	Thu Jun 04 13:07:11 2009 -0400
+++ b/src/lib-storage/index/dbox/dbox-storage.c	Thu Jun 04 13:08:19 2009 -0400
@@ -147,6 +147,9 @@ dbox_open(struct dbox_storage *storage, 
 	const char *path;
 	pool_t pool;
 	int ret;
+
+	/* dbox can't work without index files */
+	flags &= ~MAILBOX_OPEN_NO_INDEX_FILES;
 
 	path = mailbox_list_get_path(list, name,
 				     MAILBOX_LIST_PATH_TYPE_MAILBOX);


More information about the dovecot-cvs mailing list