rem: var canRename; var folderNode = folderList[0]; canRename = (folderNode.getAttribute("CanRename") == "true"); 
add: var startIndex = {}; var endIndex = {}; selection.getRangeAt(0, startIndex, endIndex); var folderResource = GetFolderResource(folderOutliner, startIndex.value); var canRename = GetFolderAttribute(folderOutliner, folderResource, "CanRename") == "true"; 
context: function IsRenameFolderEnabled(){         var tree = GetFolderTree();    var folderList = tree.selectedItems;    if(folderList.length == 1)    {        var canRename;        var folderNode = folderList[0];        canRename = (folderNode.getAttribute("CanRename") == "true");        return canRename && isCommandEnabled("cmd_renameFolder");    }    else        return false;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1e0e99191d9d4f4f04fb4061b0ba91f347b8986f/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js