[Mimedefang] Replace Large Attachments with URL's

David F. Skoll dfs at roaringpenguin.com
Wed Jul 3 17:21:19 EDT 2002


On Wed, 3 Jul 2002, Kurt Kesler wrote:

> Well, I added it into the filter section and restarted.  Testing showed
> no errors but it still does not appear to function.  Here is the
> relevant section:

>     # Clean up HTML if Anomy::HTMLCleaner is installed.
>     if ($Features{"HTMLCleaner"}) {
>         if ($type eq "text/html") {
>             return anomy_clean_html($entity);
>         }
> #Added section for dealing with large attachments

Right; this is in the 'if ($Features{"HTMLCleaner"}) {' arm.  So it won't
get executed unless you happen to have Anomy::HTMLCleaner installed.

Don't forget: The filter is Perl code.  You have to write valid Perl
code to get it to work; you can't just cut-and-paste code anywhere.
If you need assistance with your filter, I suggest you ask a local
Perl expert or post on this list.  You want your size check in the
filter() sub, but outside any other conditional statement.

Regards,

David.





More information about the MIMEDefang mailing list