Skip to content

Commit

Permalink
[Minor] Do not autodetect CTE for message parts
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Aug 20, 2019
1 parent 9da63b5 commit 2ce497d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libmime/mime_parser.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 2ce497d

Please sign in to comment.