]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Virus infetction string for F-PROT Antivirus
authorArne Fahrenwalde <macgeneral@macgeneral.de>
Sat, 27 Jan 2018 20:38:19 +0000 (21:38 +0100)
committerArne Fahrenwalde <macgeneral@macgeneral.de>
Sat, 27 Jan 2018 20:38:19 +0000 (21:38 +0100)
Fixes the error "(rspamd_proxy) ; lua; antivirus.lua:396: Unhandled response: 1 <contains infected objects: VIRUSNAME>" and therefore no handled detection

src/plugins/lua/antivirus.lua

index 59ec3ad0d858db072601ab436a09d7c8370a61f2..33c1d738ecbffd0c7f930bf9a40c21c3c6b1ff18 100644 (file)
@@ -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 <infected: (.-)>')
+          local vname = string.match(data, '^1 <contains?%s?infected%s?objects?: (.-)>')
           if not vname then
             rspamd_logger.errx(task, 'Unhandled response: %s', data)
           else