diff --git a/ActiveSync/SOGoActiveSyncDispatcher.m b/ActiveSync/SOGoActiveSyncDispatcher.m index bcb212350..833538e25 100644 --- a/ActiveSync/SOGoActiveSyncDispatcher.m +++ b/ActiveSync/SOGoActiveSyncDispatcher.m @@ -3041,7 +3041,7 @@ void handle_eas_terminate(int signum) - (void) processSearchMailbox: (id ) theDocumentElement inResponse: (WOResponse *) theResponse { - NSString *folderId, *realCollectionId, *itemId; + NSString *folderId, *realCollectionId, *itemId, *bodyPreferenceType, *mimeSupport; NSMutableArray *folderIdentifiers; SOGoMailAccounts *accountsFolder; SOGoMailAccount *accountFolder; @@ -3065,6 +3065,13 @@ void handle_eas_terminate(int signum) return; } + bodyPreferenceType = [[(id)[[(id)[theDocumentElement getElementsByTagName: @"BodyPreference"] lastObject] getElementsByTagName: @"Type"] lastObject] textValue]; + [context setObject: bodyPreferenceType forKey: @"BodyPreferenceType"]; + mimeSupport = [[(id)[theDocumentElement getElementsByTagName: @"MIMESupport"] lastObject] textValue]; + [context setObject: mimeSupport forKey: @"MIMESupport"]; + + [context setObject: @"8" forKey: @"MIMETruncation"]; + // FIXME: support more than one CollectionId tag + DeepTraversal folderId = [[(id)[[(id)[theDocumentElement getElementsByTagName: @"Query"] lastObject] getElementsByTagName: @"CollectionId"] lastObject] textValue]; folderIdentifiers = [NSMutableArray array]; diff --git a/NEWS b/NEWS index 7ab51ca97..673d21b8e 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,7 @@ Bug fixes - [web] fixed download of exported folders under iOS - [eas] improved alarms syncing with EAS devices (#4351) - [eas] avoid potential cache update when breaking sync queries (#4422) + - [eas] fixed EAS search 4.0.0 (2018-03-07) ------------------