Basic MimeMessage demo
By Jonathan Protzenko on Monday, March 14 2011, 17:52 - mozilla - Permalink
Edit: I added some screenshots and fixed a couple problems with the extension.
I've been talking for quite some time now about the new MimeMessage
representation that allows you to conveniently inspect the structure of a Mime Message. It looks like the concept of callback is unclear to many of our extension developers. Coming from the functional programming community, I probably didn't realize I needed to be a little more specific. To tackle this issue, I've put together a very basic extension that should hopefully get you started :-).
- Get the extension.
- Make sure you have dump enabled.
- Launch Thunderbird from a terminal.
- Customize the main toolbar and add the "Glodebug" button.
- Select any message, and hit the glodebug button.
The result is a ton of colored information about the selected message in the console. The first half of overlay.js
extracts the information through the MimeMessage
representation. The other half uses a Gloda query to examine the information stored in the index. The last bit kicks a reindexing of the selected message in, so that in case you're writing a Gloda plugin, you can see how it performs.
I recommend reading my previous blog post if you're interested in doing that kind of stuff with Thunderbird. I hope it will help some of our extension developers!
As a side note, this is the extension I'm using when I need to debug Gloda stuff, hence the name.
Comments
Screenshot! Screenshot! Screenshot!
Point taken: the updated version of this post now sports some fancy screenshots :-).
Awesome! Awesome! Awesome!