The if-check was a bit confusing because have_backend==TRUE means that there
the mailbox list index is only an index, while have_backend==FALSE means
that the mailbox list index is the only source for the list of mailboxes
(= list index is the backend).
struct index_list_mailbox *ibox = INDEX_LIST_STORAGE_CONTEXT(box);
mailbox_list_index_status_sync_init(box);
- if (ibox->have_backend)
+ if (!ibox->have_backend)
mailbox_list_index_backend_sync_init(box, flags);
return ibox->module_ctx.super.sync_init(box, flags);
}