rem: var protocolinfo = Components.classes["component: 
add: var protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + type].getService(Components.interfaces.nsIMsgProtocolInfo); 
context: function updateButtons(tree,serverId) {  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["component://netscape/messenger/protocol/info;type=" + type].getService(Components.interfaces.nsIMsgProtocolInfo);    canDuplicate = protocolinfo.canDuplicate;	canDelete = protocolinfo.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;    setEnabled(duplicateButton, canDuplicate);  setEnabled(setDefaultButton, canSetDefault);  setEnabled(deleteButton, canDelete);  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0257791053c2b38e1dfaf2ee11afae973e82e394/AccountManager.js/clean/mailnews/base/prefs/resources/content/AccountManager.js