CustomConfig.pm

Clive Eisen clive at SERENDIPITA.COM
Tue Apr 13 14:51:16 IST 2004


All,

I have written a trivial function to customise Infected Header Value

Infected Header Value    = &IFHValue


sub IFHValue {
my($message) = @_;

if ( $message->{virusinfected} ) {
        return 'MY_VIRUS';
        } else {
        return 'MY_POLICY';
        }
}

I have also created
sub InitIFHValue {return 0;}
and
sub EndIFHValue {return 0;}


However it always returns MY_POLICY even when I know the message
contained a virus

Whatever I do I can't seem to get message->{visrusinfected} to be
anything other than 0

On checking it seems that  message->{nameinfected} is always 1 when a
virus is present, but it is also 1 when it's just a 'safe' .exe or whatever.

No doubt I'm missing something very simple.

Anyone have clue as to what I'm missing?

TIA

--
Clive



More information about the MailScanner mailing list