mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 02:45:25 +00:00
Monotone-Parent: 3fdbf80f4c1de08138ff9435f54fd9f663ef5b8f
Monotone-Revision: 3bc92406543042dce09f1c096eb8a19107b42eb2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-07-20T14:36:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -201,6 +201,30 @@ MAPIStoreTallocWrapperDestroy (void *data)
|
||||
return MAPISTORE_SUCCESS;
|
||||
}
|
||||
|
||||
+ (void) fillAvailableProperties: (struct SPropTagArray *) properties
|
||||
withExclusions: (BOOL *) exclusions
|
||||
{
|
||||
TALLOC_CTX *localMemCtx;
|
||||
struct SPropTagArray *subProperties;
|
||||
uint16_t propId;
|
||||
NSUInteger count;
|
||||
|
||||
localMemCtx = talloc_zero (NULL, TALLOC_CTX);
|
||||
[self getAvailableProperties: &subProperties inMemCtx: localMemCtx];
|
||||
for (count = 0; count < subProperties->cValues; count++)
|
||||
{
|
||||
propId = (subProperties->aulPropTag[count] >> 16);
|
||||
if (!exclusions[propId])
|
||||
{
|
||||
properties->aulPropTag[properties->cValues]
|
||||
= subProperties->aulPropTag[count];
|
||||
properties->cValues++;
|
||||
exclusions[propId] = YES;
|
||||
}
|
||||
}
|
||||
talloc_free (localMemCtx);
|
||||
}
|
||||
|
||||
- (enum mapistore_error) getAvailableProperties: (struct SPropTagArray **) propertiesP
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user