char *serverUri; rv = server->GetServerURI(&serverUri); if (NS_FAILED(rv)) return PR_TRUE;
nsCOMPtr <nsIFolder> serverFolder; rv = server->GetRootFolder(getter_AddRefs(serverFolder)); if(NS_FAILED(rv)) return PR_TRUE;
nsMsgAccountManagerDataSource::createServerResources(nsISupports *element,                                                     void *data){  nsresult rv;  // get parameters out of the data argument  serverCreationParams *params = (serverCreationParams*)data;  nsISupportsArray *servers = params->serverArray;  nsIRDFService *rdf = params->rdfService;  // the server itself is in the element argument  nsIMsgIncomingServer *server;  rv = element->QueryInterface(nsIMsgIncomingServer::GetIID(),                               (void **)&server);  if (NS_FAILED(rv)) return PR_TRUE;  // get the URI from the incoming server  char *serverUri;  rv = server->GetServerURI(&serverUri);  if (NS_FAILED(rv)) return PR_TRUE;  printf("createServerResources: Adding %s\n", serverUri);  // get the corresponding RDF resource  // RDF will create the server resource if it doesn't already exist  nsIRDFResource *serverResource;  rv = rdf->GetResource(serverUri, &serverResource);  if (NS_FAILED(rv)) return PR_TRUE;  // add the resource to the array  rv = servers->AppendElement(serverResource);  if (NS_FAILED(rv)) return PR_TRUE;    NS_RELEASE(server);    return PR_TRUE;}