Hi Jamie,
Thank you for writing to us.
Please have a look at the following source code that loads an appointment from ICS file and adds it to the PST. Please let us know if you have any additional query/inquiry related to Aspose.Email.
Example Code:
Appointment appointment = Appointment.Load(“Test.ics”); <o:p></o:p>
// Save the appointment to disk in ICS
format
MemoryStream memStream = new MemoryStream();
appointment.Save(memStream, AppointmentSaveFormat.Ics);
MailMessage mailMsg = new MailMessage();
mailMsg.AddAlternateView(appointment.RequestApointment());
MapiMessage mapiMsg = MapiMessage.FromMailMessage(mailMsg);
// Create new PST
PersonalStorage pst = PersonalStorage.Create("TestCalendar.pst", FileFormatVersion.Unicode);
// Add new folder "Calendar"
pst.CreatePredefinedFolder("Calendar",
StandardIpmFolder.Appointments);
FolderInfo folderInfo =
pst.GetPredefinedFolder(StandardIpmFolder.Appointments);
folderInfo.AddMessage(mapiMsg);