Monotone-Parent: c128393b8fefa2da4bb9673a620d1e0baa64a839

Monotone-Revision: b334cb6723eed85e8c63c638f6db8a79edfb0b11

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-12-01T16:34:41
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-12-01 16:34:41 +00:00
parent 7c27e39fe7
commit 3e08125893
9 changed files with 40 additions and 23 deletions
+20 -14
View File
@@ -208,7 +208,7 @@ _prepareContextClass (struct mapistore_context *newMemCtx,
messages = [NSMutableDictionary new];
woContext = [WOContext contextWithRequest: nil];
[woContext retain];
parentFoldersBag = [NSMutableArray new];
moduleFolder = nil;
uri = nil;
baseContextSet = NO;
@@ -223,6 +223,8 @@ _prepareContextClass (struct mapistore_context *newMemCtx,
{
[self logWithFormat: @"-dealloc: %@", self];
[parentFoldersBag release];
[messageCache release];
[subfolderCache release];
[messages release];
@@ -609,6 +611,7 @@ _prepareContextClass (struct mapistore_context *newMemCtx,
// uint64_t *llongValue;
// uint32_t *longValue;
int rc;
const char *propName;
rc = MAPI_E_SUCCESS;
switch (proptag)
@@ -618,24 +621,27 @@ _prepareContextClass (struct mapistore_context *newMemCtx,
*data = [[child displayName] asUnicodeInMemCtx: memCtx];
break;
default:
// *data = NULL;
rc = MAPI_E_NOT_FOUND;
// rc = MAPI_E_NOT_FOUND;
// if ((proptag & 0x001F) == 0x001F)
// {
// stringValue = [NSString stringWithFormat: @"Unhandled unicode value: 0x%x", proptag];
// *data = [stringValue asUnicodeInMemCtx: memCtx];
// rc = MAPI_E_SUCCESS;
[self errorWithFormat: @"Unknown proptag (returned): %.8x for child '%@'",
proptag, childURL];
propName = get_proptag_name (proptag);
if (!propName)
propName = "<unknown>";
[self errorWithFormat: @"Unhandled value: 0x%x (%s), childURL: %@",
proptag, propName, childURL];
*data = NULL;
// *data = [stringValue asUnicodeInMemCtx: memCtx];
// rc = MAPI_E_SUCCESS;
// [self errorWithFormat: @"Unknown proptag (returned): %.8x for child '%@'",
// proptag, childURL];
// }
// }
// else
// {
// [self errorWithFormat: @"Unknown proptag: %.8x for child '%@'",
// proptag, childURL];
// *data = NULL;
rc = MAPI_E_NOT_FOUND;
break;
}
// *data = NULL;
rc = MAPI_E_NOT_FOUND;
break;
}
return rc;
}