mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-10 19:05:09 +00:00
Merge pull request #121 from Zentyal/ejhernandez/search-mapidb-message-props
oc: Search for properties in a SOGoMAPIDB object now works
This commit is contained in:
@@ -125,6 +125,11 @@ typedef BOOL (*EOComparator) (id, SEL, id);
|
||||
finalKey = @"";
|
||||
|
||||
propValue = [properties objectForKey: finalKey];
|
||||
/* sogo-openchange library stores the properties as NSString keys
|
||||
and we have to check if the property exists using the NSString */
|
||||
if (!propValue && [key isKindOfClass: [NSString class]])
|
||||
propValue = [properties objectForKey: key];
|
||||
|
||||
comparator = (EOComparator) [propValue methodForSelector: operator];
|
||||
|
||||
return (comparator ? comparator (propValue, operator, value) : NO);
|
||||
|
||||
Reference in New Issue
Block a user