Re: [Clamav-users] Mail::ClamAV perl module available

2003-10-17 Thread Tomasz Kojm
On Thu, 16 Oct 2003 18:29:46 -0700
Alex Krohn <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> We've put together a perl module that provides access to almost all of
> the C API for ClamAV. For example:

Hi,

there is (yet) undocumented but very useful feature in libclamav that
allows db dir monitoring:


initialization:
struct cl_stat dbstat;
cl_statinidir(dbdir, &dbstat);

verification:
if(cl_statchkdir(&dbstat) == 1) {
reload_the_database;
reinitialize_dbstat:
cl_statfree(&dbstat);
cl_statinidir(dbdir, &dbstat);
}

Also: could you please create a patch for amavisd-new that uses your
module ? (It should handle db changes).

Best regards,
Tomasz Kojm
-- 
  oo.   [EMAIL PROTECTED]
 (\/)\. http://www.konarski.edu.pl/~zolw
\..._   I nie zapomnij kliknac w brzuszek... 
  //\   /\\ <- C. Amboinensiswww.pajacyk.pl


---
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


[Clamav-users] Mail::ClamAV perl module available

2003-10-16 Thread Alex Krohn
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