From b27f6bf4ad3ce633102076a24ff8b35805a38cf1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 7 Oct 2019 12:40:17 +0100 Subject: [PATCH] [Minor] Oops, ignore undetected --- src/libmime/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmime/message.c b/src/libmime/message.c index eeb53dc0d..8209626b4 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; -- 2.39.5