Replace image attachments with resized versions

Brian Cluff brian at snaptek.com
Fri Sep 6 13:48:11 MST 2013


Right, I have control over the server and that's about it.  It's got to 
be a server based solution.

Brian

On 09/06/2013 01:41 PM, Dazed_75 wrote:
> Unless I mis-understood the post, Brian is not involved in the
> processing of any post.  He is asking how to service this clients need
> who does not want to learn anything new.  This was a suggestion about a
> way Brian could work his magic for the client's systems so the client
> gets what he needs without himself doing anything.
>
>
> On Fri, Sep 6, 2013 at 12:34 PM, Matt Graham <mhgraham at crow202.org
> <mailto:mhgraham at crow202.org>> wrote:
>
>     On 2013-09-06 12:06, Dazed_75 wrote:
>
>         Maybe the solution is there so the images are smaller to begin with.
>         For example, if they are from a digital camera, ask to see it and
>
>         change the storage resolution.  Or maybe in the way they move the
>         images to the computer they could use a script that does the resize
>         as part of moving the image to computer storage.  Then the guy
>         doing the emails has no change to how he works.  Or how about
>         setting up a cron job that resizes the photos before he uses them?
>
>
>     This may be possible.  There are some details missing, though.  How
>     does this message get to Brian in the first place?  Does it show up
>     over SMTP?  If so, the solution will probably involve something like
>     having the MTA look for a particular sender, then pass that message
>     off to an external filter script.  The filter script would then have
>     to split the message up into body and attachments, then base64
>     decode those attachments into a temp directory, then do a convert
>     command like the one Joe posted earlier on all of those attachments,
>     then stitch the message back together, then pass it back to the MTA,
>     then clean up.
>
>     I don't know of anything pre-built that'll do all that off the top
>     of my head.  There's always the wonderful "import email" part of
>     python, if python is an option, and there are also mail-parsing Perl
>     modules.
>
>     --
>     Crow202 Blog: http://crow202.org/wordpress
>     There is no Darkness in Eternity
>     But only Light too dim for us to see.
>
>     ------------------------------__---------------------
>     PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.__org
>     <mailto:PLUG-discuss at lists.phxlinux.org>
>     To subscribe, unsubscribe, or to change your mail settings:
>     http://lists.phxlinux.org/__mailman/listinfo/plug-discuss
>     <http://lists.phxlinux.org/mailman/listinfo/plug-discuss>
>
>
>
>
> --
> Dazed_75 a.k.a. Larry
>
> Please protect my address like I protect yours. When sending messages to
> multiple recipients, use the BCC: (Blind carbon copy). Remove addresses
> from a forwarded message body before clicking Send.
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>


More information about the PLUG-discuss mailing list