зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
df9c8fcd73
Коммит
5f060892ba
|
@ -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? */
|
||||
|
|
Загрузка…
Ссылка в новой задаче