<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    This is just a quick update to let all Thunderbird extension
    developers know that I've landed a series of improvements to the
    MimeMessage API. These improvements will be available in Thunderbird
    8. The MimeMessage API allows you to conveniently inspect the
    representation of a MIME message: its subparts, the contentType of
    each part, the attachments, their sizes, their content types, their
    urls, etc. It sounds reasonable that a Thunderbird addon would want
    to inspect how a message is structured, and this is precisely what
    this API is here for.<br>
    <div class="post-content">
      <p><a href="http://blog.xulforum.org/public/Selection_016.png"
          title="MimeMessage updated API"><img
            src="cid:part1.02010705.05040409@gmail.com" alt="MimeMessage
            updated API" style="display:block; margin:0 auto;"
            title="MimeMessage updated API, Aug 2011"></a></p>
      <p>If you are a Thunderbird addon developer, and you want to
        inspect the structure of a message, <a
href="http://mxr.mozilla.org/comm-central/source/mailnews/db/gloda/modules/mimemsg.js#180">MsgHdrToMimeMessage</a>
        is what you need. Notable improvements are:</p>
      <ul>
        <li>you can now inspect encrypted messages (but you have to
          request that explicitly through the <code>examineEncryptedParts</code>
          option), and there is a new isEncrypted attribute that will
          tell whether that part was encrypted or not,<br>
        </li>
        <li>detached attachments are now supported,</li>
        <li>uuencoded attachments are now supported,</li>
        <li>if the message is stored on a remote IMAP server, you can
          use the <code>partsOnDemand</code> option to not retrieve the
          full message in order to speed things up (the drawback is that
          you will get inaccurate attachment sizes, for instance).</li>
      </ul>
      <p>I'm happy to provide any guidance as to how to use this API,
        should anyone want to develop some super-cool feature for
        Thunderbird.<br>
      </p>
      <p>Cheers,<br>
      </p>
      <p>jonathan<br>
      </p>
    </div>
  </body>
</html>