Aleksander Machniak
2013-09-20 439fd773e3783145c31e728ae6b6876f1efa9973
Fix typo in last commit and some managesieve tests (where we changed
:comparator position)
3 files modified
8 ■■■■ changed files
plugins/managesieve/lib/Roundcube/rcube_sieve_script.php 2 ●●● patch | view | raw | blame | history
plugins/managesieve/tests/src/parser 4 ●●●● patch | view | raw | blame | history
plugins/managesieve/tests/src/parser.out 2 ●●● patch | view | raw | blame | history
plugins/managesieve/lib/Roundcube/rcube_sieve_script.php
@@ -943,7 +943,7 @@
        if (preg_match('/^(value|count)-([gteqnl]{2})/', $test['type'], $m)) {
            array_push($exts, 'relational');
            $out .= ' :' . $m[1] . ' "' . $m[2];
            $out .= ' :' . $m[1] . ' "' . $m[2] . '"';
        }
        else {
            if ($test['type'] == 'regex') {
plugins/managesieve/tests/src/parser
@@ -6,13 +6,13 @@
    stop;
}
# rule:[test1]
if anyof (header :comparator "i;ascii-casemap" :contains ["From","To"] "test@domain.tld")
if anyof (header :contains :comparator "i;ascii-casemap" ["From","To"] "test@domain.tld")
{
    discard;
    stop;
}
# rule:[test2]
if anyof (not header :comparator "i;octet" :contains ["Subject"] "[test]", header :contains "Subject" "[test2]")
if anyof (not header :contains :comparator "i;octet" ["Subject"] "[test]", header :contains "Subject" "[test2]")
{
    fileinto "test";
    stop;
plugins/managesieve/tests/src/parser.out
@@ -12,7 +12,7 @@
    stop;
}
# rule:[test2]
if anyof (not header :comparator "i;octet" :contains "Subject" "[test]", header :contains "Subject" "[test2]")
if anyof (not header :contains :comparator "i;octet" "Subject" "[test]", header :contains "Subject" "[test2]")
{
    fileinto "test";
    stop;