fix 359882 autoconfig checking for e-mail identity doesn't work if default account has multiple identities, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@215983 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -526,6 +526,9 @@ nsresult nsAutoConfig::getEmailAddr(nsACString & emailAddr)
|
||||
getter_Copies(prefValue));
|
||||
if (NS_FAILED(rv) || prefValue.IsEmpty())
|
||||
return PromptForEMailAddress(emailAddr);
|
||||
PRInt32 commandIndex = prefValue.FindChar(',');
|
||||
if (commandIndex != kNotFound)
|
||||
prefValue.Truncate(commandIndex);
|
||||
emailAddr = NS_LITERAL_CSTRING("mail.identity.") +
|
||||
prefValue + NS_LITERAL_CSTRING(".useremail");
|
||||
rv = mPrefBranch->GetCharPref(PromiseFlatCString(emailAddr).get(),
|
||||
|
||||
Reference in New Issue
Block a user