diff --git a/ActiveSync/SOGoActiveSyncDispatcher.m b/ActiveSync/SOGoActiveSyncDispatcher.m index 73c072c7b..633782927 100644 --- a/ActiveSync/SOGoActiveSyncDispatcher.m +++ b/ActiveSync/SOGoActiveSyncDispatcher.m @@ -403,17 +403,24 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOGoAppointmentFolders *appointmentFolders; SOGoCacheGCSObject *o; NSString *key; + id newFolder; nameInContainer = nil; appointmentFolders = [userFolder privateCalendars: @"Calendar" inContext: context]; [appointmentFolders newFolderWithName: displayName nameInContainer: &nameInContainer]; + + newFolder = [appointmentFolders lookupName: nameInContainer + inContext: context + acquire: NO]; + [newFolder setSynchronize: YES]; + if (type == 13) nameInContainer = [NSString stringWithFormat: @"vevent/%@", nameInContainer]; else nameInContainer = [NSString stringWithFormat: @"vtodo/%@", nameInContainer]; - + key = [NSString stringWithFormat: @"%@+%@", [context objectForKey: @"DeviceId"], nameInContainer ]; o = [SOGoCacheGCSObject objectWithName: key inContainer: nil]; [o setObjectType: ActiveSyncFolderCacheObject]; @@ -428,12 +435,19 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOGoContactFolders *contactFolders; SOGoCacheGCSObject *o; NSString *key; + id newFolder; nameInContainer = nil; contactFolders = [userFolder privateContacts: @"Contacts" inContext: context]; [contactFolders newFolderWithName: displayName nameInContainer: &nameInContainer]; + + newFolder = [contactFolders lookupName: nameInContainer + inContext: context + acquire: NO]; + [newFolder setSynchronize: YES]; + nameInContainer = [NSString stringWithFormat: @"vcard/%@", nameInContainer]; key = [NSString stringWithFormat: @"%@+%@", [context objectForKey: @"DeviceId"], nameInContainer ]; diff --git a/NEWS b/NEWS index cb4ef99a5..40a1d4aab 100644 --- a/NEWS +++ b/NEWS @@ -4,7 +4,10 @@ New features - new junk/not junk capability with generic SMTP integration -Buf fixes +Enhancements + - newly created folders using EAS are always sync'ed by default (#3454) + +Bug fixes - now always generate invitation updates when using EAS - rewrote the string sanitization to be 32-bit Unicode safe