diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-22 14:08:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-22 14:08:47 +0100 |
commit | adefe59d6f1273d4b9613bf29f19bca954d6ad45 (patch) | |
tree | b474993a311e0028d7f438127cc536d89c43047e /lualib/lua_magic | |
parent | 401baa2b86548fa6968020dc14aa83f9d713e97b (diff) | |
download | rspamd-adefe59d6f1273d4b9613bf29f19bca954d6ad45.tar.gz rspamd-adefe59d6f1273d4b9613bf29f19bca954d6ad45.zip |
[Minor] Lua_magic: Make an exclusion for message parts
Diffstat (limited to 'lualib/lua_magic')
-rw-r--r-- | lualib/lua_magic/heuristics.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua index 042bfde3f..5863897bc 100644 --- a/lualib/lua_magic/heuristics.lua +++ b/lualib/lua_magic/heuristics.lua @@ -427,7 +427,7 @@ exports.text_part_heuristic = function(part, log_obj, _) local ext, weight = process_top_detected(res) - if weight and weight >= 40 then + if weight and weight >= 40 and mtype ~= 'message' then return ext, weight end end |