<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>All Night Diner &#187; add-ons</title>
	<atom:link href="http://micropipes.com/blog/tag/add-ons/feed/" rel="self" type="application/rss+xml" />
	<link>http://micropipes.com/blog</link>
	<description>because at 3am anything sounds good</description>
	<lastBuildDate>Mon, 03 May 2010 17:34:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Add-on Localization Completeness Script is on AMO</title>
		<link>http://micropipes.com/blog/2009/10/22/add-on-localization-completeness-script-is-on-amo/</link>
		<comments>http://micropipes.com/blog/2009/10/22/add-on-localization-completeness-script-is-on-amo/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 15:40:18 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[L10n]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=88</guid>
		<description><![CDATA[The add-on verification suite launched a few months ago and has been refined with each subsequent milestone.  We&#8217;ve changed what it searches for based on feedback and our own findings and earlier this month we made it available to anyone on AMO, not just a hosted add-on&#8217;s authors.
The framework was written in an extensible [...]]]></description>
			<content:encoded><![CDATA[<p>The add-on verification suite launched a few months ago and has been refined with each subsequent milestone.  We&#8217;ve changed what it searches for based on feedback and our own findings and earlier this month we made it <a href="https://addons.mozilla.org/en-US/developers/addon/validate">available to anyone on AMO</a>, not just a hosted add-on&#8217;s authors.</p>
<p>The framework was written in an extensible way so in addition to tweaking the built-in searches, we could also leverage external scripts.  The first such script that is making it to the live site is <a href="http://koala.mozdev.org/drupal/blog/7216">Adrian Kalla&#8217;s</a> <a href="http://hg.mozilla.org/users/akalla_aviary.pl/silme-patched">localization completeness</a> check.  This script attempts to parse and record all the English string files as a baseline.  Then it looks at each locale and reports any missing files, missing translations, or untranslated strings (translations that exist in the locale but are the same as English).</p>
<p>If you validate an extension now and only have partial L10n coverage, scroll down to the new <abbr title="Localization">L10n</abbr> section and you should see something like this:<br />
<img src="http://micropipes.com/blog/wp-content/img/l10n_validation.png" alt="Screen shot of the validation tool" /></p>
<p>Thanks to RJ and Adrian for doing all the work on this.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2009/10/22/add-on-localization-completeness-script-is-on-amo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Top 50 searches on addons.mozilla.org</title>
		<link>http://micropipes.com/blog/2009/05/26/top-50-searches-on-addonsmozillaorg/</link>
		<comments>http://micropipes.com/blog/2009/05/26/top-50-searches-on-addonsmozillaorg/#comments</comments>
		<pubDate>Tue, 26 May 2009 21:13:12 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=80</guid>
		<description><![CDATA[The flight from Portland to San Jose is just about the right length to write some scripts to analyze a bunch of data, make a pretty graph, and then write a blog post drawing fairly obvious conclusions.  Someone on IRC said they were interested in the top search terms being used on addons.mozilla.org so [...]]]></description>
			<content:encoded><![CDATA[<p>The flight from Portland to San Jose is just about the right length to write some scripts to analyze a bunch of data, make a pretty graph, and then write a blog post drawing fairly obvious conclusions.  Someone on <abbr title="Internet Relay Chat">IRC</abbr> said they were interested in the top search terms being used on <a href="https://addons.mozilla.org/">addons.mozilla.org</a> so here we are.</p>
<p>During the week of April 29, 2009 and May 5, 2009 there were around 150000 queries.  Of the top 20 queries on addons.mozilla.org (a quick estimate says that is around 12% of the total queries on the site) only 7 actually have search terms.  The rest are just choosing different options for the search like category or number of results on a page.  If we filter the top queries for ones that include search terms we get a graph that looks like this:</p>
<p><img src="/blog/wp-content/img/amo.searches.graph.05.2009.png" title="Top 50 search terms and their rankings on addons.mozilla.org" /></p>
<p>All the searches on that page are for the <abbr title="English (US)">en-US</abbr> locale unless otherwise noted.  It looks like the majority of searches are for specific add-ons but there are also some popular generic terms like <em>download</em>, <em>gmail</em>, and <em>video</em>.  I think it&#8217;s interesting that German was the only other locale to make the list (and fairly high up on the list).  Maybe the next stats post will be about overall locale use.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2009/05/26/top-50-searches-on-addonsmozillaorg/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Add-on Statistics Status (part 2)</title>
		<link>http://micropipes.com/blog/2009/02/06/add-on-statistics-status-part-2/</link>
		<comments>http://micropipes.com/blog/2009/02/06/add-on-statistics-status-part-2/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 06:28:35 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[AMO]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=72</guid>
		<description><![CDATA[This is the second update about add-ons&#8217; statistics.  Read part one.
Statistics for both update pings and download counts have been updated beginning with February 1 through today, February 6th.  Some notes:

New statistics are stored in UTC and data processing happens shortly after the logs close.  This means you can expect new data [...]]]></description>
			<content:encoded><![CDATA[<p><em>This is the second update about add-ons&#8217; statistics.  <a href="http://micropipes.com/blog/2009/01/22/add-on-statistics-status/">Read part one</a>.</em></p>
<p>Statistics for both update pings and download counts have been updated beginning with February 1 through today, February 6th.  Some notes:</p>
<ul>
<li>New statistics are stored in <abbr title="Coordinated Universal Time">UTC</abbr> and data processing happens shortly after the logs close.  This means you can expect new data at around 8pm PST or shortly after.</li>
<li><b>Download numbers will drop dramatically</b>.  They have been recorded incorrectly[1] for the past several weeks.  <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=472538" title="Daily &amp; Total Download Counts appear to have been too high since Nov 16">Bug 472538</a> has more details.</li>
<li>We&#8217;ll begin replacing statistics back to 2008-11-15 over the next few weeks as processing time allows.</li>
<li>An aside that you may not know:  When Firefox looks for an update to an add-on we count that as an &#8220;update ping.&#8221;  If it finds the update it will hit <a href="http://releases.mozilla.org/">releases.mozilla.org</a> directly for the new add-on.  That means that in your current stats numbers updates are not counted as downloads, or another way, &#8220;download counts&#8221; are the counts of someone actually clicking the &#8220;Install Now&#8221; button on <a href="https://addons.mozilla.org">addons.mozilla.org</a>.</li>
</ul>
<p>Since we&#8217;re pulling these statistics from a team dedicated to crunching numbers we&#8217;re getting richer and more reliable data now.  This frees up our time to fix existing stats bugs and also to add additional data views (like what locale your users are using).  Good things are coming; keep an eye on your stats!</p>
<p><b>Update 2008-02-07</b>:  HP issued a <a href="http://alerts.hp.com/r?2.1.3KT.2ZR.yor8o.Cwf2AM..N.G98I.1lY2.DcJOEZc0">critical alert</a> regarding potential data loss which affected our servers.  Our IT team applied the fix but upon restart discovered it&#8217;s been way too long since the file system had fsck run on it.  Since there is so much data on the system it will take several more hours to finish, then IT will restore log files, and then we can begin to process the stats for this weekend.  In short, stats won&#8217;t be current for another day or two.</p>
<p>[1] The technical reason is that Firefox does 2 or 3 GET requests to a server when it installs an add-on.  The filter we had to remove duplicate requests was broken.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2009/02/06/add-on-statistics-status-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add-on Statistics Status</title>
		<link>http://micropipes.com/blog/2009/01/22/add-on-statistics-status/</link>
		<comments>http://micropipes.com/blog/2009/01/22/add-on-statistics-status/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 18:18:08 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[AMO]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=69</guid>
		<description><![CDATA[Add-on statistics have been intermittent for a couple months and are just recently getting the attention they need.  
Our current process is to count download statistics once per day and update ping statistics once per week (update pings are a sampling of the complete set).  The reliability of the script generating these statistics [...]]]></description>
			<content:encoded><![CDATA[<p>Add-on statistics have been intermittent for a couple months and are just recently getting the attention they need.  </p>
<p>Our current process is to count download statistics once per day and update ping statistics once per week (update pings are a sampling of the complete set).  The reliability of the script generating these statistics has been falling as our data size has grown and we&#8217;ve had several bugs filed regarding the numbers it&#8217;s produced.  Most of the time they are relatively small fixes and the script continued to limp along.</p>
<p>Currently we&#8217;re facing questionable results in both sets of statistics (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=468570">bug 468570</a> for update pings, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=472538">bug 472538</a> for download counts).  I&#8217;ve been debugging the update pings script and despite solving some problems we&#8217;re continuing to see the script fail to run properly.</p>
<p>Parallel to AMO development, <a href="http://daniele.livejournal.com/">Daniel Einspanjer</a> has been working on a larger statistics parser that will aggregate data from many Mozilla sites into a dashboard with easy visualizations.  It turns out he&#8217;s already processing the <abbr title="addons.mozilla.org">AMO</abbr> logs and pulling out more data than us more often and in less time.  </p>
<p>With a system like that available it doesn&#8217;t make sense for us to continue to develop (and, in this case heavily modify) our local statistics scripts.  With that in mind, our next steps are:</p>
<ol>
<li>Verify the results we (used to) get with the AMO scripts match those of the new system</li>
<li>Create a transformation script to push the data from Daniel&#8217;s project to the AMO database</li>
<li>Turn off the AMO scripts</li>
<li>Back fill statistics through at least November 15th, 2008 to replace our flailing stats.  If the comparisons in step 1 reveal miscounting from before that we&#8217;ll back fill as far as we need to.</li>
</ol>
<p>These steps will let us meet the immediate goal of getting the statistics we offer now to be reliable and complete.  In the future we can look at pulling additional data from the new metrics system.  The target date to switch to the new system is the end of next week, Jan 31 2009.  Once we make the switch we can evaluate how long the parsing takes and give an estimate of how long back filling will take.  As always, let me know if there are any concerns.</p>
<p><em><strong>Update 2009-02-02:</strong></em>  We compared the scripts&#8217; results and found a discrepancy among add-ons that have significant external download numbers.  The current stats script verified the GUID matches and then counted the update.  The new stats script verified the GUID and the version before counting the update.  This means if a specific version isn&#8217;t hosted on AMO the new script doesn&#8217;t count it.  I think the current method of verifying only the GUID is more useful to authors and the new script is being changed.  That means we&#8217;ll have to re-run and re-compare the numbers (a single day is taking about 5 hours now).  Other numbers are showing early promise.  I&#8217;ll continue to update as we progress.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2009/01/22/add-on-statistics-status/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>ThreadBubble going the way of the dodo</title>
		<link>http://micropipes.com/blog/2008/10/22/threadbubble-going-the-way-of-the-dodo/</link>
		<comments>http://micropipes.com/blog/2008/10/22/threadbubble-going-the-way-of-the-dodo/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 22:30:33 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[ThreadBubble]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=60</guid>
		<description><![CDATA[I got the chance to try out the latest version of Shredder last night which recently celebrated it&#8217;s Alpha 3 release fixing an impressive number of bugs.  Among the heap of bugs is our very own bug 262319; &#8220;sort by thread fails to resort on new message.&#8221;  Two weeks shy of celebrating it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I got the chance to try out the latest version of <a href="http://www.mozillamessaging.com/en-US/thunderbird/3.0a3/">Shredder</a> last night which recently celebrated it&#8217;s Alpha 3 release <a href="http://www.rumblingedge.com/2008/10/07/shredder-alpha-3-released/">fixing an impressive number of bugs</a>.  Among the heap of bugs is our very own <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=262319">bug 262319</a>; &#8220;sort by thread fails to resort on new message.&#8221;  Two weeks shy of celebrating it&#8217;s fourth birthday it was squashed and a fix was checked in.</p>
<p><a href="https://bugzilla.mozilla.org/showdependencygraph.cgi?id=236849">A few straggling bugs aside</a>[1] proper message sorting has been achieved and the <a href="http://micropipes.com/code/threadbubble/">ThreadBubble extension</a> is no longer needed.</p>
<p>The latest version, ThreadBubble 0.8, is compatible with Thunderbird versions up to 3.0a2pre and I expect it will be the last version released.  Maybe I&#8217;ll work on a Firefox extension next&#8230;</p>
<p>Anyway, thanks to everyone who tested, used, and gave feedback about ThreadBubble. <img src='http://micropipes.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[1] This is kind of a joke &#8211; the <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=236849">parent bug</a> is actually a meta bug for all threaded view issues and I don&#8217;t know how many of those are confirmed or are relevant to what ThreadBubble fixed.  I do know I filed <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=461100">bug 461100</a> last night which is a new problem with the threaded view as far as I can tell.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2008/10/22/threadbubble-going-the-way-of-the-dodo/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ThreadBubble 0.8 Released</title>
		<link>http://micropipes.com/blog/2008/07/09/threadbubble-08-released/</link>
		<comments>http://micropipes.com/blog/2008/07/09/threadbubble-08-released/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 15:40:07 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[ThreadBubble]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=53</guid>
		<description><![CDATA[A new version of ThreadBubble is available.  Changes include:

Thunderbird 3 Support: Tested on the latest nightly and working fine.  This also means a lot of the code was cleaned up and made simpler.  (Thunderbird 2 still works)
Fixed a bug when sorted ascending where new messages wouldn&#8217;t sink to the bottom of the [...]]]></description>
			<content:encoded><![CDATA[<p>A new version of ThreadBubble is available.  Changes include:</p>
<ul>
<li><b>Thunderbird 3 Support</b>: Tested on the latest nightly and working fine.  This also means a lot of the code was cleaned up and made simpler.  (Thunderbird 2 still works)</li>
<li>Fixed a bug when sorted ascending where new messages wouldn&#8217;t sink to the bottom of the list.</li>
</ul>
<p><a href="http://svn.micropipes.com/threadbubble/releases/threadbubble-0.8.xpi">Download ThreadBubble 0.8</a></p>
<p>Someone already tested this update and had no problems so I&#8217;m putting it online.  If I don&#8217;t hear any complaints by next week I&#8217;ll push it live on <a href="https://addons.mozilla.org/">AMO</a> and everyone can get the update automatically.  Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2008/07/09/threadbubble-08-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Curious about how your add-on will get along with Firefox 3?</title>
		<link>http://micropipes.com/blog/2008/02/06/curious-about-how-your-add-on-will-get-along-with-firefox-3/</link>
		<comments>http://micropipes.com/blog/2008/02/06/curious-about-how-your-add-on-will-get-along-with-firefox-3/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 07:04:59 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/2008/02/06/curious-about-how-your-add-on-will-get-along-with-firefox-3/</guid>
		<description><![CDATA[Firefox 3 is coming down the pipeline along with a pile of great new features like caching web apps so they are available offline and the new Places API that provides a powerful interface to your bookmarks and history.  No need to fret if your extensions will be compatible though &#8211; here&#8217;s the lowdown [...]]]></description>
			<content:encoded><![CDATA[<p>Firefox 3 is coming down the pipeline along with a pile of great new features like <a href="http://developer.mozilla.org/en/docs/Online_and_offline_events">caching web apps so they are available offline</a> and <a href="http://developer.mozilla.org/en/docs/Places">the new Places API</a> that provides a powerful interface to your bookmarks and history.  No need to fret if your extensions will be compatible though &#8211; here&#8217;s the lowdown on what it takes to stay up to date:</p>
<p>Want to know the big changes and what&#8217;s brand new in Firefox 3?  Check out <a href="http://developer.mozilla.org/en/docs/Firefox_3_for_developers">Firefox 3 for developers</a>.</p>
<p>Want to get right to the part about updating your extensions for Firefox 3?  We&#8217;ve got <a href="http://developer.mozilla.org/en/docs/Updating_extensions_for_Firefox_3">a wiki page for that too</a>.</p>
<p>If you know your extension will work and you just want to know what you need to do on <abbr title="addons.mozilla.org">AMO</abbr> check out <a href="https://addons.mozilla.org/en-US/firefox/blog/4">Justin&#8217;s quick review</a>.</p>
<p>For more personalized assistance feel free to ask your question in <a href="irc://irc.mozilla.org/extdev">#extdev</a> on <a href="http://irc.mozilla.org">irc.mozilla.org</a>.</p>
<p>If you&#8217;ll be in Brussels, Belgium at the end of this month (February 23rd and 24th) you should consider hitting up Mozilla&#8217;s <a href="http://wiki.mozilla.org/Fosdem:2008:Workshop">Extension Developer&#8217;s Workshop</a> at <a href="http://fosdem.org/2008/"><abbr title="Free and Open Source Software Developers' European Meeting">FOSDEM</abbr> 2008</a>.  It promises a trifecta of awesomeness including <a href="http://wiki.mozilla.org/Fosdem:2008:Attendees">helpful people</a>, <a href="http://store.mozilla.org/">Mozilla swag</a>, and <a href="http://fosdem.org/2008/beerevent">delicious beer</a>.</p>
<p><em>Edit: update first link to be more useful</em></p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2008/02/06/curious-about-how-your-add-on-will-get-along-with-firefox-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting notified when new mail arrives in Thunderbird</title>
		<link>http://micropipes.com/blog/2007/05/14/getting-notified-when-new-mail-arrives-in-thunderbird/</link>
		<comments>http://micropipes.com/blog/2007/05/14/getting-notified-when-new-mail-arrives-in-thunderbird/#comments</comments>
		<pubDate>Mon, 14 May 2007 17:06:21 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/2007/05/14/getting-notified-when-new-mail-arrives-in-thunderbird/</guid>
		<description><![CDATA[When writing an extension for Thunderbird, it&#8217;s a common goal to be able to tell when new mail has arrived.  In versions of Thunderbird before 2.0, the accepted practice was to get a pointer to the nsiMsgMailSession and add a listener that got called when a new mail event happened.  The code would [...]]]></description>
			<content:encoded><![CDATA[<p>When writing an extension for Thunderbird, it&#8217;s a common goal to be able to tell when new mail has arrived.  In versions of Thunderbird before 2.0, the accepted practice was to get a pointer to the nsiMsgMailSession and add a listener that got called when a new mail event happened.  The code would look something like:</p>
<pre><code>
function someListener() { }

someListener.prototype =
{
  OnItemAdded: function(parentItem, item) {
      alert('You got mail!');
  }
}

var mailSession = Components.classes["@mozilla.org/messenger/services/session;1"].getService(Components.interfaces.nsIMsgMailSession);

mailSession.AddFolderListener(new someListener(),Components.interfaces.nsIFolderListener.added);
</code></pre>
<p>This code is more verbose than you need (declaring the listener function), and will get you more events than you need (you&#8217;ll have to filter the ones you want in your function).</p>
<p>After researching new methods of being notified for <a href="http://micropipes.com/code/threadbubble/">ThreadBubble</a>, I came across a better method available in Thunderbird 2.0 &#8211; using the <a href="http://lxr.mozilla.org/mozilla/source/mailnews/base/public/nsIMsgFolderNotificationService.idl">nsIMsgFolderNotificationService</a>. If you look at the interface, you can see it distinguishes between an item being added, deleted, moved, etc.  which makes it easy to pick out the events you want to watch.</p>
<p>The example above using the new interface looks very similar, but I think it comes out a lot cleaner:</p>
<pre><code>
var someListener = {
    itemAdded: function(item) {
      alert('You got mail!');
    }
}

var notificationService = Components.classes["@mozilla.org/messenger/msgnotificationservice;1"].getService(Components.interfaces.nsIMsgFolderNotificationService);

notificationService.addListener(someListener);
</code></pre>
<p>This method isn&#8217;t affected by <a href="http://micropipes.com/blog/2007/05/05/threadbubble-05-released/">the bug I mentioned earlier</a>, and it&#8217;s a more direct method of getting notified.</p>
<p>The examples here are sparse on details &#8211; you should always be prepared to catch exceptions from code like this (put it in a try/catch block).  You can see a complete example in the <a href="http://svn.micropipes.com/threadbubble/trunk/content/threadbubble.js">ThreadBubble source code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2007/05/14/getting-notified-when-new-mail-arrives-in-thunderbird/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ThreadBubble 0.5 released</title>
		<link>http://micropipes.com/blog/2007/05/05/threadbubble-05-released/</link>
		<comments>http://micropipes.com/blog/2007/05/05/threadbubble-05-released/#comments</comments>
		<pubDate>Sat, 05 May 2007 22:23:36 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[ThreadBubble]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=3</guid>
		<description><![CDATA[This release fixes an annoying bug that caused messages to disappear from the message list (even though they were still in the folder).  In previous versions, if there was a thread with 2 messages in it, and you deleted or moved the root message, the other would disappear from the display.  If you [...]]]></description>
			<content:encoded><![CDATA[<p>This release fixes an annoying bug that caused messages to disappear from the message list (even though they were still in the folder).  In previous versions, if there was a thread with 2 messages in it, and you deleted or moved the root message, the other would disappear from the display.  If you clicked on a different folder and came back, the previously nested message would be shown again.</p>
<p>Fixing this problem was more involved than I was hoping, and while debugging, I stumbled across what I&#8217;m considering a bug in Thunderbird:</p>
<p>If there is a new message in a thread, and I delete the root message, the OnItemAdded event is fired as if a new message just arrived.  If I delete any message other than the root, or if there is no message marked &#8220;new&#8221; in the thread, the event is not fired.  From my limited understanding of the system, it seems like OnItemAdded should only be fired when an item is added (either new mail arrives, or I move a message from another folder).  Regardless, I&#8217;m no longer using the OnItemAdded hook, so it&#8217;s not an issue for ThreadBubble any more.</p>
<p>It&#8217;s also worth noting that ThreadBubble now only works with Thunderbird version 2.0 and above due to the way it gets notified about new mail.</p>
<p><a href="http://micropipes.com/code/threadbubble/">Download ThreadBubble 0.5</a></p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2007/05/05/threadbubble-05-released/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
