diff options
author | Vincent Richard <[email protected]> | 2014-01-03 21:57:41 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-01-03 21:57:41 +0000 |
commit | df56d99b83573e50edc54f0367f7f4a6bb520600 (patch) | |
tree | 4a7372bdc7aa385b47b98b9b0f097f19c2a7c5f2 | |
parent | Do not wait for server response to QUIT command. (diff) | |
download | vmime-df56d99b83573e50edc54f0367f7f4a6bb520600.tar.gz vmime-df56d99b83573e50edc54f0367f7f4a6bb520600.zip |
Do not disconnect after recoverable error.
-rw-r--r-- | src/vmime/net/smtp/SMTPTransport.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/vmime/net/smtp/SMTPTransport.cpp b/src/vmime/net/smtp/SMTPTransport.cpp index 23a9a721..e2174dfb 100644 --- a/src/vmime/net/smtp/SMTPTransport.cpp +++ b/src/vmime/net/smtp/SMTPTransport.cpp @@ -234,8 +234,6 @@ void SMTPTransport::sendEnvelope // SIZE extension: insufficient system storage if (resp->getCode() == 452) { - disconnect(); - throw SMTPMessageSizeExceedsCurLimitsException (SMTPCommandError(commands->getLastCommandSent()->getText(), resp->getText(), resp->getCode(), resp->getEnhancedCode())); @@ -243,8 +241,6 @@ void SMTPTransport::sendEnvelope // SIZE extension: message size exceeds fixed maximum message size else if (resp->getCode() == 552) { - disconnect(); - throw SMTPMessageSizeExceedsMaxLimitsException (SMTPCommandError(commands->getLastCommandSent()->getText(), resp->getText(), resp->getCode(), resp->getEnhancedCode())); @@ -252,8 +248,6 @@ void SMTPTransport::sendEnvelope // Other error else { - disconnect(); - throw SMTPCommandError (commands->getLastCommandSent()->getText(), resp->getText(), resp->getCode(), resp->getEnhancedCode()); @@ -273,8 +267,6 @@ void SMTPTransport::sendEnvelope // SIZE extension: insufficient system storage if (resp->getCode() == 452) { - disconnect(); - throw SMTPMessageSizeExceedsCurLimitsException (SMTPCommandError(commands->getLastCommandSent()->getText(), resp->getText(), resp->getCode(), resp->getEnhancedCode())); @@ -282,8 +274,6 @@ void SMTPTransport::sendEnvelope // SIZE extension: message size exceeds fixed maximum message size else if (resp->getCode() == 552) { - disconnect(); - throw SMTPMessageSizeExceedsMaxLimitsException (SMTPCommandError(commands->getLastCommandSent()->getText(), resp->getText(), resp->getCode(), resp->getEnhancedCode())); @@ -291,8 +281,6 @@ void SMTPTransport::sendEnvelope // Other error else { - disconnect(); - throw SMTPCommandError (commands->getLastCommandSent()->getText(), resp->getText(), resp->getCode(), resp->getEnhancedCode()); @@ -307,8 +295,6 @@ void SMTPTransport::sendEnvelope if ((resp = m_connection->readResponse())->getCode() != 354) { - disconnect(); - throw SMTPCommandError (commands->getLastCommandSent()->getText(), resp->getText(), resp->getCode(), resp->getEnhancedCode()); @@ -344,8 +330,6 @@ void SMTPTransport::send if ((resp = m_connection->readResponse())->getCode() != 250) { - disconnect(); - throw SMTPCommandError ("DATA", resp->getText(), resp->getCode(), resp->getEnhancedCode()); } |