diff options
author | Vincent Richard <[email protected]> | 2014-01-03 21:15:35 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-01-03 21:15:35 +0000 |
commit | f08431b065bd53e0dfe28f58c4053b9f1412e74b (patch) | |
tree | 3b5cb9be3653620feea88e2df146cbe75cce3248 /src | |
parent | Loop on SSL_write/gnutls_record_send in blocking send. (diff) | |
download | vmime-f08431b065bd53e0dfe28f58c4053b9f1412e74b.tar.gz vmime-f08431b065bd53e0dfe28f58c4053b9f1412e74b.zip |
Allow "200" response code to RSET command, as per RFC-876.
Diffstat (limited to 'src')
-rw-r--r-- | src/vmime/net/smtp/SMTPTransport.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |