]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Use heuristically detected text parts data
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 7 Oct 2019 10:45:27 +0000 (11:45 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 7 Oct 2019 10:45:27 +0000 (11:45 +0100)
src/libmime/message.c

index 4169ca0b561db72869612852ce69812e7fff2ce6..eeb53dc0d1cc9a271f5180861c7406466c80d5f4 100644 (file)
@@ -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";