wieseljonas / java-libpst

Automatically exported from code.google.com/p/java-libpst
1 stars 1 forks source link

Support for recurring appointments #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PSTAppointment doesn't decode the recurrence data structure.

I've committed two classes, PSTAppointmentRecurrence and 
PSTAppointmentException in SVN for review.  They aren't hooked up in 
PSTAppointment yet.

At the moment, they can be used as follows:

// appt is an instance of PSTApppointment
PSTAppointmentRecurrence recurrence = null;
byte[] recurrencePattern = appt.getRecurrenceStructure();
if ( recurrencePattern != null && recurrencePattern.length >= 48 ) {
    recurrence = new PSTAppointmentRecurrence(recurrencePattern, appt, appt.getRecurrenceTimeZone());

    // Handle exceptions to the recurring series
    int exceptionCount = recurrence.getExceptionCount();
    for ( int i = 0; i < exceptionCount; ++i ) {
        PSTAppointmentException exception = recurrence.getException(i);
    }
}

Original issue reported on code.google.com by orin.e...@gmail.com on 23 Jul 2010 at 9:15

GoogleCodeExporter commented 9 years ago
Note that reading of the ExtendedException structure isn't working correctly 
for some appointments. The appointment that is causing this problem claims an 
ExceptionCount of one, but the ExtendedException structure doesn't make sense 
and the appointment has no attachments when it should have one.  There could be 
more cases.

Original comment by orin.e...@gmail.com on 24 Jul 2010 at 12:26

GoogleCodeExporter commented 9 years ago
OK, I fixed that case - the MS documentation was incomplete and marked some 
fields in the ExtendedException structure as dependent on flags in the 
ExceptionInfo structure, but didn't say which flags.  I made the wrong 
assumption that the fields were incorrectly marked.  Another well hidden 
document in MSDN revealed which flags...

Original comment by orin.e...@gmail.com on 24 Jul 2010 at 4:27

GoogleCodeExporter commented 9 years ago

Original comment by rjohnson...@gmail.com on 10 Sep 2010 at 1:20

GoogleCodeExporter commented 9 years ago
I cant find occurrences of a recurring appointment. Is there any api in libpst?

Original comment by nayan2...@gmail.com on 18 Jul 2012 at 12:43