Skip to content

Commit

Permalink
lib-storage: mailbox-list-index - disable if MAILBOX_LIST_PROP_NO_LIS…
Browse files Browse the repository at this point in the history
…T_INDEX set
  • Loading branch information
cmouse authored and Timo Sirainen committed Nov 15, 2017
1 parent 18b3f47 commit dc8dc2e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib-storage/list/mailbox-list-index.c
Expand Up @@ -819,9 +819,8 @@ mailbox_list_index_set_subscribed(struct mailbox_list *_list,

static bool mailbox_list_index_is_enabled(struct mailbox_list *list)
{
if (!list->mail_set->mailbox_list_index)
return FALSE;
if (strcmp(list->name, MAILBOX_LIST_NAME_NONE) == 0)
if (!list->mail_set->mailbox_list_index ||
(list->props & MAILBOX_LIST_PROP_NO_LIST_INDEX) != 0)
return FALSE;

i_assert(list->set.list_index_fname != NULL);
Expand Down

0 comments on commit dc8dc2e

Please sign in to comment.