]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: If reconnect fails during syncing, don't treat all mails as expunged in error...
authorTimo Sirainen <tss@iki.fi>
Fri, 13 Mar 2015 18:03:27 +0000 (20:03 +0200)
committerTimo Sirainen <tss@iki.fi>
Fri, 13 Mar 2015 18:03:27 +0000 (20:03 +0200)
src/lib-storage/index/imapc/imapc-mail.c

index c03e89b643221af6e7fff697f51e6c8285fe5c4a..c03ebe97b779ec3dc074e5fbce10c91d9805aeb2 100644 (file)
@@ -36,6 +36,11 @@ static bool imapc_mail_is_expunged(struct mail *_mail)
        struct imapc_msgmap *msgmap;
        uint32_t lseq, rseq;
 
+       if (!mbox->initial_sync_done) {
+               /* unknown at this point */
+               return FALSE;
+       }
+
        if (mbox->sync_view != NULL) {
                /* check if another session has already expunged it */
                if (!mail_index_lookup_seq(mbox->sync_view, _mail->uid, &lseq))