roundcubemail/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php
private function add_operator($test, &$out, &$exts)
    {
        if (empty($test['type'])) {
            return;
        }

        // relational operator
        if (preg_match('/^(value|count)-([gteqnl]{2})/', $test['type'], $m)) {
            array_push($exts, 'relational');

            $out .= ' :' . $m[1] . ' "' . $m[2] . '"';
        }
        else {
            if ($test['type'] == 'regex') {
                array_push($exts, 'regex');
            }

            $out .= ' :' . $test['type'];
        }

        $this->add_comparator($test, $out, $exts);
    }
private function add_operator($test, &$out, &$exts)
    {
        if (empty($test['type'])) {
            return;
        }

        // relational operator
        if (preg_match('/^(value|count)-([gteqnl]{2})/', $test['type'], $m)) {
            array_push($exts, 'relational');

            $out .= ' :' . $m[1] . ' "' . $m[2] . '"';
        }
        else {
            if ($test['type'] == 'regex') {
                array_push($exts, 'regex');
            }

            $out .= ' :' . $test['type'];
        }

        $this->add_comparator($test, $out, $exts);
    }
private function add_operator ( $ test , & $ out , & $ exts ) { if ( empty ( $ test [ 'type' ] ) ) { return ; } // relational operator if ( preg_match ( '/^(value|count)-([gteqnl]{2})/' , $ test [ 'type' ] , $ m ) ) { array_push ( $ exts , 'relational' ) ; $ out .= ' :' . $ m [ 1 ] . ' "' . $ m [ 2 ] . '"' ; } else { if ( $ test [ 'type' ] == 'regex' ) { array_push ( $ exts , 'regex' ) ; } $ out .= ' :' . $ test [ 'type' ] ; } $ this -> add_comparator ( $ test , $ out , $ exts ) ; }
Add operators to the test
Add operators to the test