I’m using Aspose.Email 21.5 with c# to handle calendar items. I find some event’s recurrence pattern cannot be parsed correctly but I cannot find any regular that what recurrence will case the issue.
Period cannot be parsed from recurrence pattern. As a result, we I save the calendar to an msg file, the msg file cannot be opened by Outlook.
Sample codes here:
var mapiCalendar = MapiMessage.Load(@"F:\MissingPeriod.msg", new MsgLoadOptions()).ToMapiMessageItem() as MapiCalendar; Console.WriteLine(mapiCalendar.Recurrence.RecurrencePattern.Period); mapiCalendar.Save(@"F:\\new.msg", Aspose.Email.Calendar.AppointmentSaveFormat.Msg);
Two msg files have been attached.
SampleMsg.zip (23.8 KB)
Period is 0 while when I check the AppointmentRecur extended property, the period is 1. There may be some problem that the MapiCalendar cannot parse the recurrence property correctly. As the result, if I save the mapi calendar to a msg file, the msg file also contains wrong property. Currently I try to parse the period from AppointmentRecur property myself refer to https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxocal/cf7153b4-f8b5-4cb6-bf14-e78d21f94814.
Could you help to investigate the issue and try to fix it in further release?