add:  var tree = GetThreadTree(); var selectedMessages = tree.selectedItems; var numSelected = selectedMessages.length; if(numSelected == 0 | numSelected == 1) document.commandDispatcher.updateCommands('threadTree-select'); 
context: function ThreadPaneSelectionChange(){	var collapsed = IsThreadAndMessagePaneSplitterCollapsed();	if(!collapsed)	{		LoadSelectionIntoMessagePane();	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0938bbb70031b70863a26099bd6eab59d9a14e34/threadPane.js/buggy/mailnews/base/resources/content/threadPane.js