Author Topic: Email Pics to Album from phone..  (Read 15942 times)

0 Members and 1 Guest are viewing this topic.

Offline pcarter

  • album.pl User
  • *
  • Posts: 6
  • Karma: +3/-0
  • Nothing to see here..
    • Pete's Pages
Email Pics to Album from phone..
« on: June 02, 2004, 11:08:28 »
« Last Edit: September 22, 2005, 20:49:27 by pcarter »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Email Pics to Album from phone..
« Reply #1 on: June 02, 2004, 18:34:48 »
Nice! Please feel free to upload it into our user contribution library. It sounds like a great add-on, thanks for sharing! :D


Cheers
Mike

Offline icsbrad

  • album.pl Donor
  • album.pl Tester
  • **
  • Posts: 20
  • Karma: +1/-0
  • Multitasking Screwing everything up simultaneously
Re: Email Pics to Album from phone..
« Reply #2 on: June 07, 2004, 16:43:36 »
Awesome scipt, would be very greatfull if you would share this with me  ;D

Thanks
Brad
Quote
I setup a perl script to check a pop mail account for pics from my Sprint picture phone...  If it finds the sprint message, it grabs the URL from it,  downloads the picture from sprint's website, and throws it in my album directory so album.pl pics up the image...   Pretty cool to have a "realtime" photo album, particularly when away from the PC, etc.  I also set it up to grab mime jpg attachments off email, so it works with Verizon phones too..

http://www.petecarter.net/cgi-bin/album.cgi?album=Phone%20Pics


If anyone's interested, I can post the script out here...

At the source of every error which is blamed on the computer you will find at least two human errors, including the error of blaming it on the computer.

Offline pcarter

  • album.pl User
  • *
  • Posts: 6
  • Karma: +3/-0
  • Nothing to see here..
    • Pete's Pages
Re: Email Pics to Album from phone..
« Reply #3 on: June 08, 2004, 21:30:54 »
Ok, I uploaded the script to the user contributions forum..  I probably should have spent some time cleaning it up, but haven't had the time - so I just left it as is -- (ugly)...

I don't really know perl very well, so don't expect much..  :-\

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Email Pics to Album from phone..
« Reply #4 on: June 09, 2004, 08:11:52 »
Heheh, nobody's going to look a gift horse in the mouth... thanks for sharing!

Offline matt_rogers

  • album.pl Hacker
  • ****
  • Posts: 117
  • Karma: +2/-0
  • Currently sitting in front of a computer.
    • Three Steps To A Reef Aquarium
Re: Email Pics to Album from phone..
« Reply #5 on: August 30, 2004, 23:47:00 »
Wow you have to be kidding, I gotta check this out... karma to you pcarter!
 8)

Offline htilly

  • album.pl Tester
  • **
  • Posts: 23
  • Karma: +0/-0
  • I forgot to change the default text
Re: Email Pics to Album from phone..
« Reply #6 on: September 01, 2004, 05:32:38 »
WoHo  ;D

Just installed the script and I now have two new album. One for my own pictures sent from my phone, but also one for all my friends who want to store / share their pictures.

Thanks for a great add-on !!  :D

/Tilly

Offline icsbrad

  • album.pl Donor
  • album.pl Tester
  • **
  • Posts: 20
  • Karma: +1/-0
  • Multitasking Screwing everything up simultaneously
Re: Email Pics to Album from phone..
« Reply #7 on: September 02, 2004, 18:25:58 »
WOW, super sweet big thumbs up.  This script rocks, I think one of the most usefull have ever seen, thanks for sharing with all of us.
Have a quick question if anyone has any input would be appreciated.  Does anyone no how to get the description to work when text is sent with the picture from a mobile phone?  Seems all that is showing up is the phone number, can't find how to make the description work if possible, thanks.
At the source of every error which is blamed on the computer you will find at least two human errors, including the error of blaming it on the computer.

Offline pcarter

  • album.pl User
  • *
  • Posts: 6
  • Karma: +3/-0
  • Nothing to see here..
    • Pete's Pages
Re: Email Pics to Album from phone..
« Reply #8 on: September 18, 2004, 20:37:15 »
icsbrad -
What cell provider do you have??  I don't think it would be very difficult to grab text and add it as subject..  I thought about doing that - but then never bothered..  (instead I just put the phone number in there, or a list where it will put the name for recognized numbers..)

