summaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-08 09:56:55 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-08 09:56:55 +0100
commit0214b14323f8d59aec6a7520ed124116eeca93a7 (patch)
tree391a8db1a4365523b65d09b162444efa9d714eca /lualib
parentef54307ee4621ee2645c7cf9456e2542f51875f6 (diff)
downloadrspamd-0214b14323f8d59aec6a7520ed124116eeca93a7.tar.gz
rspamd-0214b14323f8d59aec6a7520ed124116eeca93a7.zip
[Project] Lua_magic: Add zoo archive support
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_magic/patterns.lua9
-rw-r--r--lualib/lua_magic/types.lua4
2 files changed, 13 insertions, 0 deletions
diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua
index 9bb6df182..87ed3c0e9 100644
--- a/lualib/lua_magic/patterns.lua
+++ b/lualib/lua_magic/patterns.lua
@@ -215,6 +215,15 @@ local patterns = {
},
}
},
+ zoo = {
+ matches = {
+ {
+ hex = [[dca7c4fd]],
+ relative_position = 20,
+ weight = 60,
+ },
+ }
+ },
iso = {
matches = {
{
diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua
index 299dc1924..e8e4e45e2 100644
--- a/lualib/lua_magic/types.lua
+++ b/lualib/lua_magic/types.lua
@@ -101,6 +101,10 @@ local types = {
ct = 'application/x-iso',
type = 'archive',
},
+ zoo = {
+ ct = 'application/x-zoo',
+ type = 'archive',
+ },
szdd = { -- in fact, their MSDOS extension is like FOO.TX_ or FOO.TX$
ct = 'application/x-compressed',
type = 'archive',