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

pull/270/head
Francis Lachapelle 2020-03-02 14:04:47 -05:00
parent 62e25f6c13
commit da51482ce1
1 changed files with 4 additions and 3 deletions

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