(fix) handle inline attachments using EAS

pull/217/head
Ludovic Marcotte 2016-06-23 11:29:02 -04:00
parent 7cf0aaa2f7
commit 0089f1dfdc
1 changed files with 6 additions and 0 deletions

View File

@ -1231,6 +1231,12 @@ struct GlobalObjectId {
}
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];