aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPSession.cc
diff options
context:
space:
mode:
authorGravatar CodaFi <devteam.codafi@gmail.com>2013-07-20 14:31:37 -0600
committerGravatar CodaFi <devteam.codafi@gmail.com>2013-07-20 14:31:37 -0600
commit63b3c76ca9cb1da991b4c82345eb9d5d1a590310 (patch)
treeb29fc94528f5661b8b9337d133b3fbe53ef541f3 /src/core/imap/MCIMAPSession.cc
parent5f57ace5f9fef1a1be47dcb6b25a0f8d804a4291 (diff)
Enable OAuth2 Capability Check
Diffstat (limited to 'src/core/imap/MCIMAPSession.cc')
-rw-r--r--src/core/imap/MCIMAPSession.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc
index b44efdfd..30047c0d 100644
--- a/src/core/imap/MCIMAPSession.cc
+++ b/src/core/imap/MCIMAPSession.cc
@@ -2976,6 +2976,10 @@ IndexSet * IMAPSession::capability(ErrorCode * pError)
result->addIndex(IMAPCapabilityQResync);
mQResyncEnabled = true;
}
+ if (mailimap_has_xoauth2(mImap)) {
+ result->addIndex(IMAPCapabilityXOAuth2);
+ mXOauth2Enabled = true;
+ }
* pError = ErrorNone;
result->autorelease();
@@ -3007,6 +3011,10 @@ bool IMAPSession::isIdentityEnabled()
return mIdentityEnabled;
}
+bool IMAPSession::isXOAuthEnabled() {
+ return mXOauth2Enabled;
+}
+
bool IMAPSession::isDisconnected()
{
return mState == STATE_DISCONNECTED;