Fixes:
Panic: file imapc-sync.c: line 328 (imapc_initial_sync_check): assertion failed: (mail_index_is_expunged(view, lseq) || seq_range_exists(&ctx->mbox->delayed_expunged_uids, luid))
mbox->sync_next_rseq = 1;
}
+ mbox->state_fetched_success = FALSE;
mbox->initial_sync_done = FALSE;
mbox->selecting = TRUE;
mbox->selected = FALSE;
imapc_mailbox_run(mbox);
array_free(&ctx->expunged_uids);
+ if (!mbox->state_fetched_success) {
+ /* All the sync commands succeeded, but we got disconnected.
+ imapc_initial_sync_check() will crash if we go there. */
+ ctx->failed = TRUE;
+ }
+
/* add uidnext & highestmodseq after all appends */
imapc_sync_uid_next(ctx);
imapc_sync_highestmodseq(ctx);