aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-20 11:58:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-20 11:58:57 +0100
commit2ce497de837c7a444bc81ff52ac29984b9f2ae99 (patch)
tree86dd2a9532560b1dc3194a713ab72b691f8c48df /src/libmime
parent9da63b5e1d3de12591e27db64b573b2e3581978d (diff)
downloadrspamd-2ce497de837c7a444bc81ff52ac29984b9f2ae99.tar.gz
rspamd-2ce497de837c7a444bc81ff52ac29984b9f2ae99.zip
[Minor] Do not autodetect CTE for message parts
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/mime_parser.c3
1 files changed, 2 insertions, 1 deletions
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) {