From: Vsevolod Stakhov Date: Tue, 23 May 2017 17:29:34 +0000 (+0100) Subject: [Fix] Try harder to detect CTE X-Git-Tag: 1.5.8~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=65a35acfe06d85eedf73940335d6f7f3af43043a;p=rspamd.git [Fix] Try harder to detect CTE Issue: #1468 --- 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 == '=') {