commit 51f1bc6: [Minor] Lua_content: Do not try to detect content when C library does that

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Dec 20 13:00:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-12-20 12:55:59 +0000
URL: https://github.com/rspamd/rspamd/commit/51f1bc65d43b0b9b02a91a1413b9f13102d287e6 (HEAD -> master)

[Minor] Lua_content: Do not try to detect content when C library does that

---
 src/libmime/message.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;
 


More information about the Commits mailing list