[Mimedefang] action_replace_with_url
bart
bartoszx at euro26.pl
Sat Mar 5 10:15:21 EST 2005
Witaj Kevin,
W Twoim licie datowanym 5 marca 2005 (15:04:47) mo¿na przeczytaæ:
> Bart,
> I think you might benefit from a syntax check of your milter by running the
> following command with appropriate modifications for your installation's
> location of your filter.
> mimedefang.pl -f /etc/mail/mimedefang-filter -test
Yap
There were too much brackets
Now is ok but still not workig as it should
I sent 10MB file and nothing happen.
I looked again in doc
"
action_replace_with_url($entity, $doc_root, $base_url, $msg, [$cd_data]) - Drop the part, but save it in a unique location under $doc_root. The part is replaced with the text message $msg. The string "_URL_" in $msg is replaced with $base_url/something, which can be used to retrieve the message.
You should not use this function in filter_multipart.
This action is intended for stripping large parts out of the message and replacing them to a link on a Web server. Here's how you would use it in filter():
$size = (stat($entity->bodyhandle->path))[7];
if ($size > 1000000) {
action_replace_with_url($entity,
"/home/httpd/html/mail_parts",
"http://mailserver.company.com/mail_parts",
"The attachment was larger than 1,000,000 bytes.\n" .
"It was removed, but may be accessed at this URL:\n\n" .
"\t_URL_\n");
}
"
So regarding your changes to code all should work but doesnt
WHat can I do more?
More information about the MIMEDefang
mailing list