Monotone-Parent: 253b771ca0aa9bed24427795dd91889aef6f61b4

Monotone-Revision: 22be47412187379c5790339050a32efb324de72f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-01T22:20:22
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-12-01 22:20:22 +00:00
parent 6ceac429d5
commit 2c0553cdad
3 changed files with 18 additions and 9 deletions

View File

@ -1,5 +1,12 @@
2011-12-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreTasksMessage.m:
invoke component:secure: with the secure parameter set to "YES" in
all accessors that requires the iCalTask object.
* OpenChange/MAPIStoreCalendarMessage.m (-appointmentWrapper):
invoke component:secure: with the secure parameter set to "YES".
* OpenChange/MAPIStoreTasksMessageTable.m
(-evaluatePropertyRestriction:intoQualifier:): return
MAPIRestrictionStateAlwaysTrue for PR_SENSITIVITY since privacy

View File

@ -109,7 +109,7 @@
if (!appointmentWrapper)
{
event = [sogoObject component: NO secure: NO];
event = [sogoObject component: NO secure: YES];
context = [self context];
ASSIGN (appointmentWrapper,
[MAPIStoreAppointmentWrapper wrapperWithICalEvent: event

View File

@ -34,8 +34,10 @@
#import <SOGo/SOGoPermissions.h>
#import <SOGo/SOGoUser.h>
#import <SOGo/SOGoUserDefaults.h>
#import <Appointments/iCalEntityObject+SOGo.h>
#import <Appointments/SOGoTaskObject.h>
#import "MAPIStoreContext.h"
#import "MAPIStoreTasksFolder.h"
#import "MAPIStoreTypes.h"
#import "NSDate+MAPIStore.h"
@ -90,7 +92,7 @@
{
iCalToDo *task;
task = [sogoObject component: NO secure: NO];
task = [sogoObject component: NO secure: YES];
*data = [[task summary] asUnicodeInMemCtx: memCtx];
return MAPISTORE_SUCCESS;
@ -102,7 +104,7 @@
uint32_t v;
iCalToDo *task;
task = [sogoObject component: NO secure: NO];
task = [sogoObject component: NO secure: YES];
if ([[task priority] isEqualToString: @"9"])
v = 0x0;
else if ([[task priority] isEqualToString: @"1"])
@ -120,7 +122,7 @@
{
iCalToDo *task;
task = [sogoObject component: NO secure: NO];
task = [sogoObject component: NO secure: YES];
*data = MAPIBoolValue (memCtx,
[[task status] isEqualToString: @"COMPLETED"]);
@ -133,7 +135,7 @@
double doubleValue;
iCalToDo *task;
task = [sogoObject component: NO secure: NO];
task = [sogoObject component: NO secure: YES];
doubleValue = ((double) [[task percentComplete] intValue] / 100);
*data = MAPIDoubleValue (memCtx, doubleValue);
@ -148,7 +150,7 @@
NSCalendarDate *dateValue;
iCalToDo *task;
task = [sogoObject component: NO secure: NO];
task = [sogoObject component: NO secure: YES];
dateValue = [task completed];
if (dateValue)
@ -210,7 +212,7 @@
NSCalendarDate *dateValue;
iCalToDo *task;
task = [sogoObject component: NO secure: NO];
task = [sogoObject component: NO secure: YES];
dateValue = [task due];
if (dateValue)
*data = [dateValue asFileTimeInMemCtx: memCtx];
@ -227,7 +229,7 @@
NSCalendarDate *dateValue;
iCalToDo *task;
task = [sogoObject component: NO secure: NO];
task = [sogoObject component: NO secure: YES];
dateValue = [task startDate];
if (dateValue)
*data = [dateValue asFileTimeInMemCtx: memCtx];
@ -263,7 +265,7 @@
uint32_t longValue;
iCalToDo *task;
task = [sogoObject component: NO secure: NO];
task = [sogoObject component: NO secure: YES];
status = [task status];
if (![status length]
|| [status isEqualToString: @"NEEDS-ACTION"])