aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/smtp
diff options
context:
space:
mode:
authorGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2016-02-01 07:22:01 -0800
committerGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2016-02-01 07:22:01 -0800
commit897b4a23d27984b06dd2caf441268ef4b6ad9d67 (patch)
tree02d9d3822c40ae130349394171173aaec9d6a6f1 /src/core/smtp
parent1e6ee0892bd85fbcba26d3929da3b536d735c453 (diff)
parentcd9a226a8e2f3ae69e78a5d4e48a55d92fb484fe (diff)
Merge pull request #1343 from serjepatoff/master
2 new error codes
Diffstat (limited to 'src/core/smtp')
-rw-r--r--src/core/smtp/MCSMTPSession.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/smtp/MCSMTPSession.cpp b/src/core/smtp/MCSMTPSession.cpp
index 10a6163b..d0711c65 100644
--- a/src/core/smtp/MCSMTPSession.cpp
+++ b/src/core/smtp/MCSMTPSession.cpp
@@ -694,6 +694,14 @@ void SMTPSession::sendMessage(Address * from, Array * recipients, Data * message
goto err;
}
}
+ 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 = ErrorYahooSendMessageSpamSuspected;
+ goto err;
+ }
* pError = ErrorSendMessage;
MC_SAFE_REPLACE_COPY(String, mLastSMTPResponse, response);