From 93bc89518bf8fd1d7a51335d29d3fb2b9d313917 Mon Sep 17 00:00:00 2001 From: Manuel Dalla Lana Date: Tue, 10 Sep 2024 17:43:14 +0200 Subject: [PATCH] Add missing support for AV engines in Virus Report - f-prot-6 - f-protd-6 - f-secure-12 - esets - esetsefs Partialy fixes issue #1308 --- mailscanner/rep_viruses.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mailscanner/rep_viruses.php b/mailscanner/rep_viruses.php index 829852ee2..2aaffc4b3 100644 --- a/mailscanner/rep_viruses.php +++ b/mailscanner/rep_viruses.php @@ -32,7 +32,7 @@ // Authentication checking require __DIR__ . '/login.function.php'; -// add the header information such as the logo, search, menu, .... +// Add the header information such as the logo, search, menu, .... $filter = html_start(__('virusreport50'), 0, false, true); // Get a list of virus scanners from MailScanner.conf @@ -54,7 +54,6 @@ break; case 'clamd': $scanner[$vscanner]['name'] = 'ClamD'; - // ORIG#$scanner[$vscanner]['regexp'] = "/(?P.+) contains (?P\S+)/"; $scanner[$vscanner]['regexp'] = "/(?P.+) was infected: (?P\S+)/"; break; case 'clamavmodule': @@ -62,6 +61,8 @@ $scanner[$vscanner]['regexp'] = "/(?P.+) was infected: (?P\S+)/"; break; case 'f-prot': + case 'f-prot-6': + case 'f-protd-6': $scanner[$vscanner]['name'] = 'F-Prot'; $scanner[$vscanner]['regexp'] = "/(?P.+) Infection: (?P\S+)/"; break; @@ -71,6 +72,7 @@ $scanner[$vscanner]['regexp'] = "/(?P.+) Found the (?P\S+) (trojan|virus) !!!/"; break; case 'f-secure': + case 'f-secure-12': $scanner[$vscanner]['name'] = 'F-Secure'; $scanner[$vscanner]['regexp'] = "/(?P.+) Infected: (?P\S+)/"; break; @@ -110,6 +112,11 @@ $scanner[$vscanner]['name'] = 'Avast'; $scanner[$vscanner]['regexp'] = '/Avast: found (?P.*) in (?P.*)/'; break; + case 'esets': + case 'esetsefs': + $scanner[$vscanner]['name'] = 'ESET'; + $scanner[$vscanner]['regexp'] = '/Esets: found (?P\S+) in (?P\S+)/'; + break; } }