diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-22 13:28:57 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-22 13:28:57 +0000 |
commit | ce36e23c2e07c55137ac3fb86e3f63981ddb8460 (patch) | |
tree | 645c868919795a893748cdacf376ec3cba8999d7 /lualib/lua_fuzzy.lua | |
parent | 229cde8387f8aecf5d21ef3a1fcf40ba8c53a156 (diff) | |
download | rspamd-ce36e23c2e07c55137ac3fb86e3f63981ddb8460.tar.gz rspamd-ce36e23c2e07c55137ac3fb86e3f63981ddb8460.zip |
[Minor] Use is_attachment where useful
Diffstat (limited to 'lualib/lua_fuzzy.lua')
-rw-r--r-- | lualib/lua_fuzzy.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_fuzzy.lua b/lualib/lua_fuzzy.lua index bd601c038..325a8ff6c 100644 --- a/lualib/lua_fuzzy.lua +++ b/lualib/lua_fuzzy.lua @@ -300,7 +300,7 @@ exports.check_mime_part = function(task, part, rule_id) return true,false end - if part:get_filename() then + if part:is_attachment() then return mime_types_check(task, part, rule) end |