diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-05-03 22:47:17 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-05-03 22:47:17 -0700 |
commit | 8d1f80ed93d5c23a74705e1627b71cef103e067a (patch) | |
tree | 1ce643833f61c9f754f867396652c280a35865fd /src | |
parent | 9614c81633ebe1711c06488af68cc1079f37b253 (diff) |
Extra capabilities of Courier-IMAP
Diffstat (limited to 'src')
-rwxr-xr-x | src/core/imap/MCIMAPSession.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp index 3d3830cc..48491121 100755 --- a/src/core/imap/MCIMAPSession.cpp +++ b/src/core/imap/MCIMAPSession.cpp @@ -643,9 +643,15 @@ void IMAPSession::connect(ErrorCode * pError) MC_SAFE_REPLACE_RETAIN(String, mWelcomeString, String::stringWithUTF8Characters(mImap->imap_response)); mYahooServer = (mWelcomeString->locationOfString(MCSTR("yahoo.com")) != -1); #ifdef LIBETPAN_HAS_MAILIMAP_163_WORKAROUND - if(mWelcomeString->locationOfString(MCSTR("Coremail System IMap Server Ready")) != -1) + if (mWelcomeString->locationOfString(MCSTR("Coremail System IMap Server Ready")) != -1) mailimap_set_163_workaround_enabled(mImap, 1); #endif + if (mWelcomeString->locationOfString(MCSTR("Courier-IMAP")) != -1) { + LOCK(); + mIdleEnabled = true; + UNLOCK(); + mNamespaceEnabled = true; + } } mState = STATE_CONNECTED; |