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;