A few weeks ago, I started to experiment with Mozilla’s new Jetpack extension model when it became available for Thunderbird. Revisiting the idea today, I realise I’d forgotten the basic setup details, so am recording them here for future reference.
I found I had to download the source from the Mercurial Web interface, rather than use pre-prepared XPI installers. This may have improved by the time you read this. I also learned (from Standard9 in #jetpack IRC) that I need asuth’s repository, rather than the main one. Again, things move quickly, don’t assume this is true forever.
Here is what worked for me, on OSX.
1. Grab a .zip from the Jetpack repo, and unpack it locally on a machine that has Thunderbird installed.
2. Edit extensions/install.rdf and make sure the em:maxVersion in the Thunderbird section matches your version of Thunderbird. In mine I updated it to say <em:maxVersion>3.0b4</em:maxVersion> (instead of 3.0b4pre).
3. See the README in the jetpack filetree for installation. With Thunderbird closed, I ran “python manage.py install –app=thunderbird” and I found Jetpack installed fine.
4. Run Thunderbird, you should see an about:jetpack tab, and corresponding options in the Tools menu.
This was enough to get started. See discussion on visophyte.org for some example code.
After installation, you can use the about:jetpack windows to load, reload and delete Jetpacks from URL.
So, why would you bother doing all this? Jetpack provides a simple way of extending an email client using Web technology.
In my current (unfinished!) experiment, for example, I’m looking at making a sidebar the shows information (photo, blog etc.) about the sender of the currently-viewed email. And I figured that if I blogged this HOWTO, someone more familiar with ajax, jquery etc might care to help with wiring this up to the Google Social Graph JSON API, so we can use FOAF and XFN to provide more contextual information around incoming mail…
Assuming you are running Thunderbird 3b4