fix(mail(dav)): add support for property {DAV:}getcontentlength

This commit is contained in:
Francis Lachapelle committed 2021-11-09 17:11:09 -05:00
1 parent 4df5e4b8fc
commit 9c2b3bd473
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -1776,6 +1776,8 @@ static NSInteger _compareFetchResultsByUID (id entry1, id entry2, NSArray *uids)
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"];
}
+1 -1
View File
@@ -1273,7 +1273,7 @@ static BOOL debugSoParts = NO;
- (NSString *) davContentLength
{
return [[self fetchCoreInfos] valueForKey: @"size"];
return [NSString stringWithFormat: @"%@", [[self fetchCoreInfos] valueForKey: @"size"]];
}
- (NSDate *) davCreationDate