aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-22 13:28:57 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-22 13:28:57 +0000
commitce36e23c2e07c55137ac3fb86e3f63981ddb8460 (patch)
tree645c868919795a893748cdacf376ec3cba8999d7 /src/plugins
parent229cde8387f8aecf5d21ef3a1fcf40ba8c53a156 (diff)
downloadrspamd-ce36e23c2e07c55137ac3fb86e3f63981ddb8460.tar.gz
rspamd-ce36e23c2e07c55137ac3fb86e3f63981ddb8460.zip
[Minor] Use is_attachment where useful
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/antivirus.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua
index 875bd53e6..2aa1f0344 100644
--- a/src/plugins/lua/antivirus.lua
+++ b/src/plugins/lua/antivirus.lua
@@ -1073,7 +1073,7 @@ local function add_antivirus_rule(sym, opts)
local filter_func = function(p)
return (rule.scan_image_mime and p:is_image())
or (rule.scan_text_mime and p:is_text())
- or (p:get_filename())
+ or (p:is_attachment())
end
fun.each(function(p)