aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-09 17:18:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-09 17:18:19 +0100
commit47c55ad0601294b9c737c431db617711ba908285 (patch)
tree70bcbb53f925158d1961337d2bb47143c9685e4d
parent10155c997eb4120efc4f35eacb63ba5a45431c3f (diff)
downloadrspamd-47c55ad0601294b9c737c431db617711ba908285.tar.gz
rspamd-47c55ad0601294b9c737c431db617711ba908285.zip
[Minor] Some fixes to skip multiparts from detection
-rw-r--r--src/libmime/message.c2
1 files changed, 1 insertions, 1 deletions
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;