rem: ShowMenuItem("threadPaneContext-openNewWindow", (numSelected <= 1)); EnableMenuItem("threadPaneContext-openNewWindow", false); 
add: var isNewsgroup = false; var selectedMessage = null; if(numSelected == 1) { selectedMessage = selectedMessages[0]; isNewsgroup = GetMessageType(selectedMessage) == "news"; } 
context:  function fillThreadPaneContextMenu(){	var tree = GetThreadTree();	var selectedItems = tree.selectedItems;	var numSelected = selectedItems.length;	ShowMenuItem("threadPaneContext-openNewWindow", (numSelected <= 1));	EnableMenuItem("threadPaneContext-openNewWindow", false);	ShowMenuItem("threadPaneContext-editAsNew", (numSelected <= 1));	EnableMenuItem("threadPaneContext-editAsNew", false);		ShowMenuItem("threadPaneContext-sep-open", (numSelected <= 1));	ShowMenuItem("threadPaneContext-replySender", (numSelected <= 1));	EnableMenuItem("threadPaneContext-replySender", (numSelected == 1));	ShowMenuItem("threadPaneContext-replyAll", (numSelected <= 1));	EnableMenuItem("threadPaneContext-replyAll", (numSelected == 1));	ShowMenuItem("threadPaneContext-forward", true);	EnableMenuItem("threadPaneContext-forward", (numSelected > 0));	ShowMenuItem("threadPaneContext-sep-reply", true);	ShowMenuItem("threadPaneContext-moveMenu", true);	EnableMenuItem("threadPaneContext-moveMenu", (numSelected > 0));	ShowMenuItem("threadPaneContext-copyMenu", true);	EnableMenuItem("threadPaneContext-copyMenu", (numSelected > 0));	ShowMenuItem("threadPaneContext-saveAs", (numSelected <= 1));	EnableMenuItem("threadPaneContext-saveAs", (numSelected == 1));	ShowMenuItem("threadPaneContext-print", true);	EnableMenuItem("threadPaneContext-print", (numSelected > 0));	ShowMenuItem("threadPaneContext-delete", true);	EnableMenuItem("threadPaneContext-delete", (numSelected > 0));	ShowMenuItem("threadPaneContext-sep-edit", (numSelected <= 1));	ShowMenuItem("threadPaneContext-addSenderToAddressBook", (numSelected <= 1));	EnableMenuItem("threadPaneContext-addSenderToAddressBook", false);	ShowMenuItem("threadPaneContext-addAllToAddressBook", (numSelected <= 1));	EnableMenuItem("threadPaneContext-addAllToAddressBook", false);	return(true);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/eff84e8c353fddb971747b7270fb35c322822ea8/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js