Parsing emails

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
benyboi
Forum Commoner
Posts: 80
Joined: Sat Feb 24, 2007 5:37 am

Parsing emails

Post by benyboi »

I saw this on another topic here and was wondering if anyone can provide any more details.
What you do is you send the movie or image via text message ( or mms ) to your server. Have your server parse the email and save the file.
How would i go about parsing the email?

(I have mail enable on my server)

Thanks for any help.
Ben
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I'm actually working on a class to turn an email into a Swift_Message object at the moment. Basically, Swift already works the other way around and compiles it's own format into a RFC 2822 (+ a few others) compliant string, I just want to also do the opposite. It'll be a month or so at least yet though.

Sadly, it involves reading a lot of RFCs and pulling out a lot of hair. I think there may be some PEAR_IMAP classes or something like that but ones I found in the past were not brilliant and were no longer in development.
Post Reply