else if (property == kNC_PageTag) {  if (source == kNC_PageTitleServer) str = "am-server.xul"; else if (source == kNC_PageTitleCopies) str = "am-copies.xul"; else if (source == kNC_PageTitleAdvanced) str = "am-advanced.xul"; else str = "am-main.xul";
else if ((property == kNC_NameSort) || (property == kNC_FolderTreeNameSort)) {   nsCOMPtr<nsIMsgIncomingServer> server; rv = getServerForFolderNode(source, getter_AddRefs(server));   if (NS_FAILED(rv) || !server) return NS_RDF_NO_VALUE;        PRInt32 accountNum; nsCOMPtr<nsIMsgAccountManager> am = do_QueryReferent(mAccountManager);  if (isDefaultServer(server)) str = NS_LITERAL_STRING("0000"); else {  rv = am->FindServerIndex(server, &accountNum); if (NS_FAILED(rv)) return rv;   nsXPIDLCString serverType; server->GetType(getter_Copies(serverType));  if (nsCRT::strcasecmp(serverType, "none")==0) accountNum += 2000; else if (nsCRT::strcasecmp(serverType, "nntp")==0) accountNum += 3000; else accountNum += 1000;  str.AppendInt(accountNum); }
nsMsgAccountManagerDataSource::GetTarget(nsIRDFResource *source,                                         nsIRDFResource *property,                                         PRBool aTruthValue,                                         nsIRDFNode **target){  nsresult rv;  #ifdef DEBUG_amds  nsXPIDLCString srcval;  rv = source->GetValue(getter_Copies(srcval));  nsXPIDLCString propval;  rv = property->GetValue(getter_Copies(propval));  printf("GetTarget(%s on arc %s, ..)\n",         (const char*)srcval, (const char*)propval);#endif    rv = NS_RDF_NO_VALUE;  nsString str="";  if (property == kNC_Name) {    // XXX these should be localized    if (source == kNC_PageTitleMain)      str = "Main";        else if (source == kNC_PageTitleServer)      str = "Server";    else if (source == kNC_PageTitleCopies)      str = "Copies";    else if (source == kNC_PageTitleAdvanced)      str = "Advanced";    else {      nsCOMPtr<nsIMsgFolder> folder = do_QueryInterface(source, &rv);      if (NS_SUCCEEDED(rv)) {        PRBool isServer;		rv = folder->GetIsServer(&isServer);		if(NS_SUCCEEDED(rv) && isServer)		{			nsXPIDLString prettyName;			rv = folder->GetPrettyName(getter_Copies(prettyName));			if (NS_SUCCEEDED(rv))			  str = prettyName;		}      }    }  }  else if (property == kNC_PageTag) {    // do NOT localize these strings. these are the urls of the XUL files    if (source == kNC_PageTitleServer)      str = "am-server.xul";    else if (source == kNC_PageTitleCopies)      str = "am-copies.xul";    else if (source == kNC_PageTitleAdvanced)      str = "am-advanced.xul";    else      str = "am-main.xul";  }  if (str!="")    rv = createNode(str, target, getRDFService());  //if we have an empty string and we don't have an error value, then   //we don't have a value for RDF.  else if(NS_SUCCEEDED(rv))	rv = NS_RDF_NO_VALUE;  return rv;}