rem: tree.selectItem(targetFolder); } 
add: tree.selectItem(targetFolder); } 
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');  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(targetFolder, numSelected, isServer, serverType, specialFolder);  SetupRemoveMenuItem(targetFolder, numSelected, isServer, serverType, specialFolder);    SetupCompactMenuItem(targetFolder, numSelected);  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-sep-edit", (numSelected <= 1));  SetupNewMenuItem(targetFolder, 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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/2e2b2640e391cde42fd0b529c53bdb93e90a6655/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js