From 6c4754cee33f8cbd24701429deb67236cccbfa37 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Oct 2019 11:04:50 +0100 Subject: [Fix] Do not treat archives as text --- src/libmime/message.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libmime') 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) { -- cgit v1.2.3