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.

  1. Find a way to get Exchange to give me the attachment as a .msg file.
  2. 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


In reply to Turn an rfc/822 type MIME part into an Outlook .msg file? by blahblahblah

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.