diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-21 15:31:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-21 15:31:15 +0100 |
commit | 66468690e6caa0ada83d1d6707d3c58b1487ea87 (patch) | |
tree | 3b1350f55fa797a4a3a3f738cda28ae6805142cf | |
parent | 6439cbcfe679ebb06b8a09c97c890cb978fc5768 (diff) | |
download | rspamd-66468690e6caa0ada83d1d6707d3c58b1487ea87.tar.gz rspamd-66468690e6caa0ada83d1d6707d3c58b1487ea87.zip |
[Minor] Do not try to parse non-trivial parts as text parts
-rw-r--r-- | src/libmime/message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 0785a3570..cfa8cf97d 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1433,7 +1433,8 @@ rspamd_message_process (struct rspamd_task *task) lua_settop (L, func_pos); } - if (!(part->flags & (RSPAMD_MIME_PART_IMAGE|RSPAMD_MIME_PART_ARCHIVE))) { + if (!(part->flags & (RSPAMD_MIME_PART_IMAGE|RSPAMD_MIME_PART_ARCHIVE)) && + (!part->ct || !(part->ct->flags & (RSPAMD_CONTENT_TYPE_MULTIPART|RSPAMD_CONTENT_TYPE_MESSAGE)))) { rspamd_message_process_text_part_maybe (task, part); } } |