On Wed, 13 Jun 2012 16:54:48 +0200
Randall <[email protected]> wrote:

> for varying reasons i don't want to limit the size of the
> mails/attachments that are send to the list, but would like all
> images that are send to be resized to a small default size before
> distribution to all recipients on the list.

This could be pretty CPU-intensive.  I would approach it by calling
action_external_filter from the "filter" routine.  Only call it for
image/* parts.  Then you need to write something (a shell or Perl
script) that reads an image from ./FILTERINPUT, scales it, and puts
the result in ./FILTEROUTPUT.  Take a look at ImageMagick for doing the
resizing.

Regards,

David.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to