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

This commit is contained in:
Francis Lachapelle
2021-11-09 17:10:17 -05:00
parent 4df5e4b8fc
commit 9c2b3bd473
2 changed files with 3 additions and 1 deletions
+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