]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: Fixed expunging first mail with CRLF linefeeds.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 5 Jun 2016 12:23:45 +0000 (15:23 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 5 Jun 2016 12:23:45 +0000 (15:23 +0300)
src/lib-storage/index/mbox/mbox-sync-rewrite.c

index 9e12377c91b0fca3cfdd4122acde8014a91af429..f791eaeba248194974a08b7980b79003353a95ec 100644 (file)
@@ -362,7 +362,7 @@ static int mbox_sync_read_next(struct mbox_sync_context *sync_ctx,
        }
 
        first_mail_expunge_extra = 1 +
-               sync_ctx->first_mail_crlf_expunged ? 1 : 0;
+               (sync_ctx->first_mail_crlf_expunged ? 1 : 0);
        if (mails[idx].from_offset +
            first_mail_expunge_extra - expunged_space != 0) {
                sync_ctx->dest_first_mail = mails[idx].from_offset == 0;