summaryrefslogtreecommitdiff
path: root/plugins/managesieve/lib/rcube_sieve.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-08 11:51:49 +0000
committeralecpl <alec@alec.pl>2009-09-08 11:51:49 +0000
commitd168b9909acc66510bd24b3e74f6828f47939f75 (patch)
treed3e2b5f723b8c19e775ff067860265fbedd6b81d /plugins/managesieve/lib/rcube_sieve.php
parente8d8b6fd864fd9e3792b8032b1bc40b6ec2b1b7a (diff)
- managesieve: Fix handling of "true" as "anyof (true)" test
Diffstat (limited to 'plugins/managesieve/lib/rcube_sieve.php')
-rw-r--r--plugins/managesieve/lib/rcube_sieve.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/managesieve/lib/rcube_sieve.php b/plugins/managesieve/lib/rcube_sieve.php
index 59f7cfcf4..2ab30c54d 100644
--- a/plugins/managesieve/lib/rcube_sieve.php
+++ b/plugins/managesieve/lib/rcube_sieve.php
@@ -442,7 +442,7 @@ class rcube_sieve_script
{
$result = NULL;
- if (preg_match('/^(if|elsif|else)\s+((allof|anyof|exists|header|not|size)\s+(.*))\s+\{(.*)\}$/sm', trim($content), $matches))
+ if (preg_match('/^(if|elsif|else)\s+((true|not\s+true|allof|anyof|exists|header|not|size)(.*))\s+\{(.*)\}$/sm', trim($content), $matches))
{
list($tests, $join) = $this->_parse_tests(trim($matches[2]));
$actions = $this->_parse_actions(trim($matches[5]));
@@ -454,7 +454,7 @@ class rcube_sieve_script
'join' => $join,
);
}
-
+
return $result;
}