The web app that I maintain has an alternate email interface for editing data. A perl script downloads email from a POP/IMAP server, parses it using
MIME::Parser, and processes the data. There is one type of attachment that it cannot handle the way our users would like.
When you save an email in Outlook, it saves in Outlook's binary format with a .msg extension. Some of our users take those mails and attach them to the email that they send into our system. They want our system to simply preserve the attachment and attach it to the record that they're editing. The problem is that either Outlook or Exchange "downgrades" the attachment into an rfc/822-type MIME part. (That makes total sense, because otherwise non-MS email clients wouldn't be able to read it.)
I have two ideas for solving this, and I'm not having much luck with either one.
- Find a way to get Exchange to give me the attachment as a .msg file.
- Find a way, in perl, to convert the rfc/822 part back into a .msg file.
Any ideas on how to achieve either of those, or alternate solutions?
Thanks,
Joe