From 97c30caf0de87f872033e62db2a70748cf152fee Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 1 Dec 2011 22:34:52 +0000 Subject: [PATCH] Monotone-Parent: ac435c09e6aeb4ef0087488eb9403ccc7f5fc64e Monotone-Revision: 4e64b83fb714d395f79db3b2cd5c49a57e14f1f0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-12-01T22:34:52 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ OpenChange/MAPIStoreFSMessage.m | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index d1ac3b235..c619a0b6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-12-01 Wolfgang Sourdeau + * OpenChange/MAPIStoreFSMessage.m (-subscriberCanReadMessage): + returns YES when the message is of class + "IPM.Microsoft.ScheduleData.FreeBusy", as a hack until freebusy + messages are handled by the backend. + * OpenChange/MAPIStoreContext.m (_prepareContextClass): now return the context via a pointer parameter. Return a proper "enum mapistore_error" value. diff --git a/OpenChange/MAPIStoreFSMessage.m b/OpenChange/MAPIStoreFSMessage.m index 6104cc72a..f02262cee 100644 --- a/OpenChange/MAPIStoreFSMessage.m +++ b/OpenChange/MAPIStoreFSMessage.m @@ -83,6 +83,18 @@ [properties removeAllObjects]; } +- (BOOL) subscriberCanReadMessage +{ + /* This is a HACK until we figure out how to determine a message position in + the mailbox hierarchy.... (missing: folderid and role) */ + NSString *msgClass; + + msgClass = [[sogoObject properties] + objectForKey: MAPIPropertyKey (PR_MESSAGE_CLASS_UNICODE)]; + + return [msgClass isEqualToString: @"IPM.Microsoft.ScheduleData.FreeBusy"]; +} + - (NSDate *) creationTime { return [sogoObject creationTime];