Johnson, Robert F wrote:
Can mimedefang-filter be modified to run virus scanning in filter
instead of filter-begin?  I have tried just moving the code to Filter
but it doesn't work.  Are there any samples for this type of
implementation?

It should be possible. However, you can't just move the code around. The code in filter_begin works on entire message (message_contains_virus()). If you move virus scanning to filter, than you will be scanning each part of the message separately, so you need to call entity_contains_virus($entity) instead.


Conversely can the bad_filetype filtering (including zip file scanning)
be run in Filter-Begin instead if Filter?

Not really.

--
Aleksandar Milivojevic <[EMAIL PROTECTED]>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to