From: Vsevolod Stakhov Date: Sun, 8 Sep 2019 08:56:55 +0000 (+0100) Subject: [Project] Lua_magic: Add zoo archive support X-Git-Tag: 2.0~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0214b14323f8d59aec6a7520ed124116eeca93a7;p=thirdparty%2Frspamd.git [Project] Lua_magic: Add zoo archive support --- diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index 9bb6df1825..87ed3c0e9c 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 299dc19246..e8e4e45e2e 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',