diff options
Diffstat (limited to 'src/core/imap/MCIMAPSession.cc')
-rw-r--r-- | src/core/imap/MCIMAPSession.cc | 8 |
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; |