]> 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>
Tue, 14 Jun 2016 09:22:21 +0000 (12:22 +0300)
src/lib-storage/index/mbox/mbox-sync-rewrite.c

index ef902441a7dcbfad34fb69bce0c3c2eb98d6cedf..63bb4c125ccf79de36f1e7dacf215081543c2be0 100644 (file)
@@ -354,7 +354,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;