For example if INBOX is deleted, looking up its GUID shouldn't be returned
from the list index since it contains the old GUID.
}
view = mail_index_view_open(ilist->index);
- if (!mail_index_lookup_seq(view, node->uid, &seq)) {
+ if (mailbox_list_index_need_refresh(ilist, view)) {
+ /* mailbox_list_index_refresh_later() was called.
+ Can't trust the index's contents. */
+ ret = 1;
+ } else if (!mail_index_lookup_seq(view, node->uid, &seq)) {
/* our in-memory tree is out of sync */
ret = 1;
} else if (!status_check) {