commit 2ce497d: [Minor] Do not autodetect CTE for message parts

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Aug 20 11:35:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-20 11:58:57 +0100
URL: https://github.com/rspamd/rspamd/commit/2ce497de837c7a444bc81ff52ac29984b9f2ae99 (HEAD -> master)

[Minor] Do not autodetect CTE for message parts

---
 src/libmime/mime_parser.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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) {


More information about the Commits mailing list