aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-05-16 21:37:34 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-05-16 21:37:41 -0700
commit30f5297f7315bd572e12a7bdf417471e1be14b30 (patch)
tree3d9ee6f8e24280f476e31e977f9acb9bfe7ff140
parentdf85a8925e4de9480a5a153f3101486743979570 (diff)
Fixed #1403: error message when IMAP is disabled for the domain
-rwxr-xr-xsrc/core/imap/MCIMAPSession.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp
index a09172ec..b48979bc 100755
--- a/src/core/imap/MCIMAPSession.cpp
+++ b/src/core/imap/MCIMAPSession.cpp
@@ -845,6 +845,9 @@ void IMAPSession::login(ErrorCode * pError)
if (response->locationOfString(MCSTR("not enabled for IMAP use")) != -1) {
* pError = ErrorGmailIMAPNotEnabled;
}
+ else if (response->locationOfString(MCSTR("IMAP access is disabled")) != -1) {
+ * pError = ErrorGmailIMAPNotEnabled;
+ }
else if (response->locationOfString(MCSTR("bandwidth limits")) != -1) {
* pError = ErrorGmailExceededBandwidthLimit;
}