From: Alexander Moisseev Date: Sat, 3 Mar 2018 18:31:51 +0000 (+0300) Subject: [Minor] Add more non-standard CTs to full_extensions_map X-Git-Tag: 1.7.0~73^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=43fcc33524f1cf013e90a58da32715b753d0817b;p=rspamd.git [Minor] Add more non-standard CTs to full_extensions_map --- 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"},