[Mimedefang] Replacing large attachments.

Martin Ferguson martin at mve.com
Wed Mar 19 06:35:01 EST 2003


Does anyone have a working filter for replacing large attachment with a
URL, I have the following:

#Added section for dealing with large attachments
#**********************************************************************
 $size = (stat($entity->bodyhandle->path))[7];
 if ($size > 1500000) {
        return action_replace_with_url($entity,
        "/var/www/html/attachments/",
        "http://my.server.com/attachments/",
        "The attachment $fname was larger than 1,500,000 bytes.\n" .
        "It was removed, but may be accessed at this URL:\n\n" .
        "\t_URL_\n");
}

However it doesn't seem to do anything, where in the mimedefang-filter
file should this be placed?

Thanks
Martin.




More information about the MIMEDefang mailing list