Fix typo in last commit and some managesieve tests (where we changed
:comparator position)
| | |
| | | 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') { |
| | |
| | | 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; |
| | |
| | | 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; |