If it's sprint - the subject just says "you have picture mail"  or something like that, so the description would need to be scraped off the sprint website..  If it's another provider, I'm not really sure if it puts text in the subject, or the message body, or what...

I will look into making it work for Sprint..  (although I'm usually too lazy to type a description via the phone's keypad...) 
If you have a different provider, let me know which provider, and I'll see if I can make it work..  (I might need a sample pic emailed..)

-pete

Offline icsbrad

  • album.pl Donor
  • album.pl Tester
  • **
  • Posts: 20
  • Karma: +1/-0
  • Multitasking Screwing everything up simultaneously
Re: Email Pics to Album from phone..
« Reply #9 on: September 24, 2004, 08:47:38 »
My cell phone provider is Verizon Wireless, the email comes across as phonenumber@vzwpix.com.  I am also haveing a problem that for some reason the script is not liking pictures with the .jpeg extension.  It will grab the .jpg pictures but will not grab the .jpeg pictures.  When you get some time, shoot back a reply if you have any suggestions.  Thanks again for all your help.

Brad
At the source of every error which is blamed on the computer you will find at least two human errors, including the error of blaming it on the computer.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Email Pics to Album from phone..
« Reply #10 on: September 25, 2004, 08:26:49 »
Check your @imgexts setting in album.cfg. I bet "jpeg" is not included in the list of valid image extensions...

Offline icsbrad

  • album.pl Donor
  • album.pl Tester
  • **
  • Posts: 20
  • Karma: +1/-0
  • Multitasking Screwing everything up simultaneously
Re: Email Pics to Album from phone..
« Reply #11 on: September 25, 2004, 09:39:44 »
Checked my @imgexts settings in album.cfg and the jpeg extension is there as a valid extension.  The email pics to album from phone script is not grabbing the jpeg pictures out of my emails, it accepts the other file extensions but does not see jpeg extensions as valid pictures.

Thanks
Brad
At the source of every error which is blamed on the computer you will find at least two human errors, including the error of blaming it on the computer.

Offline pcarter

  • album.pl User
  • *
  • Posts: 6
  • Karma: +3/-0
  • Nothing to see here..
    • Pete's Pages
Re: Email Pics to Album from phone..
« Reply #12 on: September 28, 2004, 12:53:13 »
The jpeg vs jpg thing has to do with the Mime type of the attachment.. I saw this issue before, but didn't fix it, cause it didn't bother me much.. 
I will look into fixing it...  I think I just have to add another Mime type..  (icsbrad, if you can send me a sample that doesn't work, that might make it easier... testpics<at>petecarter.net)

As far as descriptions text goes -- I was wrong about Sprint..  Their messages actually have XML in the email that includes the message text - so it was easy to grab that for the description.. 
I don't have a verizon phone, so I'm not sure how that will need to work..  If someone can send me a test picture (with text) from a verizon phone to testpics<at>petecarter.net, I'll see if I can make that work too, and will post the updated script..


Offline benjaminkeith

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
  • Benjamin Keith
    • OHSGrads
Re: Email Pics to Album from phone..
« Reply #13 on: January 13, 2005, 16:28:46 »
Does anyone know if I can get a little help for the less gifted on setting this up?

List of my initial questions:

1.  I'm running on a linux server (hostee), which popclient should I use?  Is there a default already?
2.  MIME parser?  Suggestions?
3.  LWP?  Another acronym that I should know I guess, little help?
4.  Does imagemagick get called in your script to make thumbnails and compress pics?

Thanks in advance!

Offline pcarter

  • album.pl User
  • *
  • Posts: 6
  • Karma: +3/-0
  • Nothing to see here..
    • Pete's Pages
Re: Email Pics to Album from phone..
« Reply #14 on: February 15, 2005, 12:05:30 »
benjaminkeith  -

THe 1st 3 things you referred to are perl modules that need to be installed in order to use the script.
(Mail::POP3Client, MIME::Parser, LWP::UserAgent)

If you don't have these currently installed on your server, you can get them from CPAN (http://www.cpan.org)   CPAN also has info on how to install modules, etc.. 

4. Does imagemagick get called in your script to make thumbnails and compress pics?

ImageMagick is not used by this script..  All this script does is get the pictures out of the email, and save it somewhere to disk.  For my setup, album.pl uses imagemagick to generate the thumbnail on first view, and the phone pics are small enough that I don't need to resize them.

You may have some issues trying to do this on a hosted server, because the server would need to have a cron setup to check for email...