[Mimedefang] action_replace_with_url
    Kevin A. McGrail 
    kmcgrail at pccc.com
       
    Fri Mar  4 14:04:07 EST 2005
    
    
  
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******
> >         }
> >       }
    
    
More information about the MIMEDefang
mailing list