PR_snprintf(key, 10, "%s%d",prefix, i++); nsStringKey hashKey(key);
aResult=prefix; aResult.AppendInt(i++); nsCStringKey hashKey(aResult);
nsMsgAccountManager::getUniqueKey(const char* prefix, nsHashtable *hashTable){  PRInt32 i=1;  char key[30];  PRBool unique=PR_FALSE;  do {    PR_snprintf(key, 10, "%s%d",prefix, i++);    nsStringKey hashKey(key);    void* hashElement = hashTable->Get(&hashKey);        if (!hashElement) unique=PR_TRUE;  } while (!unique);  return nsCRT::strdup(key);}