Monotone-Parent: ebae336bc62a9607c87bc04d4faa060b8299cd84

Monotone-Revision: 8024e7884f12b6b63830153922546ddf8d4f2ed8

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-08-01T18:07:00
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-08-01 18:07:00 +00:00
parent c4105ed105
commit 2a0c7ca5c5
2 changed files with 16 additions and 1 deletions

View File

@@ -23,6 +23,8 @@
#import <Foundation/NSArray.h>
#import <Foundation/NSData.h>
#import <Foundation/NSDictionary.h>
#import <Foundation/NSString.h>
#import <Foundation/NSValue.h>
#import "MAPIStoreContext.h"
#import "MAPIStorePropertySelectors.h"
@@ -37,8 +39,15 @@
#include <mapistore/mapistore.h>
#include <mapistore/mapistore_errors.h>
Class NSNumberK;
@implementation MAPIStoreFSMessage
+ (void) initialize
{
NSNumberK = [NSNumber class];
}
+ (int) getAvailableProperties: (struct SPropTagArray **) propertiesP
inMemCtx: (TALLOC_CTX *) memCtx
{
@@ -138,7 +147,7 @@
// return [NSNumber numberWithUnsignedInt: propTag];
// #else
key = [keys objectAtIndex: count];
if (![key isEqualToString: @"attachments"])
if ([key isKindOfClass: NSNumberK])
{
#if (GS_SIZEOF_LONG == 4)
properties->aulPropTag[count] = [[keys objectAtIndex: count] unsignedLongValue];