We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Recurring meeting times

Hi Aspose

Using Aspose.Email for Java 17.2, if we load the ICS file below using the code below, the 5 meetings are created with the time one hour out, e.g. 2pm not 3pm. If we remove the RRULE line, a single meeting is created on the correct day at 3pm. So it appears that the RRULE is causing a problem with the meeting times. Is there something we’re missing?

Thanks

ICS file
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//IONET Software//NONSGML Notes Release 9.0.1//EN
BEGIN:VEVENT
CLASS:PUBLIC
TRANSP:OPAQUE
DTSTART:20170410T150000
DTEND:20170410T160000
DTSTAMP:20170330T014756Z
LAST-MODIFIED:20170330T014756Z
RRULE:FREQ=DAILY;COUNT=5
SEQUENCE:0
ORGANIZER;CN=Joe User:mailto:juser@ionet.co.nz
UID:3A0D357CF5260277CC2580F30009E1CD
SUMMARY:Daily 5 (10/04/2017 030000 p.m.)
END:VEVENT
END:VCALENDAR

Code
PersonalStorage pst = null;
Appointment calDoc;
MailMessage calMsg;
MapiMessage calMapiMsg;
FolderInfo calFolder;
MapiCalendar mapiCal;
License asposeLicense;

try {
String pathPSTFileStr = “c:\temp\testPST.pst”;
String testFile = “c:\temp\test.ics”;
…set License…
pst = PersonalStorage.create(pathPSTFileStr, 0);
calDoc = Appointment.load(testFile);
calMsg = new MailMessage();
calMsg.addAlternateView(calDoc.requestApointment());
calMapiMsg = MapiMessage.fromMailMessage(calMsg);
calFolder = pst.createPredefinedFolder(“Calendar”, StandardIpmFolder.Appointments);
mapiCal = (MapiCalendar)calMapiMsg.toMapiMessageItem();
calFolder.addMapiMessageItem(mapiCal);
}
catch(Exception e) {
System.out.println("Import Error : " + e.toString());
}
finally {
pst.dispose();
}

Hi Peter,


Thank you for contacting Aspose support team again.

I have checked this sample code using Aspose.Email for Java 17.3.0 and observed no issue. All the times are at 03:00 PM. You may please test it again using latest version and share the feedback. You may please send us a sample complete project which can be compiled and tested here.