[Mimedefang] Multiple AV Scans

Jeff Grossman jeff at stikman.com
Tue Oct 22 17:09:02 EDT 2002


on 10/22/02 1:46 PM, Jeff Grossman at jeff at stikman.com wrote:

> on 10/22/02 11:47 AM, Adam Beatham at adam at backboard.org wrote:
> 
>> This is what I have, which I believe David gave me a while back..
>> 
>> sub message_contains_virus () {
>>        my ($code, $category, $action);
>>        ($code, $category, $action) = message_contains_virus_filescan();
>>        ($code, $category, $action) = message_contains_virus_clamav() if
>> $category ne 'virus';
>>        return ($code, $category, $action) if $category eq 'virus';
>>        return (wantarray ? (0, 'ok', 'ok') : 0);
>> }
>> 
>> sub entity_contains_virus ($) {
>> my ($e) = @_;
>>        ($code, $category, $action) = entity_contains_virus_filescan($e)
>> if $Features{'Virus:FileScan'};
>>        ($code, $category, $action) =
>> entity_contains_virus_clamav($e)   if $Features{'Virus:CLAMAV'} &&
>> $category ne 'virus';
>>        return ($code, $category, $action) if $category eq 'virus';
>>        return (wantarray ? (0, 'ok', 'ok') : 0);
>> }
>> 
>> 
>> then you just call the proper function in the proper part of the filter..
> 
> I must have done something wrong.  With the changes above, I was not able to
> send any mail through the server.

Never mind.  I typed something wrong.  It is now fixed and working.

Jeff
-- 
Jeff Grossman (jeff at stikman.com)




More information about the MIMEDefang mailing list