aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-14 16:37:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-14 16:46:31 +0100
commit784746733a95d847e741a2d74153e99349b52fee (patch)
treedaa5fe51a38a2b1179f4670c17c99c86d8a12eb7 /lualib/lua_magic
parentfe09a19df2ed79058e1171fc1ca52329c411aa9a (diff)
downloadrspamd-784746733a95d847e741a2d74153e99349b52fee.tar.gz
rspamd-784746733a95d847e741a2d74153e99349b52fee.zip
[Feature] Lua_scanners: Use lua magic for inclusion/exclusion logic
Diffstat (limited to 'lualib/lua_magic')
-rw-r--r--lualib/lua_magic/types.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua
index 4ed378ecd..2ee3e62d7 100644
--- a/lualib/lua_magic/types.lua
+++ b/lualib/lua_magic/types.lua
@@ -133,22 +133,27 @@ local types = {
psd = {
ct = 'image/psd',
type = 'image',
+ av_check = false,
},
pcx = {
ct = 'image/pcx',
type = 'image',
+ av_check = false,
},
pic = {
ct = 'image/pic',
type = 'image',
+ av_check = false,
},
tiff = {
ct = 'image/tiff',
type = 'image',
+ av_check = false,
},
ico = {
ct = 'image/ico',
type = 'image',
+ av_check = false,
},
swf = {
ct = 'application/x-shockwave-flash',
@@ -240,18 +245,22 @@ local types = {
png = {
ct = 'image/png',
type = 'image',
+ av_check = false,
},
gif = {
ct = 'image/gif',
type = 'image',
+ av_check = false,
},
jpg = {
ct = 'image/jpeg',
type = 'image',
+ av_check = false,
},
bmp = {
type = 'image',
ct = 'image/bmp',
+ av_check = false,
},
dwg = {
type = 'image',
@@ -261,18 +270,22 @@ local types = {
txt = {
type = 'text',
ct = 'text/plain',
+ av_check = false,
},
html = {
type = 'text',
ct = 'text/html',
+ av_check = false,
},
csv = {
type = 'text',
ct = 'text/csv',
+ av_check = false,
},
eml = {
type = 'message',
ct = 'message/rfc822',
+ av_check = false,
},
}