]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not autodetect CTE for message parts
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Aug 2019 10:58:57 +0000 (11:58 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Aug 2019 10:58:57 +0000 (11:58 +0100)
src/libmime/mime_parser.c

index 3dbe5cb71c929c687a862660f6f71e1395a481f9..1153a54c7c3b5f3eebf9b5ef4dcec6f6b336b6d4 100644 (file)
@@ -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) {