From 8d1f80ed93d5c23a74705e1627b71cef103e067a Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Tue, 3 May 2016 22:47:17 -0700 Subject: Extra capabilities of Courier-IMAP --- src/core/imap/MCIMAPSession.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/core') 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; -- cgit v1.2.3