From 4eafd2bd5841c0beab0c4369486d2c584da381fa Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 6 Aug 2012 19:19:15 +0000 Subject: [PATCH] Monotone-Parent: 152cd7be8bdfd9ff8cd05ec730d08c591d29dc2e Monotone-Revision: e14333177a9e3223d083bb94a4a7a18746ee7e12 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-08-06T19:19:15 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ OpenChange/MAPIStoreRecurrenceUtils.m | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 501b57b70..ea56b998a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2012-08-06 Wolfgang Sourdeau + * OpenChange/MAPIStoreRecurrenceUtils.m (-[iCalRecurrenceRule + fillRecurrencePattern:withEvent:inTimeZone:inMemCtx:]): fixed a + crash occurring when the exception has no recurrence-id and + ignore the specific occurrence. + * OpenChange/MAPIStoreMailVolatileMessage.m (MakeMessageBody): take "attachmentParts" parameter, deduced from the ivar with the corresponding name. diff --git a/OpenChange/MAPIStoreRecurrenceUtils.m b/OpenChange/MAPIStoreRecurrenceUtils.m index d07d640f6..4f36253d5 100644 --- a/OpenChange/MAPIStoreRecurrenceUtils.m +++ b/OpenChange/MAPIStoreRecurrenceUtils.m @@ -293,6 +293,7 @@ else { rp->EndDate = 0x5ae980df; + rp->OccurrenceCount = 0xa; rp->EndType = END_NEVER_END; } } @@ -426,7 +427,10 @@ for (count = 1; count < max; count++) { startDate = [[events objectAtIndex: count] recurrenceId]; - [modifiedDates addObject: startDate]; + if (startDate) + [modifiedDates addObject: startDate]; + else + [self errorWithFormat: @"missing recurrence-id for event %d", count]; } max = [modifiedDates count]; rp->ModifiedInstanceCount = max;