NS_ENSURE_ARG_POINTER(server);
nsMsgAccountManager::FindServerIndex(nsIMsgIncomingServer* server,                                     PRInt32* result){  nsresult rv;    nsXPIDLCString key;  rv = server->GetKey(getter_Copies(key));  findServerByKeyEntry findEntry;  findEntry.key = key;  findEntry.index = -1;    // do this by account because the account list is in order  m_accounts->EnumerateForwards(findServerIndexByServer, (void *)&findEntry);  // even if the search failed, we can return index.  // this means that all servers not in the array return an index higher  // than all "registered" servers  *result = findEntry.index;    return NS_OK;}