NS_ENSURE_ARG_POINTER(server); NS_ENSURE_ARG_POINTER(_retval);
nsMsgAccountManager::GetIdentitiesForServer(nsIMsgIncomingServer *server,                                            nsISupportsArray **_retval){  nsresult rv;  rv = LoadAccounts();  if (NS_FAILED(rv)) return rv;    nsCOMPtr<nsISupportsArray> identities;  rv = NS_NewISupportsArray(getter_AddRefs(identities));  if (NS_FAILED(rv)) return rv;    findIdentitiesByServerEntry identityInfo;  identityInfo.server = server;  identityInfo.identities = identities;    m_accounts->EnumerateForwards(findIdentitiesForServer,                                (void *)&identityInfo);  // do an addref for the caller.  *_retval = identities;  NS_ADDREF(*_retval);  return NS_OK;}