I have a system where SMS are sent to an email address which is sent to a script for processing. The query in these emails is very simple (something like a zip code). How do I deal with the multitude of different ways that an email can come in? I had a request from an iPhone, which came in as a mms. The email was a multipart message which contained another multipart message.
When I send from my paltry cell phone, I just get a simple text string.
What's a good way to get the intended query out of these emails, regardless of how it is sent.