From e07402367df5174f5c6650723588458c5eaf861f Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Tue, 2 Aug 2016 11:26:49 +0300 Subject: [PATCH] [Fix] Ignore content type/subtype case to comply with RFC 2045 --- src/plugins/lua/mime_types.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index 1395149b6..e1b2123f4 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -147,7 +147,7 @@ local function check_mime_type(task) else -- Check for attachment local filename = p:get_filename() - local ct = string.format('%s/%s', mtype, subtype) + local ct = string.format('%s/%s', mtype, subtype):lower() if filename then filename = filename:gsub('[^%s%g]', '?') -- 2.39.5