[Mimedefang] action_replace_with_url
bart
bartoszx at euro26.pl
Fri Mar 4 13:03:53 EST 2005
Hi Kevin,
I am completly new in mimedefang. I dont know how to use your code.
Where do I have to put action_replace_with_url ?
Thanks for your patience
> Bart,
> Assuming the problem might be with your filesize code, I've had good luck
> with this routine:
> my($sizelimit, $bh, $path);
> $sizelimit = 1048576; #1MB #max size of an email you want to check in
> bytes
> $bh = $entity->bodyhandle();
> if (defined($bh)) {
> $path = $bh->path();
> }
> if (defined($path)) {
> if (-s $path <= $sizelimit) {
> }
> }
> Regards,
> KAM
More information about the MIMEDefang
mailing list