rem: var folderOutliner = GetFolderOutliner(); var canCompact = GetFolderAttribute(folderOutliner, folderResource, "CanCompact") == "true"; 
add: var folderTree = GetFolderTree(); var canCompact = GetFolderAttribute(folderTree, folderResource, "CanCompact") == "true"; 
context: function SetupCompactMenuItem(folderResource, numSelected){  var folderOutliner = GetFolderOutliner();  var canCompact = GetFolderAttribute(folderOutliner, folderResource, "CanCompact") == "true";  ShowMenuItem("folderPaneContext-compact", (numSelected <=1) && canCompact);  var folder = GetMsgFolderFromResource(folderResource);  EnableMenuItem("folderPaneContext-compact", folder.isCommandEnabled("cmd_compactFolder"));  if(canCompact)  {    SetMenuItemLabel("folderPaneContext-compact", gMessengerBundle.getString("compactFolder"));  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/07d96867f11683becf5e1a6ca5e64e6a9324c957/mailContextMenus.js/buggy/mailnews/base/resources/content/mailContextMenus.js