hostSession->SetNamespaceFromPrefForHost(aKey, personalNamespace, kPersonalNamespace);
hostSession->SetNamespaceFromPrefForHost(hostName, userName, personalNamespace, kPersonalNamespace);
NS_IMETHODIMP nsImapIncomingServer::SetKey(const char * aKey)  // override nsMsgIncomingServer's implementation...{	nsMsgIncomingServer::SetKey(aKey);	// okay now that the key has been set, we need to add ourselves to the	// host session list...	// every time we create an imap incoming server, we need to add it to the	// host session list!! 	nsresult rv;	NS_WITH_SERVICE(nsIImapHostSessionList, hostSession, kCImapHostSessionList, &rv);    if (NS_FAILED(rv)) return rv;	hostSession->AddHostToList(aKey);	char *personalNamespace = nsnull;	char *publicNamespace = nsnull;	char *otherUsersNamespace = nsnull;	rv = GetPersonalNamespace(&personalNamespace);	rv = GetPublicNamespace(&publicNamespace);	rv = GetOtherUsersNamespace(&otherUsersNamespace);	if (!personalNamespace && !publicNamespace && !otherUsersNamespace)		personalNamespace = PL_strdup("\"\"");	if (NS_SUCCEEDED(rv))	{		hostSession->SetNamespaceFromPrefForHost(aKey, personalNamespace, kPersonalNamespace);		PR_FREEIF(personalNamespace);	}	if (NS_SUCCEEDED(rv))	{		hostSession->SetNamespaceFromPrefForHost(aKey, publicNamespace, kPublicNamespace);		PR_FREEIF(publicNamespace);	}	if (NS_SUCCEEDED(rv))	{		hostSession->SetNamespaceFromPrefForHost(aKey, otherUsersNamespace, kOtherUsersNamespace);		PR_FREEIF(otherUsersNamespace);	}	return rv;}