From: Vsevolod Stakhov Date: Mon, 7 Oct 2019 10:45:27 +0000 (+0100) Subject: [Fix] Use heuristically detected text parts data X-Git-Tag: 2.0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e07f6079fb33a30714d40fb3b3864d9d13648f82;p=thirdparty%2Frspamd.git [Fix] Use heuristically detected text parts data --- diff --git a/src/libmime/message.c b/src/libmime/message.c index 4169ca0b56..eeb53dc0d1 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";