[Mimedefang] Simplifying installations re: $Features{}

Tilman Schmidt t.schmidt at phoenixsoftware.de
Thu Nov 17 04:52:24 EST 2011


Am 17.11.2011 06:59, schrieb Philip Prindeville:
> 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...

The scan methods that start a new process for every scan (like
'Virus:CLAMAV') use the $Feature{} value to find the executable.
Those that contact a daemon through a socket (like 'Virus:CLAMD') have
the daemon's executable in their $Feature{} entry just by convention,
and do indeed just use it as a boolean. They have a separate variable
(like $ClamdSock) for the socket address if necessary.

-- 
Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany



More information about the MIMEDefang mailing list