aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-17 13:51:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-17 13:51:18 +0100
commit8062da9e666ca4f040f31fd4dfc0571f10c715d9 (patch)
tree761e8afda98490a84e27939d2babd3641125d46d /lualib
parent20435438945f0a4fb5f1203e697d145afc7072d6 (diff)
downloadrspamd-8062da9e666ca4f040f31fd4dfc0571f10c715d9.tar.gz
rspamd-8062da9e666ca4f040f31fd4dfc0571f10c715d9.zip
[Minor] Add ASICE format support
Issue: #3790
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_magic/heuristics.lua3
-rw-r--r--lualib/lua_magic/types.lua5
2 files changed, 7 insertions, 1 deletions
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',