[Mimedefang] Check extensions beforer virus scan

Kelson Vibber kelson at speed.net
Tue Jan 27 18:20:12 EST 2004


At 02:25 PM 1/27/2004, Jim McCullars wrote:
>So I guess the answer is in filter(), just change the order of the
>virus scan and the bad_ext check, but leave the code in filter_begin()
>alone.

Alternatively, remove the calls in filter_begin, then entity_contains_virus 
out of the "if ($FoundVirus)" block.  On one hand,
you do scan each entity individually.  On the other, you don't scan 
anything that you're already deleting.

Kelson Vibber
SpeedGate Communications <www.speed.net> 




More information about the MIMEDefang mailing list