diff options
author | Viktor Gedzenko <foxinushka@gmail.com> | 2017-08-29 23:09:23 +0300 |
---|---|---|
committer | HoĆ V. DINH <dinh.viet.hoa@gmail.com> | 2017-08-29 13:09:23 -0700 |
commit | a51842db6be99f7888266a131c1516cbfb0f5377 (patch) | |
tree | 33abf6c4392493082959010345fead94b1db3f39 | |
parent | 4344731bfcf8276d0623bd96ca9d0e9f0774e78c (diff) |
Fixed fake 'Auth Error' on iCloud when service responses with 'BAD [UNAVAILABLE] Service temporarily unavailable' (#1642)
-rw-r--r-- | src/core/imap/MCIMAPSession.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp index 4d23da60..bca57003 100644 --- a/src/core/imap/MCIMAPSession.cpp +++ b/src/core/imap/MCIMAPSession.cpp @@ -949,6 +949,10 @@ void IMAPSession::login(ErrorCode * pError) else if (response->locationOfString(MCSTR("Login to your account via a web browser")) != -1) { * pError = ErrorOutlookLoginViaWebBrowser; } + else if (response->locationOfString(MCSTR("Service temporarily unavailable")) != -1) { + mShouldDisconnect = true; + * pError = ErrorConnection; + } else { * pError = ErrorAuthentication; } |