Code

Add require values for numeric checks automatically
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Mar 2007 07:15:12 +0000 (07:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Mar 2007 07:15:12 +0000 (07:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5892 594d385d-05f5-0310-b6e9-bd551577e9d8

include/sieve/class_sieveElement_If.inc

index 99f170df244e134473815505e191704b24f9c672..c4808ce523d686c33d1b1fd80c2dfd1195b1622d 100644 (file)
@@ -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;
           }