]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Some fixes to skip multiparts from detection
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Sep 2019 16:18:19 +0000 (17:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Sep 2019 16:18:19 +0000 (17:18 +0100)
src/libmime/message.c

index 00067ee83634d190788fc4f4f880f1d9724571a2..9ea4f194fa1a3285645ae9a84292a731896d0ae4 100644 (file)
@@ -1376,7 +1376,7 @@ rspamd_message_process (struct rspamd_task *task)
        }
 
        PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, parts), i, part) {
-               if (func_pos != -1) {
+               if (func_pos != -1 && part->parsed_data.len > 0) {
                        struct rspamd_mime_part **pmime;
                        struct rspamd_task **ptask;