I don't want to lead you down a primrose path as I don't use
action_replace_with_url however I edited the code snippet below to indicate
where the logic should go assuming the file size logic was the issue.
Regards,
KAM
> I am completly new in mimedefang. I dont know how to use your code.
> Where do I have to put action_replace_with_url ?
>
> > 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) {
#*******action_replace_with_url logic goes here******
> > }
> > }
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang