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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d63000ffb06f1c74b5d3215477135715d57355d7/threadPane.js/clean/mailnews/base/resources/content/threadPane.js