aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPSession.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/imap/MCIMAPSession.cc')
-rw-r--r--src/core/imap/MCIMAPSession.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc
index a3415468..6554704f 100644
--- a/src/core/imap/MCIMAPSession.cc
+++ b/src/core/imap/MCIMAPSession.cc
@@ -2730,6 +2730,11 @@ IndexSet * IMAPSession::capability(ErrorCode * pError)
result->addIndex(IMAPCapabilityXList);
mXListEnabled = true;
}
+ if (mailimap_has_extension(mImap, (char *) "X-GM-EXT-1")) {
+ // Disable use of XLIST if this is the Gmail IMAP server because it implements
+ // RFC 6154.
+ mXListEnabled = false;
+ }
if (mailimap_has_idle(mImap)) {
result->addIndex(IMAPCapabilityIdle);
mIdleEnabled = true;