From: Vsevolod Stakhov Date: Thu, 17 Jun 2021 12:51:18 +0000 (+0100) Subject: [Minor] Add ASICE format support X-Git-Tag: 3.0~286 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8062da9e666ca4f040f31fd4dfc0571f10c715d9;p=rspamd.git [Minor] Add ASICE format support Issue: #3790 --- diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua index e9f8f847e..01fa046c0 100644 --- a/lualib/lua_magic/heuristics.lua +++ b/lualib/lua_magic/heuristics.lua @@ -55,7 +55,8 @@ local zip_patterns = { [[mimetypeapplication/vnd\.oasis\.opendocument\.chart]] }, odp = {[[mimetypeapplication/vnd\.oasis\.opendocument\.presentation]]}, - epub = {[[epub\+zip]]} + epub = {[[epub\+zip]]}, + asice = {[[mimetypeapplication/vnd\.etsi\.asic-e\+zipPK]]}, } local txt_trie diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua index 32f9f4e73..5ab50d9bc 100644 --- a/lualib/lua_magic/types.lua +++ b/lualib/lua_magic/types.lua @@ -125,6 +125,11 @@ local types = { ct = 'application/x-alz', type = 'archive', }, + -- https://en.wikipedia.org/wiki/Associated_Signature_Containers + asice = { + ct = 'application/vnd.etsi.asic-e+zip', + type = 'archive' + }, xar = { ct = 'application/x-xar', type = 'archive',