....
 

Guardian Digital Inc. > InfoCenter > Mailing List Archives > Amavis

Amavis Mailing List Archive

From: Mark Martinec (Mark.Martinec+amavis@ijs.si)
Date: Tue Dec 21 2004 - 08:54:29 EST


Jefferson,

> When I was using amavis-ng I was using both clamd and File::Scan to
> check e-mails. However I don't see support for File::Scan in the
> amavisd-new config file. Can I use it with amavisd-new?

You can add the following entry to the @av_scanners list,
if you believe using File::Scan is worth it:

  ['File::Scan', sub {Amavis::AV::ask_av(sub{
     use File::Scan; my($fn)=@_;
     my($f)=File::Scan->new(max_txt_size=>0, max_bin_size=>0);
     my($vname) = $f->scan($fn);
     $f->error ? (2,"Error: ".$f->error)
     : ($vname ne '') ? (1,"$vname FOUND") : (0,"Clean")}, @_) },
     ["{}/*"], [0], [1], qr/^(.*) FOUND$/ ],

Mark

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/



[ About Guardian Digital ] - [ Press Center ] - [ Contact Us ] - [ System Activation ] - [ Reseller Info ] - [ Online Store ] - [ Site Map ]
Copyright (c) 2000 - 2004 Guardian Digital, Inc. Linux Lockbox and EnGarde are Trademarks of Guardian Digital, Inc.