]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
imapc: Fix local state if mailbox is empty after reconnection
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 25 Mar 2018 20:15:58 +0000 (23:15 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Thu, 12 Apr 2018 10:17:49 +0000 (13:17 +0300)
commit6d138888011b4785d97ec91caebdfcb75e48d232
tree1bb84c93f7f7b39796204382498d104ef0cdca6f
parent4e881e9eee34c6d1f08332aa70f25b6af74bf041
imapc: Fix local state if mailbox is empty after reconnection

If local indexes had more than 0 mails, but after reconnection the remote
IMAP server replied with "* 0 EXISTS", the mails in local index weren't
expunged. This could have resulted in:

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))
src/lib-storage/index/imapc/imapc-mailbox.c