diff options
-rw-r--r-- | src/libmime/message.c | 4 |
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) { |