if (NS_FAILED(rv)) return PR_TRUE;
if (!server || NS_FAILED(rv)) return PR_TRUE;
nsMsgAccountManager::findServerIndexByServer(nsISupports *element, void *aData){  nsresult rv;    nsCOMPtr<nsIMsgAccount> account = do_QueryInterface(element);  findServerByKeyEntry *entry = (findServerByKeyEntry*) aData;  // increment the index;  entry->index++;    nsCOMPtr<nsIMsgIncomingServer> server;  rv = account->GetIncomingServer(getter_AddRefs(server));  if (NS_FAILED(rv)) return PR_TRUE;    nsXPIDLCString key;  rv = server->GetKey(getter_Copies(key));  if (NS_FAILED(rv)) return PR_TRUE;  // stop when found,  // index will be set to the current index   if (nsCRT::strcmp(key, entry->key)==0)    return PR_FALSE;    return PR_TRUE;}