diff options
author | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-01-15 06:22:12 +0100 |
---|---|---|
committer | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-01-15 06:22:12 +0100 |
commit | 0b2f60481830135827d2bc837343cc53f9f887a6 (patch) | |
tree | 74917eb6a7f92c8dd89878f6e7e973b04a792f6c | |
parent | c4d515fe621fbf6e4e419ce6e56a7cc64d4e1015 (diff) | |
download | rspamd-0b2f60481830135827d2bc837343cc53f9f887a6.tar.gz rspamd-0b2f60481830135827d2bc837343cc53f9f887a6.zip |
[Fix] lua_scanners - kaspersky - response with fname
-rw-r--r-- | lualib/lua_scanners/kaspersky_av.lua | 10 |
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 |