rem: var serverFolder = serverResource.QueryInterface(Components.interfaces.nsIMsgFolder); 
add: var serverFolder = serverResource.QueryInterface(Components.interfaces.nsIMsgFolder); var incomingServer = serverFolder.server; var account = accountManager.FindAccountForServer(incomingServer); return account; 
context: function getAccountFromServerId(serverId) {  // get the account by dipping into RDF and then into the acount manager  var serverResource = RDF.GetResource(serverId);  try {  var serverFolder =    serverResource.QueryInterface(Components.interfaces.nsIMsgFolder);  } catch (ex) {    return null;  }  var incomingServer = serverFolder.server;  var account = accountManager.FindAccountForServer(incomingServer);  return account;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cce39c01129078ddf5f8ad23a5667a3fece27ff0/AccountManager.js/buggy/mailnews/base/prefs/resources/content/AccountManager.js