diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-20 12:55:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-20 12:55:59 +0000 |
commit | 51f1bc65d43b0b9b02a91a1413b9f13102d287e6 (patch) | |
tree | 436bb480f61451c001a81ceb048feba04511d894 | |
parent | 29df0af1d06dc141037f581f529f8f2334355e85 (diff) | |
download | rspamd-51f1bc65d43b0b9b02a91a1413b9f13102d287e6.tar.gz rspamd-51f1bc65d43b0b9b02a91a1413b9f13102d287e6.zip |
[Minor] Lua_content: Do not try to detect content when C library does that
-rw-r--r-- | src/libmime/message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index b2b53d4ba..e99fc4af7 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -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; |