It previously was updating it only if the list index for the mailbox was
already fully up-to-date. But that doesn't really matter, because
mailbox_update() is supposed to be changing the values regardless.
This fixes mailbox_update() to always work with LAYOUT=index. It also
fixes mailbox_update() for INBOX to update UIDVALIDITY/GUID.
int ret;
i_zero(&changes);
- if ((ret = index_list_open_view(box, TRUE, &list_view, &changes.seq)) <= 0)
+ /* update the mailbox list index even if it has some other pending
+ changes. */
+ if ((ret = index_list_open_view(box, FALSE, &list_view, &changes.seq)) <= 0)
return;
(void)mailbox_list_index_status(box->list, list_view, changes.seq,