Hey guys,
We are using a Zend library in Codeigniter to download emails from a pop3 account. It's meant to grab the email and convert the attachments to files and generally it works pretty well. All kinds of users email into the inbox we grab mail from.

However sometimes we have weird issues with different mail encoding that throws things off. E.g. sometimes the mail client sending the email doesn't add a MIME type for the attachments, sometimes the attachments come before the body etc. and this all messes the Zend library up.

i was wondering if anyone has had a similar issue? I wonder if there is a program which can convert all incoming mail to a common foramt with the correct MIME types etc.?