]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Don't update INBOX's sync status to mailbox list index
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 20 Jul 2017 13:01:46 +0000 (16:01 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 20 Jul 2017 13:01:46 +0000 (16:01 +0300)
It's not actually used so there's no need to update it either.
Broken by 70092709cdc803c87b8f4ef1b0548eb45515bdae

src/lib-storage/list/mailbox-list-index-status.c

index 37e8294b9ceeb46e5d2ead327f8c781311466f1a..005f5c91b50a24d79de80c20f7c7bf435a6165b0 100644 (file)
@@ -683,7 +683,8 @@ static int index_list_update_mailbox(struct mailbox *box)
                ilist->updating_status = TRUE;
                if (index_list_has_changed(box, list_view, &changes))
                        index_list_update(box, list_view, list_trans, &changes);
-               if (box->v.list_index_update_sync != NULL) {
+               if (box->v.list_index_update_sync != NULL &&
+                   !MAILBOX_IS_NEVER_IN_INDEX(box)) {
                        box->v.list_index_update_sync(box, list_trans,
                                                      changes.seq);
                }