rem: var folder = GetMsgFolderFromNode(targetFolder); 
add: var folder = GetMsgFolderFromResource(folderResource); 
context: function SetupRemoveMenuItem(targetFolder, numSelected, isServer, serverType, specialFolder){  var isMail = serverType != 'nntp';  var isSpecialFolder = specialFolder != "none";  //Can't currently delete Accounts or special folders.  var showRemove = (numSelected <=1) && (isMail && !isSpecialFolder) && !isServer;  ShowMenuItem("folderPaneContext-remove", showRemove);  if(showRemove)  {    var folder = GetMsgFolderFromNode(targetFolder);    EnableMenuItem("folderPaneContext-remove", folder.isCommandEnabled("cmd_delete"));  }  if(isMail && !isSpecialFolder)  {    SetMenuItemLabel("folderPaneContext-remove", gMessengerBundle.getString("removeFolder"));  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/1e0e99191d9d4f4f04fb4061b0ba91f347b8986f/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js