Hi,
We've put together a perl module that provides access to almost all of the
C API for ClamAV. For example:
my $scanner = Mail::ClamAV->new("/path/to/virus/db/");
$scanner->buildtrie;
my $status = $scanner->scan("/path/to/file");
if ($status->virus) {
print "Found: $status virus\n";
}
else {
print "No virus found.\n";
}
It also supports scanning file handles or scalar variables.
Version 0.0.4 just went up today, you can grab it off your local CPAN
mirror or at:
http://cpan.gossamer-threads.com/modules/by-authors/id/S/SA/SABECK/Mail-ClamAV-0.04.tar.gz
and you can see the documentation at:
http://cpan.gossamer-threads.com/modules/by-authors/id/S/SA/SABECK/Mail-ClamAV-0.04.readme
Cheers,
Alex
--
Alex Krohn <[EMAIL PROTECTED]>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users