fix(mail): validate IMAP ACL compliance on main mail account

This commit is contained in:
Francis Lachapelle
2020-03-02 14:04:47 -05:00
parent 62e25f6c13
commit da51482ce1

View File

@@ -29,10 +29,11 @@
- (BOOL) conformsToRFC4314
{
if ([[self clientObject] respondsToSelector: @selector(mailAccountFolder)])
return ([[[self clientObject] mailAccountFolder] imapAclStyle] == rfc4314);
SOGoMailAccount *account;
return NO;
account = [[self clientObject] lookupName: @"0" inContext: context acquire: NO];
return ([account imapAclStyle] == rfc4314);
}
- (void) setUserCanReadMails: (BOOL) userCanReadMails