commit 8062da9: [Minor] Add ASICE format support

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Jun 17 13:07:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-17 13:51:18 +0100
URL: https://github.com/rspamd/rspamd/commit/8062da9e666ca4f040f31fd4dfc0571f10c715d9

[Minor] Add ASICE format support
Issue: #3790

---
 lualib/lua_magic/heuristics.lua | 3 ++-
 lualib/lua_magic/types.lua      | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

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',


More information about the Commits mailing list