rem: ShowMenuItem("folderPaneContext-sep-new", ((numSelected<=1) && (specialFolder != "Unsent Messages"))); 
add: ShowMenuItem("folderPaneContext-newsSubscribe", (numSelected <= 1) && canSubscribeToFolder && isServer && serverType == 'nntp'); EnableMenuItem("folderPaneContext-subscribe", true); 
context: function fillFolderPaneContextMenu(){	var tree = GetFolderTree();	var selectedItems = tree.selectedItems;	var numSelected = selectedItems.length;    var popupNode = document.getElementById('folderPaneContext');	var targetFolder = document.popupNode.parentNode.parentNode;	if (targetFolder.getAttribute('selected') != 'true')	{      tree.selectItem(targetFolder);    }	var isServer = targetFolder.getAttribute('IsServer') == 'true';	var serverType = targetFolder.getAttribute('ServerType');	var specialFolder = targetFolder.getAttribute('SpecialFolder');	ShowMenuItem("folderPaneContext-getMessages", (numSelected <= 1) && (isServer && (serverType != 'nntp')));	EnableMenuItem("folderPaneContext-getMessages", true);	ShowMenuItem("folderPaneContext-openNewWindow", (numSelected <= 1) && !isServer);	EnableMenuItem("folderPaneContext-openNewWindow", (true));	SetupRenameMenuItem(targetFolder, numSelected, isServer, serverType, specialFolder);	SetupRemoveMenuItem(targetFolder, numSelected, isServer, serverType, specialFolder);	ShowMenuItem("folderPaneContext-emptyTrash", (numSelected <= 1) && (specialFolder == 'Trash'));	EnableMenuItem("folderPaneContext-emptyTrash", true);	ShowMenuItem("folderPaneContext-sendUnsentMessages", (numSelected <= 1) && (specialFolder == 'Unsent Messages'));	EnableMenuItem("folderPaneContext-sendUnsentMessages", true);	ShowMenuItem("folderPaneContext-unsubscribe", (numSelected <= 1) && ((serverType == 'nntp') && !isServer));	EnableMenuItem("folderPaneContext-unsubscribe", false);	ShowMenuItem("folderPaneContext-markFolderRead", (numSelected <= 1) && ((serverType == 'nntp') && !isServer));	EnableMenuItem("folderPaneContext-markFolderRead", false);	ShowMenuItem("folderPaneContext-sep-edit", (numSelected <= 1));	SetupNewMenuItem(targetFolder, numSelected, isServer, serverType, specialFolder);	ShowMenuItem("folderPaneContext-subscribe", (numSelected <= 1) && (serverType == 'nntp'));	EnableMenuItem("folderPaneContext-subscribe", true);	ShowMenuItem("folderPaneContext-sep-new", ((numSelected<=1) && (specialFolder != "Unsent Messages")));	ShowMenuItem("folderPaneContext-searchMessages", (numSelected<=1));	EnableMenuItem("folderPaneContext-searchMessages", false);	return(true);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/18196c4b732af6b94e9651fc3dc40ab0eabfa685/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js