aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-05-06 10:13:03 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-05-06 10:13:03 -0700
commitc172dc56f5d707b233b46f8e322e133a7e655b73 (patch)
treee1e08bbf62daf0ff1ea779179dcc051e2fedbce6 /src/core
parentf748093fbe892b449d1933601619b5f6a082ea63 (diff)
Don't fail on login when identity fails
Diffstat (limited to 'src/core')
-rwxr-xr-xsrc/core/imap/MCIMAPSession.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc
index ea3f7462..09ee841d 100755
--- a/src/core/imap/MCIMAPSession.cc
+++ b/src/core/imap/MCIMAPSession.cc
@@ -963,10 +963,12 @@ void IMAPSession::login(ErrorCode * pError)
if (isIdentityEnabled()) {
IMAPIdentity * serverIdentity = identity(clientIdentity(), pError);
if (* pError != ErrorNone) {
+ // Ignore identity errors
MCLog("fetch identity failed");
- return;
}
- MC_SAFE_REPLACE_RETAIN(IMAPIdentity, mServerIdentity, serverIdentity);
+ else {
+ MC_SAFE_REPLACE_RETAIN(IMAPIdentity, mServerIdentity, serverIdentity);
+ }
}
}
else {