Monotone-Parent: 81dcdd47102e86aa7051a10cbd7a7183b374d07a

Monotone-Revision: dcee22693d3a16ba20dcd9824bd2cfd39c0cf369

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-12-17T19:39:21
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-12-17 19:39:21 +00:00
parent 73fc99df9d
commit 7d9b3a97b3
11 changed files with 243 additions and 119 deletions

View File

@@ -234,7 +234,10 @@
case PR_RULE_PROVIDER_UNICODE: // TODO: what's this?
rc = MAPIRestrictionStateAlwaysTrue;
break;
case 0x81200003: // seems to be PR_CE_CHECK_INTERVAL
case 0x81200003: // PidLidTaskStatus
rc = MAPIRestrictionStateAlwaysTrue;
break;
case 0x81250040: // PidLidTaskDateCompleted
rc = MAPIRestrictionStateAlwaysTrue;
break;
@@ -245,4 +248,29 @@
return rc;
}
- (MAPIRestrictionState) evaluateExistRestriction: (struct mapi_SExistRestriction *) res
intoQualifier: (EOQualifier **) qualifier
{
MAPIRestrictionState rc;
switch (res->ulPropTag)
{
case 0x81250040: // PidLidTaskDateCompleted
/* since we don't store the completion date in the quick table, we only
checks whether the task has been completed */
*qualifier = [[EOKeyValueQualifier alloc]
initWithKey: @"c_status"
operatorSelector: EOQualifierOperatorEqual
value: [NSNumber numberWithInt: 1]];
[*qualifier autorelease];
rc = MAPIRestrictionStateNeedsEval;
break;
default:
rc = [super evaluateExistRestriction: res intoQualifier: qualifier];
}
return rc;
}
@end