aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic/heuristics.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-24 15:43:04 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-24 15:43:04 +0100
commit99cc1fcb693f0c08f48776bdc8ba76fc91856737 (patch)
treef2dd4a1c130a7c029dfb4b785ef9f683a82d368f /lualib/lua_magic/heuristics.lua
parentd142728c2eef62bf3266e9c16eb73a5a3ba63b46 (diff)
downloadrspamd-99cc1fcb693f0c08f48776bdc8ba76fc91856737.tar.gz
rspamd-99cc1fcb693f0c08f48776bdc8ba76fc91856737.zip
[Project] Lua_magic: Add images patterns
Diffstat (limited to 'lualib/lua_magic/heuristics.lua')
-rw-r--r--lualib/lua_magic/heuristics.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua
index 700932051..fb105932a 100644
--- a/lualib/lua_magic/heuristics.lua
+++ b/lualib/lua_magic/heuristics.lua
@@ -303,15 +303,6 @@ local function detect_archive_flaw(part, arch, log_obj)
end
exports.mime_part_heuristic = function(part, log_obj)
-
- if part:is_image() then
- local img = part:get_image()
- local img_type = img:get_type():lower()
-
- if img_type == 'jpeg' then img_type = 'jpg' end
- return img_type,60
- end
-
if part:is_archive() then
local arch = part:get_archive()
return detect_archive_flaw(part, arch, log_obj)