From: Vsevolod Stakhov Date: Tue, 20 Aug 2019 10:58:57 +0000 (+0100) Subject: [Minor] Do not autodetect CTE for message parts X-Git-Tag: 2.0~376 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2ce497de837c7a444bc81ff52ac29984b9f2ae99;p=rspamd.git [Minor] Do not autodetect CTE for message parts --- diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index 3dbe5cb71..1153a54c7 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -436,7 +436,8 @@ rspamd_mime_parse_normal_part (struct rspamd_task *task, g_assert (part != NULL); - rspamd_mime_part_get_cte (task, part->raw_headers, part, TRUE); + rspamd_mime_part_get_cte (task, part->raw_headers, part, + !(part->ct->flags & RSPAMD_CONTENT_TYPE_MESSAGE)); rspamd_mime_part_get_cd (task, part); switch (part->cte) {