mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-28 20:56:24 +00:00
Monotone-Parent: 1c03128dc32222b38a2456aa650fb2b5a775c3a0
Monotone-Revision: aff0225cae26a70d3ca711bd22d7459655c7f24e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-08T20:04:36 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
2011-07-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIStoreTable.m
|
||||
(-evaluateContentRestriction:intoQualifier:): temporarily
|
||||
commented out code initializing "operator" as this local var is
|
||||
never used.
|
||||
|
||||
* OpenChange/MAPIStoreFolder.m (-initWithSOstringByAddingPercentEscapesUsingEncodinGoObject:inContainer:):
|
||||
make use of -[NSString stringByAddingPercentEscapesUsingEncoding:]
|
||||
to properly escape folder names with non-ascii characters.
|
||||
|
||||
@@ -534,7 +534,7 @@ static Class NSDataK, NSStringK;
|
||||
intoQualifier: (EOQualifier **) qualifier
|
||||
{
|
||||
NSString *property;
|
||||
SEL operator;
|
||||
// SEL operator;
|
||||
id value;
|
||||
MAPIRestrictionState rc;
|
||||
|
||||
@@ -553,23 +553,23 @@ static Class NSDataK, NSStringK;
|
||||
format: @"unhandled content restriction for class '%@'",
|
||||
NSStringFromClass ([value class])];
|
||||
|
||||
switch (res->fuzzy & 0xf)
|
||||
{
|
||||
case 0:
|
||||
operator = EOQualifierOperatorEqual;
|
||||
break;
|
||||
case 1:
|
||||
operator = EOQualifierOperatorLike;
|
||||
value = [NSString stringWithFormat: @"%%%@%%", value];
|
||||
break;
|
||||
case 2:
|
||||
operator = EOQualifierOperatorEqual;
|
||||
value = [NSString stringWithFormat: @"%@%%", value];
|
||||
break;
|
||||
default: [NSException raise: @"MAPIStoreInvalidOperatorException"
|
||||
format: @"fuzzy operator value '%.4x' is invalid",
|
||||
res->fuzzy];
|
||||
}
|
||||
// switch (res->fuzzy & 0xf)
|
||||
// {
|
||||
// case 0:
|
||||
// operator = EOQualifierOperatorEqual;
|
||||
// break;
|
||||
// case 1:
|
||||
// operator = EOQualifierOperatorLike;
|
||||
// value = [NSString stringWithFormat: @"%%%@%%", value];
|
||||
// break;
|
||||
// case 2:
|
||||
// operator = EOQualifierOperatorEqual;
|
||||
// value = [NSString stringWithFormat: @"%@%%", value];
|
||||
// break;
|
||||
// default: [NSException raise: @"MAPIStoreInvalidOperatorException"
|
||||
// format: @"fuzzy operator value '%.4x' is invalid",
|
||||
// res->fuzzy];
|
||||
// }
|
||||
|
||||
*qualifier = [[EOKeyValueQualifier alloc] initWithKey: property
|
||||
operatorSelector: EOQualifierOperatorCaseInsensitiveLike
|
||||
|
||||
Reference in New Issue
Block a user