nsCOMPtr<nsIMsgAccount> account = do_QueryInterface(element, &rv); if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIMsgIncomingServer> server = do_QueryInterface((nsISupports*)element, &rv); if (NS_FAILED(rv)) return PR_TRUE;
nsMsgAccountManager::getServersToArray(nsISupports *element, void *aData){  nsresult rv;  nsCOMPtr<nsIMsgAccount> account = do_QueryInterface(element, &rv);  if (NS_FAILED(rv)) return rv;    nsISupportsArray *array = (nsISupportsArray*)aData;    nsCOMPtr<nsIMsgIncomingServer> server;  rv = account->GetIncomingServer(getter_AddRefs(server));  if (NS_SUCCEEDED(rv))     array->AppendElement(server);  return PR_TRUE;}