nsCOMPtr <nsIMsgFolder> rootFolder; nsresult rv = GetRootFolder(getter_AddRefs(rootFolder)); if (NS_SUCCEEDED(rv) && rootFolder) { nsCOMPtr <nsIMsgImapMailFolder> imapFolder = do_QueryInterface(rootFolder); if (imapFolder) rv = imapFolder->ResetNamespaceReferences(); } return rv;
return NS_ERROR_NOT_IMPLEMENTED;
NS_IMETHODIMP nsImapIncomingServer::ResetNamespaceReferences(){  nsCOMPtr <nsIMsgFolder> rootFolder;  nsresult rv = GetRootFolder(getter_AddRefs(rootFolder));  if (NS_SUCCEEDED(rv) && rootFolder)  {    nsCOMPtr <nsIMsgImapMailFolder> imapFolder = do_QueryInterface(rootFolder);    if (imapFolder)      rv = imapFolder->ResetNamespaceReferences();  }  return rv;}