diff options
author | Sergei Epatov <sepatov@readdle.com> | 2016-02-01 11:48:15 +0200 |
---|---|---|
committer | Sergei Epatov <sepatov@readdle.com> | 2016-02-01 11:50:54 +0200 |
commit | cd9a226a8e2f3ae69e78a5d4e48a55d92fb484fe (patch) | |
tree | 5e66bfc158c586e433ed500b3a1a1aa93d84eb60 /src/core/smtp | |
parent | d01b7c38666b48f55685d6bf0a6304d7a86e4b3f (diff) |
Change error prefix to RSMErrorYahoo, change error msg substring to 'over the limit'
Diffstat (limited to 'src/core/smtp')
-rw-r--r-- | src/core/smtp/MCSMTPSession.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/smtp/MCSMTPSession.cpp b/src/core/smtp/MCSMTPSession.cpp index e6f4207b..2693737d 100644 --- a/src/core/smtp/MCSMTPSession.cpp +++ b/src/core/smtp/MCSMTPSession.cpp @@ -682,12 +682,12 @@ void SMTPSession::sendMessage(Address * from, Array * recipients, Data * message goto err; } } - else if (responseCode == 521 && response->locationOfString(MCSTR("limit")) != -1) { - * pError = ErrorSendMessageDailyLimitExceeded; + else if (responseCode == 521 && response->locationOfString(MCSTR("over the limit")) != -1) { + * pError = ErrorYahooSendMessageDailyLimitExceeded; goto err; } else if (responseCode == 554 && response->locationOfString(MCSTR("spam")) != -1) { - * pError = ErrorSendMessageSpamSuspected; + * pError = ErrorYahooSendMessageSpamSuspected; goto err; } |