From 05ed3cce9e5f8fd105d25a36f7b4b3b317aee436 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 27 Jul 2011 22:02:29 +0000 Subject: [PATCH] Monotone-Parent: 353341fbefbec06fd82685f146d83bc9bf269172 Monotone-Revision: 98084e25c04125bc23a53907661020b8ac004a5d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-27T22:02:29 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ OpenChange/MAPIStoreAppointmentWrapper.m | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 71cf6c265..fdf27b941 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-07-27 Wolfgang Sourdeau + * OpenChange/MAPIStoreAppointmentWrapper.m + (-getPidLidGlobalObjectId:inMemCtx:): work-around certain buggy + events which might now have a "CREATED" element. + * OpenChange/MAPIStoreContactsMessage.m: commented out "-getPrOabName:inMemCtx:" and "-getPrOabLangid:inMemCtx:" as they seem to be useful only for contact lists. diff --git a/OpenChange/MAPIStoreAppointmentWrapper.m b/OpenChange/MAPIStoreAppointmentWrapper.m index 4922064d2..e72621e97 100644 --- a/OpenChange/MAPIStoreAppointmentWrapper.m +++ b/OpenChange/MAPIStoreAppointmentWrapper.m @@ -396,6 +396,13 @@ _fillAppointmentRecurrencePattern (struct AppointmentRecurrencePattern *arp, /* /FIXME */ creationTime = [event created]; + if (!creationTime) + { + [self logWithFormat: @"" __location__ ": event has no 'CREATED' tag -> inventing one"]; + creationTime = [event lastModified]; + if (!creationTime) + creationTime = [NSCalendarDate date]; + } creationFileTime = [creationTime asFileTimeInMemCtx: NULL]; [nsData appendBytes: &creationFileTime->dwLowDateTime length: 4]; [nsData appendBytes: &creationFileTime->dwHighDateTime length: 4];