diff options
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; } |