commit 0214b14: [Project] Lua_magic: Add zoo archive support
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun Sep 8 09:00:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-09-08 09:56:55 +0100
URL: https://github.com/rspamd/rspamd/commit/0214b14323f8d59aec6a7520ed124116eeca93a7 (HEAD -> master)
[Project] Lua_magic: Add zoo archive support
---
lualib/lua_magic/patterns.lua | 9 +++++++++
lualib/lua_magic/types.lua | 4 ++++
2 files changed, 13 insertions(+)
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',
More information about the Commits
mailing list