<?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; Thunderbird</title>
	<atom:link href="http://micropipes.com/blog/tag/thunderbird/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>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>Threadbubble on AMO</title>
		<link>http://micropipes.com/blog/2007/07/11/threadbubble-on-amo/</link>
		<comments>http://micropipes.com/blog/2007/07/11/threadbubble-on-amo/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 08:53:30 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[ThreadBubble]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/2007/07/11/threadbubble-on-amo/</guid>
		<description><![CDATA[I submitted Threadbubble to AMO tonight.  I wanted to work out the bugs and get it in a stable state before I put it on there and I think it&#8217;s reached that point.  Hosting it on AMO will prevent potential security issues, and it has the side benefit of providing automatic updates.
The add-on [...]]]></description>
			<content:encoded><![CDATA[<p>I submitted Threadbubble to <a href="https://addons.mozilla.org/">AMO</a> tonight.  I wanted to work out the bugs and get it in a stable state before I put it on there and I think it&#8217;s reached that point.  Hosting it on AMO will prevent <a href="http://developer.mozilla.org/devnews/index.php/2007/05/30/add-on-updates/">potential security issues</a>, and it has the side benefit of providing automatic updates.</p>
<p>The <a href="https://addons.mozilla.org/en-US/thunderbird/addon/5326">add-on is available</a>, but it&#8217;s currently in the sandbox (which means you&#8217;ll have to login if you want to see it).  If you already have an account, feel free to add a review so I can get started on <a href="https://addons.mozilla.org/en-US/firefox/pages/policy">the process</a> to get onto the public side of AMO.</p>
<p>Once the add-on hits the public side, anyone with an older version will get automatically updated which should help anyone experiencing the &#8220;disappearing threads&#8221; from version 0.3.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2007/07/11/threadbubble-on-amo/feed/</wfw:commentRss>
		<slash:comments>0</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>
