From b820ded7241a857b479a5a1786e26d1a77697482 Mon Sep 17 00:00:00 2001 From: Sergei Epatov Date: Mon, 10 Aug 2015 16:40:10 +0300 Subject: - MCSMTPSession: use "5.7.1 " and "5.3.4 " error prefixes --- src/core/smtp/MCSMTPSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/smtp/MCSMTPSession.cpp b/src/core/smtp/MCSMTPSession.cpp index 375ef4b6..0c2016fd 100644 --- a/src/core/smtp/MCSMTPSession.cpp +++ b/src/core/smtp/MCSMTPSession.cpp @@ -673,11 +673,11 @@ void SMTPSession::sendMessage(Address * from, Array * recipients, Data * message } else if (r != MAILSMTP_NO_ERROR) { if ((responseCode == 550) && (response != NULL)) { - if (response->hasPrefix(MCSTR("5.3.4"))) { + if (response->hasPrefix(MCSTR("5.3.4 "))) { * pError = ErrorNeedsConnectToWebmail; goto err; } - else if (response->hasPrefix(MCSTR("5.7.1 Client does not have permissions to send as this sender"))) { + else if (response->hasPrefix(MCSTR("5.7.1 "))) { * pError = ErrorSendMessageNotAllowed; goto err; } -- cgit v1.2.3