Sprint PCS Vision Picture Mail to web Gateway

Less than 24 hours after getting my camera phone, I wanted to do more with it. This little conglomeration is by no means a seamless package, but it works quite well. By definition, this kind of thing is kinda un-portable, so distributing it usually is more hassle than it is worth. In any case, here is my setup:

Step 1

I have a folder in my home directory, /mail. This is where all my mail processing is done. It doesn't matter where this file goes, but it will write a temporary image file to the directory it is in. In my procmailrc, towards the top I have this:

:0c
* ^To: david\+picture
| /home/david/mail/picturemail2web.pl

:0
* ^To: david\+picture
Pictures
This pipes it to picturemail2web and then saves the pictures to a different folder. Sendmail support the address+arbitrary thing. Your mail server may not. You can set up a new account, or you could setup procmail to filter based on the subject of "A Picture Share", or the From: address. P.S. Subject filtering is a bad idea, if someone else sends you a picture, it will get processed.

Step 2

picturemail2web takes over. It will download the FULL resolution image (I guess 0.1 assumes 640x480) and saves it. ImageMagick convert then adds whatever "Message" you added in the text message to the JPEG header. Most gallery programs can pull this out later as a comment. Mig does. There are a few configuration settings in the script that must be set for this to work.

Step 3

The images get dumped wherever you want them. In my case, I use Mig to gallery the images. I also use picturemail2web to run mkGallery to create the thumbnails and comment file. I left the gallery thing up to the user because I guess people will have many different uses for this software.

Download

picturemail2web 0.1

Example Gallery

dellanave.com gallery
- david@dellanave.com 2005 -