From: Vsevolod Stakhov Date: Mon, 7 Oct 2019 11:40:17 +0000 (+0100) Subject: [Minor] Oops, ignore undetected X-Git-Tag: 2.0~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b27f6bf4ad3ce633102076a24ff8b35805a38cf1;p=thirdparty%2Frspamd.git [Minor] Oops, ignore undetected --- diff --git a/src/libmime/message.c b/src/libmime/message.c index eeb53dc0d1..8209626b4c 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -816,7 +816,7 @@ 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_type || + if (IS_CT_TEXT (mime_part->ct) || (mime_part->detected_type && strcmp (mime_part->detected_type, "text") == 0)) { found_txt = TRUE;