This works fine for me and kav 4.5 just replace the sub-avp.pl file with these one. regards mandy
sub avp_scanner {
#Kaspersky AVPLinux scanner Version 4.5
&debug("kasp: starting scan of directory \"$ENV{'TMPDIR'}\"...");
my ($start_avp_time)=[gettimeofday];
my ($avp_verbose,$DD,$avp_status,$stop_avp_time,$avp_time);
$avp_verbose="" if ($DEBUG);
&debug("run $avp_binary -i0 -xp $avp_verbose $ENV{'TMPDIR'} 2>&1");
$DD=`$avp_binary -i0 -xp $avp_verbose $ENV{'TMPDIR'} 2>&1`;
$avp_status=($? >> 8);
&debug("--output of avp was:\n$DD--");
if ( $avp_status > 0 ) {
if ($avp_status =~ /^(0|5|20|21|25)$/) {
#This covers the potential viruses
$quarantine_description="suspicious";
if ($DD =~ /\n[\s|](.*) (INFECTED) (.*)\n/) {
$quarantine_description=$3;
} elsif ($DD =~ /\n[\s|](.*) (suspicion): (.*)\n/) {
#This covers the specific
$destring='Suspicious file:';
$quarantine_description=$3;
}
&debug("There be a $destring! ($quarantine_description)");
($quarantine_event=$quarantine_description)=~s/\s/_/g;
$quarantine_event="AVP:".substr($quarantine_event,0,$QE_LEN);
} else {
&error_condition("corrupt or unknown Kaspersky scanner error or memory/resource/perms problems - exit status $avp_status");
}
}
$stop_avp_time=[gettimeofday];
$avp_time = tv_interval ($start_avp_time, $stop_avp_time);
&debug("\n kasp: finished scan of dir \"$ENV{'TMPDIR'}\" in $avp_time secs");
}
Nerijus Baliunas wrote:
Erik Wasser wrote:
My kavscanner doesn't know any this options so my question is: which version of kavscanner is supported by qmail-scanner-1.20rc4?
4.0.x, not 4.5.
Nerijus
#
------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
