Monotone-Parent: 535269ec26cac9e28483df1693160af134682680

Monotone-Revision: 4a2e7b98be9bf00419ec1e19e3bfda5b9b0a9f8f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-10-06T14:27:09
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-10-06 14:27:09 +00:00
parent bc5c6979a3
commit e8debc37e3
7 changed files with 110 additions and 121 deletions
+5 -14
View File
@@ -73,8 +73,6 @@ static Class SOGoUserFolderK;
inFolder: (SOGoFolder *) folder
withFID: (uint64_t) fid
{
uint32_t *longValue;
uint8_t *boolValue;
// id child;
id event;
int rc;
@@ -83,13 +81,12 @@ static Class SOGoUserFolderK;
switch (proptag)
{
case PR_ICON_INDEX: // TODO
longValue = talloc_zero(memCtx, uint32_t);
*longValue = 0x00000400; /* see http://msdn.microsoft.com/en-us/library/cc815472.aspx */
/* see http://msdn.microsoft.com/en-us/library/cc815472.aspx */
// *longValue = 0x00000401 for recurring event
// *longValue = 0x00000402 for meeting
// *longValue = 0x00000403 for recurring meeting
// *longValue = 0x00000404 for invitation
*data = longValue;
*data = MAPILongValue (memCtx, 0x00000400);
break;
case PR_MESSAGE_CLASS_UNICODE:
*data = talloc_strdup(memCtx, "IPM.Appointment");
@@ -103,9 +100,7 @@ static Class SOGoUserFolderK;
*data = [[event endDate] asFileTimeInMemCtx: memCtx];
break;
case 0x82410003: // LABEL idx, should be saved in an X- property
longValue = talloc_zero(memCtx, uint32_t);
*longValue = 0;
*data = longValue;
*data = MAPILongValue (memCtx, 0);
break;
case PR_SUBJECT_UNICODE: // SUMMARY
case PR_NORMALIZED_SUBJECT_UNICODE:
@@ -118,15 +113,11 @@ static Class SOGoUserFolderK;
*data = [[event location] asUnicodeInMemCtx: memCtx];
break;
case 0x8224000b: // private (bool), should depend on CLASS
boolValue = talloc_zero(memCtx, uint8_t);
*boolValue = NO;
*data = boolValue;
*data = MAPIBoolValue (memCtx, NO);
break;
case PR_SENSITIVITY: // not implemented, depends on CLASS
// normal = 0, private = 2
longValue = talloc_zero(memCtx, uint32_t);
*longValue = 0;
*data = longValue;
*data = MAPILongValue (memCtx, 0);
break;
// case PR_VD_NAME_UNICODE: