]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add ASICE format support
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Jun 2021 12:51:18 +0000 (13:51 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Jun 2021 12:51:18 +0000 (13:51 +0100)
Issue: #3790

lualib/lua_magic/heuristics.lua
lualib/lua_magic/types.lua

index e9f8f847e677f1f761b2677a34ba2fcdc96e1512..01fa046c081e2697bf3d6ed6a3365dcc6f9d8389 100644 (file)
@@ -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
index 32f9f4e733497e4c79ad97630e9372ee407a49f1..5ab50d9bce646b1e9763967084b3cbaa9eebb576 100644 (file)
@@ -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',