]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, ignore undetected
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 7 Oct 2019 11:40:17 +0000 (12:40 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 7 Oct 2019 11:40:17 +0000 (12:40 +0100)
src/libmime/message.c

index eeb53dc0d1cc9a271f5180861c7406466c80d5f4..8209626b4ce43fbfc02f6b148dda3808e426e6df 100644 (file)
@@ -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;