From: Vsevolod Stakhov Date: Thu, 17 Oct 2019 10:04:50 +0000 (+0100) Subject: [Fix] Do not treat archives as text X-Git-Tag: 2.1~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6c4754cee33f8cbd24701429deb67236cccbfa37;p=rspamd.git [Fix] Do not treat archives as text --- 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) {