mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-18 04:55:56 +00:00
Monotone-Parent: e7b5f0b2b458927d09012056b19e2285aaa49603
Monotone-Revision: 93c2d10f4925c2d91f6dce75efa53e3cfe8fa5f8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-08-12T14:59:43 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
|
||||
#import "MAPIStoreTypes.h"
|
||||
#import "MAPIStoreGCSFolder.h"
|
||||
#import "NSAutoreleasePool+MAPIStore.h"
|
||||
|
||||
#import "MAPIStoreGCSMessageTable.h"
|
||||
|
||||
@@ -53,6 +52,7 @@
|
||||
}
|
||||
|
||||
- (struct mapi_SPropertyRestriction *) _fixedDatePropertyRestriction: (struct mapi_SPropertyRestriction *) res
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
struct mapi_SPropertyRestriction *translatedRes;
|
||||
NSCalendarDate *dateValue;
|
||||
@@ -84,6 +84,7 @@
|
||||
NSString *property;
|
||||
NSNumber *lastModified;
|
||||
MAPIRestrictionState rc;
|
||||
TALLOC_CTX *memCtx = NULL;
|
||||
|
||||
if (res->ulPropTag == PR_CHANGE_NUM)
|
||||
{
|
||||
@@ -119,8 +120,9 @@
|
||||
|
||||
if ((res->ulPropTag & 0xffff) == PT_SYSTIME)
|
||||
{
|
||||
res = [self _fixedDatePropertyRestriction: res];
|
||||
NSAutoreleaseTallocPointer (res);
|
||||
memCtx = talloc_zero (NULL, TALLOC_CTX);
|
||||
res = [self _fixedDatePropertyRestriction: res
|
||||
inMemCtx: memCtx];
|
||||
}
|
||||
|
||||
value = NSObjectFromMAPISPropValue (&res->lpProp);
|
||||
@@ -134,7 +136,9 @@
|
||||
operatorSelector: operator
|
||||
value: value];
|
||||
[*qualifier autorelease];
|
||||
|
||||
if (memCtx)
|
||||
talloc_free (memCtx);
|
||||
|
||||
rc = MAPIRestrictionStateNeedsEval;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user