From b0d3ec5f41c220a755e2f394b60481a9a5cb2ff1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 22 Sep 2016 18:10:43 +0100 Subject: [Feature] Try to guess line endings when folding headers --- src/client/rspamc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/rspamc.c b/src/client/rspamc.c index ae3b3fe82..3f038ed57 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -1129,7 +1129,7 @@ rspamc_mime_output (FILE *out, ucl_object_t *result, GString *input, folded_symbuf = rspamd_header_value_fold ("X-Spam-Symbols", symbuf->str, - 0); + 0, RSPAMD_TASK_NEWLINES_CRLF); rspamd_printf_gstring (added_headers, "X-Spam-Symbols: %v\r\n", folded_symbuf); @@ -1153,7 +1153,7 @@ rspamc_mime_output (FILE *out, ucl_object_t *result, GString *input, } json_header_encoded = rspamd_encode_base64_fold (json_header, - strlen (json_header), 60, NULL); + strlen (json_header), 60, NULL, RSPAMD_TASK_NEWLINES_CRLF); free (json_header); rspamd_printf_gstring (added_headers, "X-Spam-Result: %s\r\n", -- cgit v1.2.3