[Mimedefang] md 2.7 works w/ file::scan
Rich West
Rich.West at divatv.com
Fri Apr 12 23:23:08 EDT 2002
Just curious, but which is better: placing this particular check in
filter_begin() or in filter()?
-Rich
Douglas J Hunley wrote:
>Just thought I'd let everyone know that integrating file::scan is fairly
>simple with 2.7
>My mimedefang-filter looks like:
>sub filter_begin {
>...
>my($code, $category, $action) = message_contains_virus_filescan();
>if ($category eq "virus") {
>action_quarantine_entire_message();
>action_bounc("Message appears to contain a virus, rejected");
>}
>...
>}
>
>I tested it with a fake EICAR virus, and sure enough it got bounced back with
>the above error!
>
>Good job!
>
--
Richard West mailto:richard.west at divatv.com
Sr. Systems Administrator
Diva - Princeton, NJ http://www.divatv.com
More information about the MIMEDefang
mailing list