Monotone-Parent: f5f2ee70c2acc45239a32d38bf99d6078e2dbe39

Monotone-Revision: 8a338c5caf581e45823828957eefcbd38abd2ee7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-12-30T14:27:53
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-12-30 14:27:53 +00:00
parent 724538a4b7
commit 6739e1e279
2 changed files with 17 additions and 3 deletions
+7
View File
@@ -1,5 +1,9 @@
2010-12-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreSOGo.m (sogo_op_openmessage): added some
debugging.
(sogo_op_createmessage): takes a new "associated" flag parameter.
* OpenChange/MAPIStoreContext.m: refactored to extract the table
handling code into a separate class. This enables the introduction
of real classes for contents tables, folder tables and FAI tables,
@@ -23,6 +27,9 @@
to MAPIStoreTable.
- moved all the "evaluateRestriction:intoQualifier:" methods to
MAPIStoreTable.
(-createMessagePropertiesWithMID:inFID:isAssociated:): now takes a
"isAssociated" parameter to determine whether the message is part
of the contents table or the fai table.
* OpenChange/EOBitmaskQualifier.m (-description): new method.
+10 -3
View File
@@ -468,7 +468,11 @@ sogo_op_openmessage(void *private_data,
context = cContext->objcContext;
[context setupRequest];
if (!context)
DEBUG (5, (" context data is empty, failure ahead..."));
rc = [context openMessage: msg withMID: mid inFID: fid];
if (rc)
DEBUG (5, (" failure opening message\n"));
[context tearDownRequest];
[pool release];
@@ -480,7 +484,8 @@ sogo_op_openmessage(void *private_data,
static int
sogo_op_createmessage(void *private_data,
uint64_t fid,
uint64_t mid)
uint64_t mid,
uint8_t associated)
{
NSAutoreleasePool *pool;
sogo_context *cContext;
@@ -495,7 +500,8 @@ sogo_op_createmessage(void *private_data,
context = cContext->objcContext;
[context setupRequest];
rc = [context createMessagePropertiesWithMID: mid inFID: fid];
rc = [context createMessagePropertiesWithMID: mid inFID: fid
isAssociated: associated];
[context tearDownRequest];
[pool release];
@@ -577,7 +583,8 @@ sogo_op_getprops(void *private_data,
rc = [context getProperties: SPropTagArray
ofTableType: type
inRow: aRow withMID: fmid];
inRow: aRow
withMID: fmid];
[context tearDownRequest];
[pool release];