My impression is that the .mht files are MIME messages, of type multipart/related. A MIME parsing module, like MIME::Parser should work to split it apart. I don't know what content encoding they used; the binary files may not be encoded.

The two option I see for storing the files are put them in a direcotry, or put them in archive of another format, probably .zip would be best. The advantage of a directory is that they should viewable as they are. The advantage of zip archive is that you get one file that normal tools can use, but can't be directly viewed by browsers.


In reply to Re: MSFT Explorer MHT File Munging by iburrell
in thread MSFT Explorer MHT File Munging by dimar

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.