rem: if (!(server.canCompactFoldersOnServer)) 
add: if (!(server && server.canCompactFoldersOnServer)) 
context: function IsCompactFolderEnabled(){  var folderURI = GetSelectedFolderURI();  var server = GetServer(folderURI);  if (!(server.canCompactFoldersOnServer))    return false;  var folderTree = GetFolderTree();  var startIndex = {};  var endIndex = {};  folderTree.treeBoxObject.selection.getRangeAt(0, startIndex, endIndex);  if (startIndex.value < 0)        return false;  var folderResource = GetFolderResource(folderTree, startIndex.value);  if (! folderResource)        return false;  return GetFolderAttribute(folderTree, folderResource, "CanCompact") == "true" && isCommandEnabled("cmd_compactFolder");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2bff1c5bd233d6da21ab2ae6b054eb382bebb350/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js