From: Vsevolod Stakhov Date: Sun, 20 Sep 2020 21:55:36 +0000 (+0100) Subject: [Minor] Add alzip magic numbers X-Git-Tag: 2.6~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ce8ae98039f5cdbb243872552be3c0e3fdd0ecc;p=thirdparty%2Frspamd.git [Minor] Add alzip magic numbers --- diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index 371d99a5a2..d04c3c57e0 100644 --- a/lualib/lua_magic/patterns.lua +++ b/lualib/lua_magic/patterns.lua @@ -254,6 +254,26 @@ local patterns = { }, } }, + egg = { + -- ALZip egg + matches = { + { + string = [[EGGA]], + weight = 60, + relative_position = 0, + }, + } + }, + alz = { + -- ALZip alz + matches = { + { + string = [[ALZ\x{01}]], + weight = 60, + relative_position = 0, + }, + } + }, -- Apple is a 'special' child: this needs to be matched at the data tail... dmg = { matches = { diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua index d15eec6e1d..3a104a5372 100644 --- a/lualib/lua_magic/types.lua +++ b/lualib/lua_magic/types.lua @@ -117,6 +117,14 @@ local types = { ct = 'application/x-zoo', type = 'archive', }, + egg = { + ct = 'application/x-egg', + type = 'archive', + }, + alz = { + ct = 'application/x-alz', + type = 'archive', + }, xar = { ct = 'application/x-xar', type = 'archive',