]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_content: Do not try to detect content when C library does that
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Dec 2019 12:55:59 +0000 (12:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Dec 2019 12:55:59 +0000 (12:55 +0000)
src/libmime/message.c

index b2b53d4ba1944486b0941ba4110b0dbcdca7cc21..e99fc4af77367e81835246c5561eb7096aed83b2 100644 (file)
@@ -1406,7 +1406,8 @@ rspamd_message_process (struct rspamd_task *task)
                }
 
                /* Now detect content */
-               if (content_func_pos != -1 && part->parsed_data.len > 0) {
+               if (content_func_pos != -1 && part->parsed_data.len > 0 &&
+                       part->part_type == RSPAMD_MIME_PART_UNDEFINED) {
                        struct rspamd_mime_part **pmime;
                        struct rspamd_task **ptask;