Allow "200" response code to RSET command, as per RFC-876.

This commit is contained in:
Vincent Richard 2014-01-03 22:15:35 +01:00
parent 696e3ff902
commit f08431b065

View File

@ -212,7 +212,11 @@ void SMTPTransport::sendEnvelope
{
commands->writeToSocket(m_connection->getSocket());
if ((resp = m_connection->readResponse())->getCode() != 250)
resp = m_connection->readResponse();
if (resp->getCode() != 250 &&
resp->getCode() != 200) // RFC-876: << In reply to a RSET and/or a NOOP command,
// some servers reply "200" >>
{
disconnect();