From 6200a5dbd7c8da9c4c146aa98cd6a68014b43415 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Mon, 31 Oct 2016 10:24:16 -0400 Subject: [PATCH] (fix) support replied/forwarded flags using EAS (fixes #3796) --- ActiveSync/SOGoMailObject+ActiveSync.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ActiveSync/SOGoMailObject+ActiveSync.m b/ActiveSync/SOGoMailObject+ActiveSync.m index e0ae53314..5968aaebf 100644 --- a/ActiveSync/SOGoMailObject+ActiveSync.m +++ b/ActiveSync/SOGoMailObject+ActiveSync.m @@ -1291,6 +1291,13 @@ struct GlobalObjectId { [s appendFormat: @"%@", [[[self inReplyTo] dataUsingEncoding: NSUTF8StringEncoding] activeSyncRepresentationInContext: context]]; else if ([[self messageId] length] > 0) [s appendFormat: @"%@", [[[self messageId] dataUsingEncoding: NSUTF8StringEncoding] activeSyncRepresentationInContext: context]]; + + if ([self replied]) + [s appendFormat: @"%d", 1]; + else if ([self forwarded]) + [s appendFormat: @"%d", 3]; + else + [s appendFormat: @"%d", 0]; } // FIXME - support these in the future