From: Arne Fahrenwalde Date: Sat, 27 Jan 2018 20:38:19 +0000 (+0100) Subject: [Fix] Virus infetction string for F-PROT Antivirus X-Git-Tag: 1.7.0~228^2~2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9cbac1670d70a803472664d57b4fd7476596aeda;p=thirdparty%2Frspamd.git [Fix] Virus infetction string for F-PROT Antivirus Fixes the error "(rspamd_proxy) ; lua; antivirus.lua:396: Unhandled response: 1 " and therefore no handled detection --- diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 59ec3ad0d8..33c1d738ec 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -410,7 +410,7 @@ local function fprot_check(task, rule) rspamd_logger.infox(task, '%s [%s]: message is clean', rule['symbol'], rule['type']) end else - local vname = string.match(data, '^1 ') + local vname = string.match(data, '^1 ') if not vname then rspamd_logger.errx(task, 'Unhandled response: %s', data) else