rem: return; 
add: return false; 
context: function fillFolderPaneContextMenu(){  var folderOutliner = GetFolderOutliner();  var startIndex = {};  var endIndex = {};  folderOutliner.outlinerBoxObject.selection.getRangeAt(0, startIndex, endIndex);  if (startIndex.value < 0)    return;  var numSelected = endIndex.value - startIndex.value + 1;  var folderResource = GetFolderResource(folderOutliner, startIndex.value);  var isServer = GetFolderAttribute(folderOutliner, folderResource, "IsServer") == 'true';  var serverType = GetFolderAttribute(folderOutliner, folderResource, "ServerType");  var specialFolder = GetFolderAttribute(folderOutliner, folderResource, "SpecialFolder");  var canSubscribeToFolder = (serverType == "nntp") || (serverType == "imap");  var isNewsgroup = !isServer && serverType == 'nntp';  var canGetMessages =  (isServer && (serverType != "nntp") && (serverType !="none")) || isNewsgroup;  EnableMenuItem("folderPaneContext-properties", !isServer);  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-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);// 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", true);  return(true);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3aff8695381aa55ba6cc9216c258f3da2a009968/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js