]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: PREVIEW responses need trailing space
authorMichael M Slusarz <michael.slusarz@open-xchange.com>
Tue, 22 Jun 2021 17:52:02 +0000 (11:52 -0600)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 2 Jul 2021 09:53:01 +0000 (12:53 +0300)
2.3.15 regression

Before 2.3.15, there was this same buggy behavior in error cases; 2.3.15
moved that buggy behavior to the success code path

DOP-2463

src/imap/imap-fetch-body.c

index 59a9b24d9997cf7039064cc70db5c69ed957f250..39e66f093d2f349c8dd46442a590be1932e818bf 100644 (file)
@@ -648,6 +648,7 @@ fetch_snippet(struct imap_fetch_context *ctx, struct mail *mail,
                str_append(ctx->state.cur_str, "NIL");
        if (preview->old_standard)
                str_append(ctx->state.cur_str, ")");
+       str_append_c(ctx->state.cur_str, ' ');
 
        return 1;
 }