diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-05-16 21:37:34 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-05-16 21:37:41 -0700 |
commit | 30f5297f7315bd572e12a7bdf417471e1be14b30 (patch) | |
tree | 3d9ee6f8e24280f476e31e977f9acb9bfe7ff140 | |
parent | df85a8925e4de9480a5a153f3101486743979570 (diff) |
Fixed #1403: error message when IMAP is disabled for the domain
-rwxr-xr-x | src/core/imap/MCIMAPSession.cpp | 3 |
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; } |