Sophos and PDF revisited

Dustin Baer dustin.baer at IHS.COM
Thu Aug 7 21:59:09 IST 2003


Julian Field wrote:
>
> Please try this patch to SweepViruses.pm.
>
> --- SweepViruses.pm    2003-08-05 21:42:19.000000000 +0100
> +++ SweepViruses.pm.new     2003-08-07 21:00:09.000000000 +0100
> @@ -961,8 +961,13 @@
>     # If the error is one of the allowed errors, then don't report any
>     # infections on this file.
>     if ($error ne "") {
> +    # Treat their string as a list of words, any of which can match
>       my $errorlist = MailScanner::Config::Value('sophosallowederrors');
> -    if ($errorlist && $errorlist =~ /$error/) {
> +    $errorlist =~ s/\s+/ /g;
> +    $errorlist =~ s/[^0-9A-Za-z ]/\\$&/g;
> +    $errorlist =~ s/ /\|/g;
> +    #if ($errorlist ne "" && $errorlist =~ /$error/) {
> +    if ($errorlist ne "" && $error =~ /$errorlist/) {
>         MailScanner::Log::WarnLog("Ignored Sophos '%s' error", $error);
>         return 0;
>       }

Julian,

This patch works.   Thanks for your assistance!

Dustin
--
Dustin Baer
Unix Administrator/Postmaster
Information Handling Services
15 Inverness Way East
Englewood, CO 80112
303-397-2836



More information about the MailScanner mailing list