diff options
author | Arne Fahrenwalde <macgeneral@macgeneral.de> | 2018-01-27 21:38:19 +0100 |
---|---|---|
committer | Arne Fahrenwalde <macgeneral@macgeneral.de> | 2018-01-27 22:27:03 +0100 |
commit | 9f1a7beb7c14034caa2fca67a547bef80fbe675c (patch) | |
tree | 45e1b7b34399bbf8b4bb6b2832fa4b41305a4c16 | |
parent | c5956e2dce02f6089d1fb7c8415f5eb785928daf (diff) | |
download | rspamd-9f1a7beb7c14034caa2fca67a547bef80fbe675c.tar.gz rspamd-9f1a7beb7c14034caa2fca67a547bef80fbe675c.zip |
[Fix] Virus infection string for F-PROT Antivirus
Fixes the error "(rspamd_proxy) ; lua; antivirus.lua:396: Unhandled response: 1 <contains infected objects: VIRUSNAME>" and therefore no handled detection
-rw-r--r-- | src/plugins/lua/antivirus.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 59ec3ad0d..33c1d738e 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 <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 |