nsCOMPtr<nsIAtom> atom; res = ccMan->GetCharsetAtom(aCharset, getter_AddRefs(atom));
res = AddCharsetToCache(atom, &mMailviewMenu, kNC_MailviewCharsetMenuRoot, mMailviewCacheStart, mMailviewCacheSize, mMailviewMenuRDFPosition);
NS_IMETHODIMP nsCharsetMenu::SetCurrentMailCharset(const PRUnichar * aCharset){  nsresult res;  NS_WITH_SERVICE(nsICharsetConverterManager2, ccMan, kCharsetConverterManagerCID, &res);  if (NS_FAILED(res)) return res;  nsCOMPtr<nsIAtom> atom;  res = ccMan->GetCharsetAtom(aCharset, getter_AddRefs(atom));  if (NS_FAILED(res)) return res;  return AddCharsetToCache(ccMan, atom, &mMailviewMenu, kNC_MailviewCharsetMenuRoot);}