aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-07 11:45:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-07 11:45:27 +0100
commite07f6079fb33a30714d40fb3b3864d9d13648f82 (patch)
tree9223f6299dd7d38457ae88ee97d86326f72e001a
parent55c857f4e94f4b7fc453238f81e4f56b56df52ae (diff)
downloadrspamd-e07f6079fb33a30714d40fb3b3864d9d13648f82.tar.gz
rspamd-e07f6079fb33a30714d40fb3b3864d9d13648f82.zip
[Fix] Use heuristically detected text parts data
-rw-r--r--src/libmime/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 4169ca0b5..eeb53dc0d 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -816,8 +816,8 @@ rspamd_message_process_text_part_maybe (struct rspamd_task *task,
gboolean found_html = FALSE, found_txt = FALSE;
enum rspamd_action_type act;
- if (IS_CT_TEXT (mime_part->ct) && (!mime_part->detected_ct ||
- IS_CT_TEXT (mime_part->detected_ct))) {
+ if (IS_CT_TEXT (mime_part->ct) || (!mime_part->detected_type ||
+ strcmp (mime_part->detected_type, "text") == 0)) {
found_txt = TRUE;
html_tok.begin = "html";