aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-03-03 21:31:51 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-03-03 21:31:51 +0300
commit43fcc33524f1cf013e90a58da32715b753d0817b (patch)
tree1d2232d057daac3972f798d338d8a94b2df60fa7 /src/plugins
parent93c8d14a6b04ef0325dc62e11ab19156b4ba962b (diff)
downloadrspamd-43fcc33524f1cf013e90a58da32715b753d0817b.tar.gz
rspamd-43fcc33524f1cf013e90a58da32715b753d0817b.zip
[Minor] Add more non-standard CTs to full_extensions_map
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/mime_types.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 6c4ceec73..24a478b9a 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -308,7 +308,7 @@ local full_extensions_map = {
{"dlm", "text/dlm"},
{"doc", "application/msword"},
{"docm", "application/vnd.ms-word.document.macroEnabled.12"},
- {"docx", {"application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword"}},
+ {"docx", {"application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword", "application/vnd.ms-word.document.12", "application/octet-stream"}},
{"dot", "application/msword"},
{"dotm", "application/vnd.ms-word.template.macroEnabled.12"},
{"dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"},
@@ -584,7 +584,7 @@ local full_extensions_map = {
{"qxd", "application/octet-stream"},
{"ra", "audio/x-pn-realaudio"},
{"ram", "audio/x-pn-realaudio"},
- {"rar", {"application/x-rar-compressed", "application/octet-stream"}},
+ {"rar", {"application/x-rar-compressed", "application/x-rar", "application/octet-stream"}},
{"ras", "image/x-cmu-raster"},
{"rat", "application/rat-file"},
{"rc", "text/plain"},
@@ -668,7 +668,7 @@ local full_extensions_map = {
{"tgz", "application/x-compressed"},
{"thmx", "application/vnd.ms-officetheme"},
{"thn", "application/octet-stream"},
- {"tif", "image/tiff"},
+ {"tif", {"image/tiff", "application/octet-stream"}},
{"tiff", "image/tiff"},
{"tlh", "text/plain"},
{"tli", "text/plain"},
@@ -690,7 +690,7 @@ local full_extensions_map = {
{"vbk", "video/mpeg"},
{"vbproj", "text/plain"},
{"vbs", "text/vbscript"},
- {"vcf", "text/x-vcard"},
+ {"vcf", {"text/x-vcard", "text/vcard"}},
{"vcproj", "application/xml"},
{"vcs", "text/plain"},
{"vcxproj", "application/xml"},