Mercurial > dovecot > core-2.2
changeset 9445:3396bab1feb6 HEAD
dbox, cydir: Ignore MAILBOX_OPEN_NO_INDEX_FILES flag when opening mailbox.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 04 Jun 2009 13:08:19 -0400 |
parents | 99a97c5c9912 |
children | 563b17988ce1 |
files | src/lib-storage/index/cydir/cydir-storage.c src/lib-storage/index/dbox/dbox-storage.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ -110,6 +110,9 @@ 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); if (stat(path, &st) == 0)
--- 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 @@ -148,6 +148,9 @@ 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);