mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Fixing bug 108912. Opening the accountmanager window panel for any activity is having adverse affect on the smtp server of the associated identity. Fixing the situation to use the smtp server of the identity only when the key is valid. In all other cases, default smtp server will be used to send messages. r=ducarroz, sr=sspitzer, a=asa@mozilla.org
This commit is contained in:
parent
00e2ae022a
commit
53c08f8f7d
@ -125,7 +125,7 @@ nsresult nsSmtpService::SendMailMessage(nsIFileSpec * aFilePath,
|
||||
if (aSenderIdentity) {
|
||||
nsXPIDLCString smtpServerKey;
|
||||
rv = aSenderIdentity->GetSmtpServerKey(getter_Copies(smtpServerKey));
|
||||
if (NS_SUCCEEDED(rv) && (const char *)smtpServerKey)
|
||||
if (NS_SUCCEEDED(rv) && !(smtpServerKey.IsEmpty()))
|
||||
rv = GetServerByKey(smtpServerKey,
|
||||
getter_AddRefs(smtpServer));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user