commit 6c4754c: [Fix] Do not treat archives as text
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Oct 17 10:07:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-17 11:04:50 +0100
URL: https://github.com/rspamd/rspamd/commit/6c4754cee33f8cbd24701429deb67236cccbfa37 (HEAD -> master)
[Fix] Do not treat archives as text
---
src/libmime/message.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 6a5b4095f..0785a3570 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -1433,7 +1433,9 @@ rspamd_message_process (struct rspamd_task *task)
lua_settop (L, func_pos);
}
- rspamd_message_process_text_part_maybe (task, part);
+ if (!(part->flags & (RSPAMD_MIME_PART_IMAGE|RSPAMD_MIME_PART_ARCHIVE))) {
+ rspamd_message_process_text_part_maybe (task, part);
+ }
}
if (func_pos != -1) {
More information about the Commits
mailing list