rem: setEnabled(deleteButton, canDelete); 
add: setEnabled(removeButton, canDelete); 
context: function updateButtons(tree,serverId) {  var canCreate = true;  var canDuplicate = true;  var canDelete = true;  var canSetDefault = true;  //dump("updateButtons\n");  //dump("serverId = " + serverId + "\n");  var account = getAccountFromServerId(serverId);  //dump("account = " + account + "\n");  if (account) {  var server = account.incomingServer;  var type = server.type;    if (account.identities.Count() < 1)      canSetDefault = false;  //dump("servertype = " + type + "\n");  var protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + type].getService(Components.interfaces.nsIMsgProtocolInfo);    canDuplicate = protocolinfo.canDuplicate;    canDelete = protocolinfo.canDelete;    if (!canDelete) {      canDelete = server.canDelete;    }  }  else {  // HACK  // if account is null, we have either selected a SMTP server, or there is a problem  // either way, we don't want the user to be able to delete it or duplicate it    canSetDefault = false;  canDelete = false;  canDuplicate = false;  }  if (tree.selectedItems.length < 1)    canDuplicate = canSetDefault = canDelete = false;  // check for disabled preferences on the account buttons.    //  Not currently handled by WSM or the main loop yet since these buttons aren't  //  under the IFRAME  if (nsPrefBranch.prefIsLocked(newAccountButton.getAttribute("prefstring")))    canCreate = false;  //if (nsPrefBranch.prefIsLocked(duplicateButton.getAttribute("prefstring")))  //  canDuplicate = false;  if (nsPrefBranch.prefIsLocked(setDefaultButton.getAttribute("prefstring")))    canSetDefault = false;  if (nsPrefBranch.prefIsLocked(deleteButton.getAttribute("prefstring")))    canDelete = false;  setEnabled(newAccountButton, canCreate);  setEnabled(duplicateButton, canDuplicate);  setEnabled(setDefaultButton, canSetDefault);  setEnabled(deleteButton, canDelete);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f385f17416a04555a8699752d497094e03e01e2a/AccountManager.js/buggy/mailnews/base/prefs/resources/content/AccountManager.js