diff options
author | Arne Fahrenwalde <macgeneral@macgeneral.de> | 2018-01-28 01:48:46 +0100 |
---|---|---|
committer | Arne Fahrenwalde <macgeneral@macgeneral.de> | 2018-01-28 01:48:46 +0100 |
commit | 03cd15ca59b6d6e20537fb17ed9cf1b296fd78f5 (patch) | |
tree | f2cc7a416b117fd64a46dcf1123dce8f1231f688 /src/plugins | |
parent | f62c83448a0990e8c55bb95550fac72c7459dff6 (diff) | |
download | rspamd-03cd15ca59b6d6e20537fb17ed9cf1b296fd78f5.tar.gz rspamd-03cd15ca59b6d6e20537fb17ed9cf1b296fd78f5.zip |
[Fix] F-PROT Antivirus infection string for all known occurences
both <infected: ...> and <contains infected object: ...> are possible
Diffstat (limited to 'src/plugins')
-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 33c1d738e..c35b8cfd6 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 <contains?%s?infected%s?objects?: (.-)>') + local vname = string.match(data, '^1 <.*infected.*: (.-)>') if not vname then rspamd_logger.errx(task, 'Unhandled response: %s', data) else |