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:
jefft%netscape.com 2000-10-11 01:16:19 +00:00
parent 78fa9c4e7d
commit d903e61ca2

View File

@ -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? */