Skip to content

Commit

Permalink
fix(mail(dav)): add support for property {DAV:}getcontentlength
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Nov 9, 2021
1 parent 4df5e4b commit 9c2b3bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions SoObjects/Mailer/SOGoMailFolder.m
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,8 @@ - (NSDictionary *) davIMAPFieldsTable
forKey: @"{urn:schemas:mailheader:}references"];
[davIMAPFieldsTable setObject: @"BODY[HEADER.FIELDS (SUBJECT)]"
forKey: @"{DAV:}displayname"];
[davIMAPFieldsTable setObject: @"RFC822.SIZE"
forKey: @"{DAV:}getcontentlength"];
[davIMAPFieldsTable setObject: @"BODY[HEADER.FIELDS (TO)]"
forKey: @"{urn:schemas:mailheader:}to"];
}
Expand Down
2 changes: 1 addition & 1 deletion SoObjects/Mailer/SOGoMailObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ - (BOOL) davIsCollection

- (NSString *) davContentLength
{
return [[self fetchCoreInfos] valueForKey: @"size"];
return [NSString stringWithFormat: @"%@", [[self fetchCoreInfos] valueForKey: @"size"]];
}

- (NSDate *) davCreationDate
Expand Down

0 comments on commit 9c2b3bd

Please sign in to comment.