aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-17 11:04:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-17 11:05:45 +0100
commit6c4754cee33f8cbd24701429deb67236cccbfa37 (patch)
treefa60e274cafdbb70f904756405c5ea8b5d8e7cf4 /src/libmime/message.c
parent48a5ca7978fd5f0490f429fbddd28fd87f9976b1 (diff)
downloadrspamd-6c4754cee33f8cbd24701429deb67236cccbfa37.tar.gz
rspamd-6c4754cee33f8cbd24701429deb67236cccbfa37.zip
[Fix] Do not treat archives as text
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r--src/libmime/message.c4
1 files changed, 3 insertions, 1 deletions
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) {