From f08431b065bd53e0dfe28f58c4053b9f1412e74b Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 3 Jan 2014 22:15:35 +0100 Subject: [PATCH] Allow "200" response code to RSET command, as per RFC-876. --- src/vmime/net/smtp/SMTPTransport.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vmime/net/smtp/SMTPTransport.cpp b/src/vmime/net/smtp/SMTPTransport.cpp index 0020d010..23a9a721 100644 --- a/src/vmime/net/smtp/SMTPTransport.cpp +++ b/src/vmime/net/smtp/SMTPTransport.cpp @@ -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();