[Mimedefang] Simplifying installations re: $Features{}

Philip Prindeville philipp_subx at redfish-solutions.com
Thu Nov 17 00:59:46 EST 2011


On 11/16/11 2:07 AM, Tilman Schmidt wrote:
> $Features{'Virus:CLAMD'} = '/usr/sbin/clamd';
> $Features{'Virus:CLAMAV'} = '/usr/bin/clamscan';
> 
> Works great.


For what it's worth, I think most of the $Feature{} tests just care about true/false...

Actually, no, not quite.  Some of the values are actually used:

    my($code, $category, $action) = run_virus_scanner($Features{'Virus:AVP5'} . " -s -p /var/run/aveserver $path 2>&1","INFECTED");

and:

    chdir($Features{'Path:SPOOLDIR'});

but Virus:CLAMD is definitely only ever used as a boolean.

-Philip




More information about the MIMEDefang mailing list