m_accounts->Enumerate(hashTableFindFirst, (void *)&entry);   if (!entry.found) return NS_ERROR_UNEXPECTED;  #if defined(DEBUG_alecf) || defined(DEBUG_sspitzer) printf("Account (%p) found\n", entry.account); #endif m_defaultAccount = entry.account;
SetDefaultAccount(firstAccount); } }
nsMsgAccountManager::GetDefaultAccount(nsIMsgAccount * *aDefaultAccount){  if (!aDefaultAccount) return NS_ERROR_NULL_POINTER;  if (!m_defaultAccount) {#if defined(DEBUG_alecf) || defined(DEBUG_sspitzer)    printf("No default account. Looking for one..\n");#endif        findEntry entry = { nsnull, PR_FALSE, nsnull };    m_accounts->Enumerate(hashTableFindFirst, (void *)&entry);    // are there ANY entries?    if (!entry.found) return NS_ERROR_UNEXPECTED;#if defined(DEBUG_alecf) || defined(DEBUG_sspitzer)    printf("Account (%p) found\n", entry.account);#endif    m_defaultAccount = entry.account;      }  *aDefaultAccount = m_defaultAccount;  NS_ADDREF(*aDefaultAccount);  return NS_OK;}