From 76edc5184c8012469041703254e946542ecc8e24 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 25 Jul 2011 12:55:44 +0000 Subject: [PATCH] Monotone-Parent: 07360851cf3a316ca37852af2234ebfc07bfe933 Monotone-Revision: 1daa99a3349eed6187c150245d4360becf9a5119 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-25T12:55:44 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 2 ++ SoObjects/Mailer/SOGoMailAccount.h | 1 + SoObjects/Mailer/SOGoMailAccount.m | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index fb8f3d1f5..d7468e701 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * SoObjects/Mailer/SOGoMailAccount.m (-hasCapability): new proxy method that determines whether an IMAP capability is present on the server. + (-supportsQResync): new method that returns whether the server + supports the "QRESYNC" capability. 2011-07-22 Wolfgang Sourdeau diff --git a/SoObjects/Mailer/SOGoMailAccount.h b/SoObjects/Mailer/SOGoMailAccount.h index 7bee0323b..6ad08bb42 100644 --- a/SoObjects/Mailer/SOGoMailAccount.h +++ b/SoObjects/Mailer/SOGoMailAccount.h @@ -67,6 +67,7 @@ typedef enum { /* capabilities */ - (BOOL) hasCapability: (NSString *) capability; - (BOOL) supportsQuotas; +- (BOOL) supportsQResync; - (id) getInboxQuota; - (BOOL) updateFilters; diff --git a/SoObjects/Mailer/SOGoMailAccount.m b/SoObjects/Mailer/SOGoMailAccount.m index 317077d66..f948942ec 100644 --- a/SoObjects/Mailer/SOGoMailAccount.m +++ b/SoObjects/Mailer/SOGoMailAccount.m @@ -244,6 +244,11 @@ static NSString *inboxFolderName = @"INBOX"; return [self hasCapability: @"quota"]; } +- (BOOL) supportsQResync +{ + return [self hasCapability: @"qresync"]; +} + - (id) getInboxQuota { SOGoMailFolder *inbox;