aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-16 11:19:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-16 11:24:20 +0100
commit229cf1c94b1879d92028735d46da3a9021f97c29 (patch)
tree5f4290e0603f817c25633d29ce0237b20b373437 /lualib/lua_magic
parentef16ff4ddd6f12dc2d6bc0bd5cc2dae5b219d592 (diff)
downloadrspamd-229cf1c94b1879d92028735d46da3a9021f97c29.tar.gz
rspamd-229cf1c94b1879d92028735d46da3a9021f97c29.zip
[Fix] Add a special logic for text part with no text extraction
Diffstat (limited to 'lualib/lua_magic')
-rw-r--r--lualib/lua_magic/types.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua
index f082a53e5..09c93effc 100644
--- a/lualib/lua_magic/types.lua
+++ b/lualib/lua_magic/types.lua
@@ -287,6 +287,7 @@ local types = {
xml = {
ct = 'application/xml',
type = 'text',
+ no_text = true,
},
txt = {
type = 'text',
@@ -302,16 +303,19 @@ local types = {
type = 'text',
ct = 'text/csv',
av_check = false,
+ no_text = true,
},
ics = {
type = 'text',
ct = 'text/calendar',
av_check = false,
+ no_text = true,
},
vcf = {
type = 'text',
ct = 'text/vcard',
av_check = false,
+ no_text = true,
},
eml = {
type = 'message',