Page 1 of 1

Parsing emails

Posted: Sat Feb 24, 2007 8:48 am
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

Posted: Sat Feb 24, 2007 8:52 am
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.