aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-22 14:08:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-22 14:08:47 +0100
commitadefe59d6f1273d4b9613bf29f19bca954d6ad45 (patch)
treeb474993a311e0028d7f438127cc536d89c43047e /lualib/lua_magic
parent401baa2b86548fa6968020dc14aa83f9d713e97b (diff)
downloadrspamd-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.lua2
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