# HG changeset patch # User Timo Sirainen # Date 1547593222 -7200 # Node ID 88fe344457808bf6b3461a7882212532dea279e3 # Parent cee60b46c2f45282982f5c10ca697f73f8527220 LAYOUT=index: Fix rebuilding mailbox list index on force-resync 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). diff -r cee60b46c2f4 -r 88fe34445780 src/lib-storage/list/mailbox-list-index.c --- a/src/lib-storage/list/mailbox-list-index.c Tue Oct 02 10:22:11 2018 +0300 +++ b/src/lib-storage/list/mailbox-list-index.c Wed Jan 16 01:00:22 2019 +0200 @@ -961,7 +961,7 @@ 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); }