diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-31 11:25:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-31 11:25:43 +0000 |
commit | e9c96fdb286727b1a95b8484e7d4e2877bbc3629 (patch) | |
tree | ad3884fdcb74e1e1337d6dae22318c066cd8da0c /lualib/lua_scanners/kaspersky_av.lua | |
parent | 28c372c37e8c0f68be76111bbac99996f09dbf0b (diff) | |
download | rspamd-e9c96fdb286727b1a95b8484e7d4e2877bbc3629.tar.gz rspamd-e9c96fdb286727b1a95b8484e7d4e2877bbc3629.zip |
[Minor] Lua_scanners: Add more generic yield result
Diffstat (limited to 'lualib/lua_scanners/kaspersky_av.lua')
-rw-r--r-- | lualib/lua_scanners/kaspersky_av.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lualib/lua_scanners/kaspersky_av.lua b/lualib/lua_scanners/kaspersky_av.lua index b55b6c24c..e903467c2 100644 --- a/lualib/lua_scanners/kaspersky_av.lua +++ b/lualib/lua_scanners/kaspersky_av.lua @@ -26,7 +26,7 @@ local rspamd_util = require "rspamd_util" local rspamd_logger = require "rspamd_logger" local common = require "lua_scanners/common" -local N = "antivirus" +local N = "kaspersky" local default_message = '${SCANNER}: virus found: "${VIRUS}"' @@ -41,6 +41,7 @@ local function kaspersky_config(opts) retransmits = 1, -- use local files, retransmits are useless cache_expire = 3600, -- expire redis in one hour message = default_message, + detection_category = "virus", tmpdir = '/tmp', prefix = 'rs_ak', } @@ -170,7 +171,7 @@ local function kaspersky_check(task, content, digest, rule) }) end - if common.need_av_check(task, content, rule) then + if common.need_av_check(task, content, rule, N) then if common.check_av_cache(task, digest, rule, kaspersky_check_uncached, N) then return else |