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/sophos.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/sophos.lua')
-rw-r--r-- | lualib/lua_scanners/sophos.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lualib/lua_scanners/sophos.lua b/lualib/lua_scanners/sophos.lua index ef4acb3aa..c805cc56f 100644 --- a/lualib/lua_scanners/sophos.lua +++ b/lualib/lua_scanners/sophos.lua @@ -25,7 +25,7 @@ local upstream_list = require "rspamd_upstream_list" local rspamd_logger = require "rspamd_logger" local common = require "lua_scanners/common" -local N = "antivirus" +local N = "sophos" local default_message = '${SCANNER}: virus found: "${VIRUS}"' @@ -41,6 +41,7 @@ local function sophos_config(opts) cache_expire = 3600, -- expire redis in one hour message = default_message, savdi_report_encrypted = false, + detection_category = "virus", savdi_report_oversize = false, } @@ -168,7 +169,7 @@ local function sophos_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, sophos_check_uncached, N) then return else |