From e9c96fdb286727b1a95b8484e7d4e2877bbc3629 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 31 Dec 2018 11:25:43 +0000 Subject: [Minor] Lua_scanners: Add more generic yield result --- lualib/lua_scanners/kaspersky_av.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lualib/lua_scanners/kaspersky_av.lua') 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 -- cgit v1.2.3