diff --git a/ActiveSync/SOGoMailObject+ActiveSync.m b/ActiveSync/SOGoMailObject+ActiveSync.m
index ca75b63e0..9e3205721 100644
--- a/ActiveSync/SOGoMailObject+ActiveSync.m
+++ b/ActiveSync/SOGoMailObject+ActiveSync.m
@@ -1250,7 +1250,7 @@ struct GlobalObjectId {
{
if ([[value objectForKey: @"bodyId"] length])
{
- [s appendFormat: @"%@", [[value objectForKey: @"bodyId"] activeSyncRepresentationInContext: context]];
+ [s appendFormat: @"%@", [[[value objectForKey: @"bodyId"] stringByTrimmingCharactersInSet: [NSCharacterSet characterSetWithCharactersInString: @"<>"]] activeSyncRepresentationInContext: context]];
[s appendFormat: @"%d", 1];
}
diff --git a/NEWS b/NEWS
index af49f5d37..43cddc3f9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,11 @@
-4.0.1 (2018-03-XX)
+4.0.5 (2018-MM-DD)
------------------
+Bug fixes
+ - [eas] strip '<>' from bodyId and when forwarding mails
+
+4.0.1 (2018-07-10)
+------------------
Bug fixes
- [web] prevent deletion of special folders using del key
- [eas] improved alarms syncing with EAS devices (#4351)
@@ -2710,3 +2715,4 @@ Bug Fixes
Local variables:
mode: text
End:
+