aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/imap/MCIMAPAsyncSession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/async/imap/MCIMAPAsyncSession.cpp')
-rwxr-xr-xsrc/async/imap/MCIMAPAsyncSession.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/async/imap/MCIMAPAsyncSession.cpp b/src/async/imap/MCIMAPAsyncSession.cpp
index aa7be032..af8a8dfa 100755
--- a/src/async/imap/MCIMAPAsyncSession.cpp
+++ b/src/async/imap/MCIMAPAsyncSession.cpp
@@ -76,6 +76,7 @@ IMAPAsyncSession::IMAPAsyncSession()
#endif
mGmailUserDisplayName = NULL;
mQueueRunning = false;
+ mIdleEnabled = false;
}
IMAPAsyncSession::~IMAPAsyncSession()
@@ -246,6 +247,11 @@ String * IMAPAsyncSession::gmailUserDisplayName()
return mGmailUserDisplayName;
}
+bool IMAPAsyncSession::isIdleEnabled()
+{
+ return mIdleEnabled;
+}
+
IMAPAsyncConnection * IMAPAsyncSession::session()
{
IMAPAsyncConnection * session = new IMAPAsyncConnection();
@@ -820,6 +826,7 @@ void IMAPAsyncSession::automaticConfigurationDone(IMAPSession * session)
{
MC_SAFE_REPLACE_COPY(IMAPIdentity, mServerIdentity, session->serverIdentity());
MC_SAFE_REPLACE_COPY(String, mGmailUserDisplayName, session->gmailUserDisplayName());
+ mIdleEnabled = session->isIdleEnabled();
setDefaultNamespace(session->defaultNamespace());
mAutomaticConfigurationDone = true;
}