From 65a35acfe06d85eedf73940335d6f7f3af43043a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 May 2017 18:29:34 +0100 Subject: [PATCH] [Fix] Try harder to detect CTE Issue: #1468 --- src/libmime/mime_parser.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index d93cde835..b23b0cdee 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -201,12 +201,7 @@ rspamd_mime_part_get_cte_heuristic (struct rspamd_task *task, } while (p < end) { - if (*p == '\r' || *p == '\n') { - if (!b64_chars || n8bit || nspaces) { - break; - } - } - else if (*p == ' ') { + if (*p == ' ') { nspaces ++; } else if (*p == '=') { -- 2.39.5