aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-31 20:45:29 +0000
committerGitHub <noreply@github.com>2018-01-31 20:45:29 +0000
commite5f405519caf3a6a4fa52999ab72a720d5da96a1 (patch)
treedfccf96cff5319ebc68171ba9c22a6f64a5ffce3 /src
parent4da492aa1f5a8e62a344309ad1b264c791e0907b (diff)
parente5140faeba18139e5f534919eead9aa2a0900fb3 (diff)
downloadrspamd-e5f405519caf3a6a4fa52999ab72a720d5da96a1.tar.gz
rspamd-e5f405519caf3a6a4fa52999ab72a720d5da96a1.zip
Merge pull request #2002 from macgeneral/master
[Fix] Virus infection string for F-PROT Antivirus
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/antivirus.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua
index 59ec3ad0d..4b69b8850 100644
--- a/src/plugins/lua/antivirus.lua
+++ b/src/plugins/lua/antivirus.lua
@@ -410,7 +410,9 @@ 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: (.-)>')
+ -- returncodes: 1: infected, 2: suspicious, 3: both, 4-255: some error occured
+ -- see http://www.f-prot.com/support/helpfiles/unix/appendix_c.html for more detail
+ local vname = string.match(data, '^[1-3] <[%w%s]-: (.-)>')
if not vname then
rspamd_logger.errx(task, 'Unhandled response: %s', data)
else