diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-06 12:42:06 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-06 12:42:06 +0100 |
commit | a3b5ad3d3be5f44996d247e7b1486fcc9f8ba7e3 (patch) | |
tree | 996e39b86863fafa2d80fb0753d6469e86a0eafb /src/plugins/lua/antivirus.lua | |
parent | 0f57c944b0338b51a3cb6c37b8fa84508f75f8a9 (diff) | |
download | rspamd-a3b5ad3d3be5f44996d247e7b1486fcc9f8ba7e3.tar.gz rspamd-a3b5ad3d3be5f44996d247e7b1486fcc9f8ba7e3.zip |
[Feature] Allow to save and show attachment name when inserting AV scan results
Diffstat (limited to 'src/plugins/lua/antivirus.lua')
-rw-r--r-- | src/plugins/lua/antivirus.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 18d41dbb6..56bd4b520 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -136,7 +136,7 @@ local function add_antivirus_rule(sym, opts) fun.each(function(p) local content = p:get_content() if content and #content > 0 then - cfg.check(task, content, p:get_digest(), rule) + cfg.check(task, content, p:get_digest(), rule, p) end end, common.check_parts_match(task, rule)) @@ -266,7 +266,7 @@ if opts and type(opts) == 'table' then }) end end - end + end if m['score'] then -- Register metric symbol local description = 'antivirus symbol' |