]> source.dussan.org Git - rspamd.git/commitdiff
[Project] Lua_magic: Add zoo archive support
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 8 Sep 2019 08:56:55 +0000 (09:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 8 Sep 2019 08:56:55 +0000 (09:56 +0100)
lualib/lua_magic/patterns.lua
lualib/lua_magic/types.lua

index 9bb6df1825c8583417f987cfb8aee1c7a9b46b7f..87ed3c0e9c1a7df09f5b07c146324ad58da25c1c 100644 (file)
@@ -215,6 +215,15 @@ local patterns = {
       },
     }
   },
+  zoo = {
+    matches = {
+      {
+        hex = [[dca7c4fd]],
+        relative_position = 20,
+        weight = 60,
+      },
+    }
+  },
   iso = {
     matches = {
       {
index 299dc192468e6391a023a8cdf00ed081a8de2996..e8e4e45e2e362726c4c240297e677caeb8fecd48 100644 (file)
@@ -101,6 +101,10 @@ local types = {
     ct = 'application/x-iso',
     type = 'archive',
   },
+  zoo = {
+    ct = 'application/x-zoo',
+    type = 'archive',
+  },
   szdd = { -- in fact, their MSDOS extension is like FOO.TX_ or FOO.TX$
     ct = 'application/x-compressed',
     type = 'archive',