aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-01-03 21:15:35 +0000
committerVincent Richard <[email protected]>2014-01-03 21:15:35 +0000
commitf08431b065bd53e0dfe28f58c4053b9f1412e74b (patch)
tree3b5cb9be3653620feea88e2df146cbe75cce3248 /src
parentLoop on SSL_write/gnutls_record_send in blocking send. (diff)
downloadvmime-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.cpp6
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();