Browse Source

[Fix] lua_scanners - kaspersky - response with fname

tags/1.9.0
Carsten Rosenberg 5 years ago
parent
commit
0b2f604818
1 changed files with 2 additions and 8 deletions
  1. 2
    8
      lualib/lua_scanners/kaspersky_av.lua

+ 2
- 8
lualib/lua_scanners/kaspersky_av.lua View File

@@ -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

Loading…
Cancel
Save