From: Vsevolod Stakhov Date: Mon, 5 Nov 2018 18:12:49 +0000 (+0000) Subject: [Minor] Do not bother about parts with no filename X-Git-Tag: 1.8.2~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b27fdf29b65e24ea775bfe1471c7adc1624b7f92;p=thirdparty%2Frspamd.git [Minor] Do not bother about parts with no filename --- diff --git a/lualib/lua_fuzzy.lua b/lualib/lua_fuzzy.lua index 30ec278c81..fadf4fa6ab 100644 --- a/lualib/lua_fuzzy.lua +++ b/lualib/lua_fuzzy.lua @@ -240,7 +240,11 @@ exports.check_mime_part = function(task, part, rule_id) return true,false end - return mime_types_check(task, part, rule) + if part:get_filename() then + return mime_types_check(task, part, rule) + end + + return false,false end return exports \ No newline at end of file