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_meta.lua | |
parent | 229cde8387f8aecf5d21ef3a1fcf40ba8c53a156 (diff) | |
download | rspamd-ce36e23c2e07c55137ac3fb86e3f63981ddb8460.tar.gz rspamd-ce36e23c2e07c55137ac3fb86e3f63981ddb8460.zip |
[Minor] Use is_attachment where useful
Diffstat (limited to 'lualib/lua_meta.lua')
-rw-r--r-- | lualib/lua_meta.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_meta.lua b/lualib/lua_meta.lua index f2b008dd4..316c71d3d 100644 --- a/lualib/lua_meta.lua +++ b/lualib/lua_meta.lua @@ -103,7 +103,7 @@ local function meta_nparts_function(task) if parts then for _,p in ipairs(parts) do - if p:get_filename() then + if p:is_attachment() then nattachments = nattachments + 1 end totalparts = totalparts + 1 |