mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-02 10:05:26 +00:00
Monotone-Parent: 32b84d9dc2715067c885c49bfc26087eac4dcd2b
Monotone-Revision: 07360851cf3a316ca37852af2234ebfc07bfe933 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-25T12:52:56 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2011-07-25 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Mailer/SOGoMailAccount.m (-hasCapability): new proxy
|
||||
method that determines whether an IMAP capability is present on
|
||||
the server.
|
||||
|
||||
2011-07-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIStoreSOGo.m (sogo_table_get_row_count): added new
|
||||
|
||||
@@ -64,7 +64,10 @@ typedef enum {
|
||||
- (SOGoIMAPAclStyle) imapAclStyle;
|
||||
- (BOOL) imapAclConformsToIMAPExt;
|
||||
|
||||
/* capabilities */
|
||||
- (BOOL) hasCapability: (NSString *) capability;
|
||||
- (BOOL) supportsQuotas;
|
||||
|
||||
- (id) getInboxQuota;
|
||||
- (BOOL) updateFilters;
|
||||
|
||||
|
||||
@@ -227,15 +227,21 @@ static NSString *inboxFolderName = @"INBOX";
|
||||
return conforms;
|
||||
}
|
||||
|
||||
- (BOOL) supportsQuotas
|
||||
/* capabilities */
|
||||
- (BOOL) hasCapability: (NSString *) capability
|
||||
{
|
||||
NGImap4Client *imapClient;
|
||||
NSArray *capability;
|
||||
NSArray *capabilities;
|
||||
|
||||
imapClient = [[self imap4Connection] client];
|
||||
capability = [[imapClient capability] objectForKey: @"capability"];
|
||||
capabilities = [[imapClient capability] objectForKey: @"capability"];
|
||||
|
||||
return [capability containsObject: @"quota"];
|
||||
return [capabilities containsObject: capability];
|
||||
}
|
||||
|
||||
- (BOOL) supportsQuotas
|
||||
{
|
||||
return [self hasCapability: @"quota"];
|
||||
}
|
||||
|
||||
- (id) getInboxQuota
|
||||
|
||||
Reference in New Issue
Block a user