Skip to content

Commit

Permalink
(fix) handle inline attachments using EAS
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Jun 23, 2016
1 parent 7cf0aaa commit 0089f1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ActiveSync/SOGoMailObject+ActiveSync.m
Expand Up @@ -1231,6 +1231,12 @@ - (NSString *) activeSyncRepresentationInContext: (WOContext *) _context
}
else
{
if ([[value objectForKey: @"bodyId"] length])
{
[s appendFormat: @"<ContentId>%@</ContentId>", [[value objectForKey: @"bodyId"] activeSyncRepresentationInContext: context]];
[s appendFormat: @"<IsInline>%d</IsInline>", 1];
}

[s appendFormat: @"<Method>%d</Method>", 1]; // See: http://msdn.microsoft.com/en-us/library/ee160322(v=exchg.80).aspx
[s appendFormat: @"<EstimatedDataSize>%d</EstimatedDataSize>", [[value objectForKey: @"size"] intValue]];
//[s appendFormat: @"<IsInline>%d</IsInline>", 1];
Expand Down

0 comments on commit 0089f1d

Please sign in to comment.