Kyle Wheeler wrote:

On Wed, Oct 13, 2004 at 12:09:08PM -0400, Jim Maul quoth:

I just upgraded my clamav from 0.75-1 to 0.80rc4 and now when i run /var/qmail/bin/qmail-scanner-queue.pl -z, any mention of clamav has been removed from this file. It really isnt that much of a problem because mail is still be scanned for viruses but the clamav header info is now missing from each email. It was nice to see there just to provide a little assurance that the email was indeed virus scanned. Now it appears that it was not even though it actually was. Does anyone know why running qmail-scanner-queue.pl -z would remove all mention of clamav from this file?


Sure - clamav changed the format of their version information. Because qmail-scanner couldn't parse the new version string, it ignored it. If you like, edit /var/spool/qmailscan/qmail-scanner-queue-version.txt by hand to put the right versions in there.

which will work until the next time -z runs

The fix is easy until future QS 1.2x adjusts for the ClamAV change

Edit qmail-scanner-queue.pl
From:

} elsif ($scanner eq "clamscan") {
open(CLAMS,"$clamscan_binary --stdout -V|")||die "failed to call $clamscan_binary --stdout -V - $!";
while (<CLAMS>) {
chomp;
if (/ersion ([0-9\.\-a-z]+)/i) {
$SCANINFO .="clamscan: $1. ";
}
}
close(CLAMS);
} elsif ($scanner eq "clamdscan") {
open(CLAMS,"$clamdscan_binary --version 2>&1|")||die "failed to call $clamdscan_binary --version - $!";
while (<CLAMS>) {
chomp;
if (/ersion ([0-9\.\-a-z]+)/i) {
$SCANINFO .="clamdscan: $1. ";
}
}
close(CLAMS);



TO:

} elsif ($scanner eq "clamscan") {
open(CLAMS,"$clamscan_binary --stdout -V|")||die "failed to call $clamscan_binary --stdout -V - $!";
while (<CLAMS>) {
chomp;
if (/ClamAV ([0-9\.\-a-z]+)/i) {
$SCANINFO .="clamscan: $1. ";
}
}
close(CLAMS);
} elsif ($scanner eq "clamdscan") {
open(CLAMS,"$clamdscan_binary --version 2>&1|")||die "failed to call $clamdscan_binary --version - $!";
while (<CLAMS>) {
chomp;
if (/ClamAV ([0-9\.\-a-z]+)/i) {
$SCANINFO .="clamdscan: $1. ";
}
}
close(CLAMS);



------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to