mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
fix 359882 autoconfig checking for e-mail identity doesn't work if default account has multiple identities, sr=mscott
This commit is contained in:
parent
72b10e8d23
commit
1bd5dc7e6c
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user