rem: ShowMenuItem("threadPaneContext-moveMenu", true); EnableMenuItem("threadPaneContext-moveMenu", (numSelected > 0)); 
add: SetupMoveMenuItem("threadPaneContext-moveMenu", numSelected, isNewsgroup, false); SetupCopyMenuItem("threadPaneContext-copyMenu", numSelected, false); SetupSaveAsMenuItem("threadPaneContext-saveAs", numSelected, false); SetupPrintMenuItem("threadPaneContext-print", numSelected, false); SetupDeleteMenuItem("threadPaneContext-delete", numSelected, false); SetupAddSenderToABMenuItem("threadPaneContext-addSenderToAddressBook", numSelected, false); SetupAddAllToABMenuItem("threadPaneContext-addAllToAddressBook", numSelected, false); 
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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/eff84e8c353fddb971747b7270fb35c322822ea8/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js