Mercurial > dovecot > core-2.2
changeset 22853:a236fe5b588d
imap: Add parenthesis to FETCH SNIPPET (FUZZY text) response
Otherwise it violates the RFC 3501 text about FETCH responses.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 16 Feb 2018 14:46:36 +0200 |
parents | 899f54a6371f |
children | bc45ec187a5b |
files | src/imap/imap-fetch-body.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-fetch-body.c Fri Feb 16 16:59:35 2018 +0200 +++ b/src/imap/imap-fetch-body.c Fri Feb 16 14:46:36 2018 +0200 @@ -625,13 +625,14 @@ return 1; } - str = t_strdup_printf(" SNIPPET FUZZY {%"PRIuSIZE_T"}\r\n", strlen(snippet)); + str = t_strdup_printf(" SNIPPET (FUZZY {%"PRIuSIZE_T"}\r\n", strlen(snippet)); if (ctx->state.cur_first) { str++; ctx->state.cur_first = FALSE; } o_stream_nsend_str(ctx->client->output, str); o_stream_nsend_str(ctx->client->output, snippet); + o_stream_nsend_str(ctx->client->output, ")"); return 1; }