From 13c82f8bd40f7894658a8f969bcd957d7f893872 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 Mar 2007 07:15:12 +0000 Subject: [PATCH] Add require values for numeric checks automatically git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5892 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/sieve/class_sieveElement_If.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/sieve/class_sieveElement_If.inc b/include/sieve/class_sieveElement_If.inc index 99f170df2..c4808ce52 100644 --- a/include/sieve/class_sieveElement_If.inc +++ b/include/sieve/class_sieveElement_If.inc @@ -598,9 +598,12 @@ class sieve_if if(!isset($match_types[$mt])){ $parsed[$key]['LastError'] = _("Invalid match type given."); } - if($mt == ":regex"){ - $this->parent->add_require("regex"); - } + if($mt == ":regex"){ + $this->parent->add_require("regex"); + } + if($mt == ":count"){ + $this->parent->add_require("comparator-i;ascii-numeric"); + } $parsed[$key]['Match_type'] = $mt; } -- 2.30.2