commit 47c55ad: [Minor] Some fixes to skip multiparts from detection
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Sep 9 16:21:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-09-09 17:18:19 +0100
URL: https://github.com/rspamd/rspamd/commit/47c55ad0601294b9c737c431db617711ba908285 (HEAD -> master)
[Minor] Some fixes to skip multiparts from detection
---
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 00067ee83..9ea4f194f 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -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;
More information about the Commits
mailing list