rem: ShowMenuItem("folderPaneContext-markAllRead", (numSelected <= 1) && isNewsgroup); EnableMenuItem("folderPaneContext-markAllRead", true); 
add: ShowMenuItem("folderPaneContext-markNewsgroupAllRead", (numSelected <= 1) && isNewsgroup); EnableMenuItem("folderPaneContext-markNewsgroupAllRead", true); 
context: function fillFolderPaneContextMenu(){  if (IsFakeAccount())    return false;  var folderTree = GetFolderTree();  var startIndex = {};  var endIndex = {};  folderTree.treeBoxObject.selection.getRangeAt(0, startIndex, endIndex);  if (startIndex.value < 0)    return false;  var numSelected = endIndex.value - startIndex.value + 1;  var folderResource = GetFolderResource(folderTree, startIndex.value);  var isServer = GetFolderAttribute(folderTree, folderResource, "IsServer") == 'true';  var serverType = GetFolderAttribute(folderTree, folderResource, "ServerType");  var specialFolder = GetFolderAttribute(folderTree, folderResource, "SpecialFolder");  var canSubscribeToFolder = (serverType == "nntp") || (serverType == "imap");  var isNewsgroup = !isServer && serverType == 'nntp';  var canGetMessages =  (isServer && (serverType != "nntp") && (serverType !="none")) || isNewsgroup;  EnableMenuItem("folderPaneContext-properties", true);  ShowMenuItem("folderPaneContext-getMessages", (numSelected <= 1) && canGetMessages);  EnableMenuItem("folderPaneContext-getMessages", true);  ShowMenuItem("folderPaneContext-openNewWindow", (numSelected <= 1) && !isServer);  EnableMenuItem("folderPaneContext-openNewWindow", true);  SetupRenameMenuItem(folderResource, numSelected, isServer, serverType, specialFolder);  SetupRemoveMenuItem(folderResource, numSelected, isServer, serverType, specialFolder);  SetupCompactMenuItem(folderResource, numSelected);  ShowMenuItem("folderPaneContext-copy-location", !isServer);  ShowMenuItem("folderPaneContext-emptyTrash", (numSelected <= 1) && (specialFolder == 'Trash'));  EnableMenuItem("folderPaneContext-emptyTrash", true);  var showSendUnsentMessages = (numSelected <= 1) && (specialFolder == 'Unsent Messages');  ShowMenuItem("folderPaneContext-sendUnsentMessages", showSendUnsentMessages);  if (showSendUnsentMessages) {    EnableMenuItem("folderPaneContext-sendUnsentMessages", IsSendUnsentMsgsEnabled(folderResource));  }  ShowMenuItem("folderPaneContext-sep-edit", (numSelected <= 1));  SetupNewMenuItem(folderResource, numSelected, isServer, serverType, specialFolder);  ShowMenuItem("folderPaneContext-subscribe", (numSelected <= 1) && canSubscribeToFolder);  EnableMenuItem("folderPaneContext-subscribe", true);  ShowMenuItem("folderPaneContext-sep1", (numSelected <= 1) && !isServer);// News folder context menu =============================================  ShowMenuItem("folderPaneContext-newsUnsubscribe", (numSelected <= 1) && canSubscribeToFolder && isNewsgroup);  EnableMenuItem("folderPaneContext-newsUnsubscribe", true);  ShowMenuItem("folderPaneContext-markAllRead", (numSelected <= 1) && isNewsgroup);  EnableMenuItem("folderPaneContext-markAllRead", true);// End of News folder context menu =======================================  ShowMenuItem("folderPaneContext-searchMessages", (numSelected<=1));  EnableMenuItem("folderPaneContext-searchMessages", IsCanSearchMessagesEnabled());  return(true);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/400db9964fd259de1b588a057493ef801d29a75c/mailContextMenus.js/buggy/mailnews/base/resources/content/mailContextMenus.js