diff --git a/SoObjects/SOGo/SOGoSieveManager.m b/SoObjects/SOGo/SOGoSieveManager.m index 4a2d9d6249..24dddf5207 100644 --- a/SoObjects/SOGo/SOGoSieveManager.m +++ b/SoObjects/SOGo/SOGoSieveManager.m @@ -128,7 +128,7 @@ + (void) initialize if (!sieveOperators) { sieveOperators = [NSArray arrayWithObjects: @"is", @"contains", - @"matches", @"regex", + @"matches", @"regex", @"regex :comparator \"i;octet\"", @"over", @"under", nil]; [sieveOperators retain]; } @@ -367,6 +367,8 @@ - (BOOL) _extractRuleOperator: (NSString **) operator requirement = [operatorRequirements objectForKey: baseOperator]; if (requirement) [requirements addObjectUniquely: requirement]; + if ([baseOperator isEqualToString: @"regex"]) + baseOperator = @"regex :comparator \"i;octet\""; // case-sensitive comparator *operator = baseOperator; } else