login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

Thunderbird Extensions: How to Get the Body of A Message
The XPCOM component nsIMsgHdr is, as you would expect, t ...

The Deep End: Thunderbird Extensions: How to Get the Body of A Message
http://thunderbirddocs.blogspot.com/...underbird-extensions-how-to-get-body.html

Categories

/Channels/techie/thunderbird

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

Thunderbird Extensions: How to Get the Body of A Message

The XPCOM component nsIMsgHdr is, as you would expect, the header of a message. Oddly there doesn't seem to be a component like "nsITheMsg" that includes the header--the header is, for all practical purposes, the message. This means that getting to the body of the message is really frustrating. So--to get the body:

HTML

<h3 class="post-title"> Thunderbird Extensions: How to Get the Body of A Message </h3> <div class="post-body"> <div> <div style="clear: both;"></div>The XPCOM component <a href="http://www.xulplanet.com/references/xpcomref/xpcomref1.0/nsIMsgHdr.html">nsIMsgHdr</a> is, as you would expect, the header of a message. Oddly there doesn't seem to be a component like "nsITheMsg" that includes the header--the header is, for all practical purposes, the message. This means that getting to the <span style="font-style: italic;">body</span> of the message is really frustrating. So--to get the body:</div></div>