rem: var folderOutliner = GetFolderOutliner(); var canRename = GetFolderAttribute(folderOutliner, folderResource, "CanRename") == "true"; 
add: var folderTree = GetFolderTree(); var canRename = GetFolderAttribute(folderTree, folderResource, "CanRename") == "true"; 
context: function SetupRenameMenuItem(folderResource, numSelected, isServer, serverType, specialFolder){  var isSpecialFolder = specialFolder != 'none';  var isMail = serverType != 'nntp';  var folderOutliner = GetFolderOutliner();  var canRename = GetFolderAttribute(folderOutliner, folderResource, "CanRename") == "true";  ShowMenuItem("folderPaneContext-rename", (numSelected <= 1) && !isServer && (specialFolder == "none") && canRename);  var folder = GetMsgFolderFromResource(folderResource);  EnableMenuItem("folderPaneContext-rename", !isServer && folder.isCommandEnabled("cmd_renameFolder"));  if(canRename)  {    SetMenuItemLabel("folderPaneContext-rename", gMessengerBundle.getString("renameFolder"));  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/07d96867f11683becf5e1a6ca5e64e6a9324c957/mailContextMenus.js/buggy/mailnews/base/resources/content/mailContextMenus.js