Not only when the mailbox has messages, because that could still mess up
assumptions about UIDs. A somewhat better check could have been to do this
only when next_uid>1 (= there have been messages at some point in this
mailbox), but it's safer to just always mark the view as inconsistent.
ctx->finish_min_msg_count = reset ? 0 :
view->map->hdr.messages_count - expunge_count;
- if (reset && view->map->hdr.messages_count > 0) {
+ if (reset) {
view->inconsistent = TRUE;
mail_index_set_error(view->index,
"%s reset, view is now inconsistent",