Alright, here is a sample .pst file along with the code used to create it.
Basically, the desired output of both the calendar and inbox folder would be to be the same as the .eml file I included (except for how in the calendar folder there is the option to modify fields). This file shows the remove from calendar option (because the appointment is cancelled) and does not list me as the organizer because that was set in both the .ics file and the MailMessage.
The .eml file can be opened in its desired form in Outlook and dragged around between folders. I understand that this was not created with Outlook, but in Outlook a cancelled appointment will usually have the option to remove from the calendar and receiving an appointment from someone else will not list me as the organizer. The .eml can even be saved as a .msg file once opened in Outlook (by dragging the file onto the desktop) and does not have those issues.
In the calendar folder, the organizer issue is not there as we determined, but the cancelled status does not seem to carry over even though it was in the .ics file. In the inbox folder, the organizer issue is still there.
Thank you in advance, and I apologize for the delay.
using (var pst = Aspose.Email.Storage.Pst.PersonalStorage.Create(@“C:\temp\PST\CalTest.pst”, 0))
var calendar = pst.CreatePredefinedFolder(“Calendar”, StandardIpmFolder.Appointments);
var inbox = pst.CreatePredefinedFolder(“Inbox”, StandardIpmFolder.Inbox);
Aspose.Email.Calendar.Appointment appt = Aspose.Email.Calendar.Appointment.Load(@"C:\temp\PST\testCalendar.ics");
MailMessage msg = new MailMessage();
msg.Sender = "Organizer, Test <TestOrganizer@test.com>";
Console.WriteLine("Press any key to continue...");
CalendarOutput.zip (26.0 KB)