mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
fixed bug 55351 - Unable to enter a password for a SMTP server; always send EHLO command first instead of parsing the greeting to decide whether the server is an SMTP or ESMTP server; r=bienvenu, sr=mscott
This commit is contained in:
parent
78fa9c4e7d
commit
d903e61ca2
@ -531,16 +531,8 @@ PRInt32 nsSmtpProtocol::SmtpResponse(nsIInputStream * inputStream, PRUint32 leng
|
||||
}
|
||||
|
||||
if (m_responseCode == 220 && nsCRT::strlen(m_responseText) && !m_tlsInitiated)
|
||||
{ // check for the greeting if it is a ESMTP server set capability accordingly
|
||||
if (m_responseText.Find("ESMTP", PR_TRUE) != -1)
|
||||
{
|
||||
SetFlag(SMTP_ESMTP_SERVER);
|
||||
m_nextStateAfterResponse = SMTP_EXTN_LOGIN_RESPONSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_nextStateAfterResponse = SMTP_LOGIN_RESPONSE;
|
||||
}
|
||||
{
|
||||
m_nextStateAfterResponse = SMTP_EXTN_LOGIN_RESPONSE;
|
||||
}
|
||||
|
||||
if(m_continuationResponse == -1) /* all done with this response? */
|
||||
|
Loading…
Reference in New Issue
Block a user