aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic/heuristics.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_magic/heuristics.lua')
-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