Problems with latest Mail::ClamAV

Daniel Kleinsinger danielk at AVALONPUB.COM
Thu Oct 21 07:57:59 IST 2004


<x-flowed>
Rick Cooper wrote:

> I can't give you a direct patch to fix this because of other patches I
> have
>
>on SweepViruses.pm but if you change the following:
>
>CL_ARCHIVE      to CL_SCAN_ARCHIVE
>CL_OLE2 to CL_SCAN_OLE2
>CL_ENCRYPTED to CL_SCAN_BLOCKENCRYPTED
>
>in /opt/MailScanner/lib/MailScanner/SweepViruses.pm
>
>and reinstall Mail::ClamAV 0.12 you should be up and running. There is NO
>backward compatablity between Mail::ClamAV 0.11 and 0.12 and you MUST have
>clam 0.80 installed prior to installing Mail::ClamAV 0.12
>
I patched it manually and made a diff off a clean SweepViruses.pm from
MailScanner 4.34.8...  As stated, only works with ClamAV 0.80.  Seems to
be working just fine, thanks Rick.

Daniel


------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
</x-flowed>
987c987
<       #$results = $Clam->scan("$dirname/$childname/$filename", Mail::ClamAV::CL_ARCHIVE());
---
>       #$results = $Clam->scan("$dirname/$childname/$filename", Mail::ClamAV::CL_SCAN_ARCHIVE());
989c989
<         $results = $Clam->scan("$dirname/$childname/$filename", Mail::ClamAV::CL_ARCHIVE() | Mail::ClamAV::CL_OLE2());
---
>         $results = $Clam->scan("$dirname/$childname/$filename", Mail::ClamAV::CL_SCAN_ARCHIVE() | Mail::ClamAV::CL_SCAN_OLE2());
991c991
<         $results = $Clam->scan("$dirname/$childname/$filename", Mail::ClamAV::CL_ARCHIVE() | Mail::ClamAV::CL_ENCRYPTED() | Mail::ClamAV::CL_OLE2());
---
>         $results = $Clam->scan("$dirname/$childname/$filename", Mail::ClamAV::CL_SCAN_ARCHIVE() | Mail::ClamAV::CL_SCAN_BLOCKENCRYPTED() | Mail::ClamAV::CL_SCAN_OLE2());

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).



More information about the MailScanner mailing list