Mercurial > dovecot > core-2.2
changeset 13585:37c4e282a605
mailbox list indexes: Disable index files for shared/public namespaces.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 02 Oct 2011 16:59:51 +0300 |
parents | e06e178c8fd1 |
children | 8800d0429b7c |
files | src/lib-storage/list/index-mailbox-list.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/list/index-mailbox-list.c Sun Oct 02 16:55:45 2011 +0300 +++ b/src/lib-storage/list/index-mailbox-list.c Sun Oct 02 16:59:51 2011 +0300 @@ -807,8 +807,15 @@ MODULE_CONTEXT_SET(list, index_mailbox_list_module, ilist); return; } - if (*dir == '\0') + if (*dir == '\0') { + /* in-memory indexes */ dir = NULL; + } else if (list->ns->type != NAMESPACE_PRIVATE) { + /* don't create index files for shared/public mailboxes. + their indexes may be shared between multiple users, + each of which may have different ACLs */ + dir = NULL; + } ilist = p_new(list->pool, struct index_mailbox_list, 1); ilist->module_ctx.super = list->v;