diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-03-03 21:31:51 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-03-03 21:31:51 +0300 |
commit | 43fcc33524f1cf013e90a58da32715b753d0817b (patch) | |
tree | 1d2232d057daac3972f798d338d8a94b2df60fa7 /src/plugins | |
parent | 93c8d14a6b04ef0325dc62e11ab19156b4ba962b (diff) | |
download | rspamd-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.lua | 8 |
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"}, |