aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/smtp
diff options
context:
space:
mode:
authorGravatar Sergei Epatov <sepatov@readdle.com>2016-02-01 11:48:15 +0200
committerGravatar Sergei Epatov <sepatov@readdle.com>2016-02-01 11:50:54 +0200
commitcd9a226a8e2f3ae69e78a5d4e48a55d92fb484fe (patch)
tree5e66bfc158c586e433ed500b3a1a1aa93d84eb60 /src/core/smtp
parentd01b7c38666b48f55685d6bf0a6304d7a86e4b3f (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.cpp6
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;
}