зеркало из https://github.com/mozilla/pjs.git
fix 359882 autoconfig checking for e-mail identity doesn't work if default account has multiple identities, sr=mscott
This commit is contained in:
Родитель
3c84270ee8
Коммит
6c35a48ed5
|
@ -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(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче