aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-01-15 06:22:12 +0100
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-01-15 06:22:12 +0100
commit0b2f60481830135827d2bc837343cc53f9f887a6 (patch)
tree74917eb6a7f92c8dd89878f6e7e973b04a792f6c
parentc4d515fe621fbf6e4e419ce6e56a7cc64d4e1015 (diff)
downloadrspamd-0b2f60481830135827d2bc837343cc53f9f887a6.tar.gz
rspamd-0b2f60481830135827d2bc837343cc53f9f887a6.zip
[Fix] lua_scanners - kaspersky - response with fname
-rw-r--r--lualib/lua_scanners/kaspersky_av.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/lualib/lua_scanners/kaspersky_av.lua b/lualib/lua_scanners/kaspersky_av.lua
index 9713daa52..243459345 100644
--- a/lualib/lua_scanners/kaspersky_av.lua
+++ b/lualib/lua_scanners/kaspersky_av.lua
@@ -148,15 +148,9 @@ local function kaspersky_check(task, content, digest, rule)
local cached
lua_util.debugm(rule.module_name, task, '%s [%s]: got reply: %s',
rule['symbol'], rule['type'], data)
- if data == 'stream: OK' then
+ if data == 'stream: OK' or data == fname .. ': OK' then
cached = 'OK'
- if rule['log_clean'] then
- rspamd_logger.infox(task, '%s [%s]: message or mime_part is clean',
- rule['symbol'], rule['type'])
- else
- lua_util.debugm(rule.module_name, task, '%s [%s]: message or mime_part is clean',
- rule['symbol'], rule['type'])
- end
+ common.log_clean(task, rule)
else
local vname = string.match(data, ': (.+) FOUND')
if vname then