diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-03-07 22:14:47 -0800 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-03-07 22:14:47 -0800 |
commit | f3be74e24f4b460bf309e4b6289973c34b137382 (patch) | |
tree | da08b5c577685b6fc395d87a287b8d8717cbb149 /src/core/imap/MCIMAPSession.cpp | |
parent | a55c8f370bd663ea1d31fed230987711aa1cf176 (diff) |
Improved error management
Diffstat (limited to 'src/core/imap/MCIMAPSession.cpp')
-rwxr-xr-x | src/core/imap/MCIMAPSession.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp index 8b8565d9..8f404cc9 100755 --- a/src/core/imap/MCIMAPSession.cpp +++ b/src/core/imap/MCIMAPSession.cpp @@ -480,6 +480,11 @@ bool IMAPSession::isVoIPEnabled() return mVoIPEnabled; } +String * IMAPSession::loginResponse() +{ + return mLoginResponse; +} + static bool hasError(int errorCode) { return ((errorCode != MAILIMAP_NO_ERROR) && (errorCode != MAILIMAP_NO_ERROR_AUTHENTICATED) && @@ -829,6 +834,7 @@ void IMAPSession::login(ErrorCode * pError) if (mImap->imap_response != NULL) { response = String::stringWithUTF8Characters(mImap->imap_response); } + MC_SAFE_REPLACE_COPY(String, mLoginResponse, response); if (response->locationOfString(MCSTR("not enabled for IMAP use")) != -1) { * pError = ErrorGmailIMAPNotEnabled; } |