commit 0b2f604: [Fix] lua_scanners - kaspersky - response with fname

Carsten Rosenberg c.rosenberg at heinlein-support.de
Thu Jan 17 15:07:25 UTC 2019


Author: Carsten Rosenberg
Date: 2019-01-15 06:22:12 +0100
URL: https://github.com/rspamd/rspamd/commit/0b2f60481830135827d2bc837343cc53f9f887a6

[Fix] lua_scanners - kaspersky - response with fname

---
 lualib/lua_scanners/kaspersky_av.lua | 10 ++--------
 1 file 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


More information about the Commits mailing list