add: else { var threadTree = GetThreadTree(); var selectedMessages = threadTree.selectedItems; var numMessages = selectedMessages.length;  for(var i = 0; i < numMessages; i++) { var messageNode = selectedMessages[i]; var messageUri = messageNode.getAttribute("id"); if(messageUri) { MsgOpenNewWindowForMessage(messageUri, null); } } } 
context: function ThreadPaneDoubleClick(treeitem){	if(IsSpecialFolderSelected("Drafts"))	{		var loadedFolder = GetLoadedMsgFolder();		var messageArray = GetSelectedMessages();		ComposeMessage(msgComposeType.Draft, msgComposeFormat.Default, loadedFolder, messageArray);	}	else if(IsSpecialFolderSelected("Templates"))	{		var loadedFolder = GetLoadedMsgFolder();		var messageArray = GetSelectedMessages();		ComposeMessage(msgComposeType.Template, msgComposeFormat.Default, loadedFolder, messageArray);	}	else	{		var messageUri = treeitem.getAttribute("id");		MsgOpenNewWindowForMessage(messageUri, null);	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b7a36f3971d39ab0a966d38f49b2d61f59c83e24/threadPane.js/buggy/mailnews/base/resources/content/threadPane.js