]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add more non-standard CTs to full_extensions_map 2055/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 3 Mar 2018 18:31:51 +0000 (21:31 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 3 Mar 2018 18:31:51 +0000 (21:31 +0300)
src/plugins/lua/mime_types.lua

index 6c4ceec73fc69da6efdb0662f4c95c02a9fd2265..24a478b9ad0439890c703b1922f352579a724294 100644 (file)
@@ -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"},