diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-10 08:10:03 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-10 08:10:03 +0000 |
| commit | b40c338186679c086d25ed5d43553d3216d7190a (patch) | |
| tree | e0133cc6293aa814810008f9230db8ccfad5b2ac /plugins/managesieve/managesieve.php | |
| parent | 468ae4f98dee203feac6a6f39fdada5dd14fac9b (diff) | |
- Added :regex and :matches support (#1487746)
git-svn-id: https://svn.roundcube.net/trunk@4521 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/managesieve/managesieve.php')
| -rw-r--r-- | plugins/managesieve/managesieve.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php index 96e6ebcce..d986141cd 100644 --- a/plugins/managesieve/managesieve.php +++ b/plugins/managesieve/managesieve.php @@ -893,8 +893,12 @@ class managesieve extends rcube_plugin $select_op->add(Q($this->gettext('filterisnot')), 'notis'); $select_op->add(Q($this->gettext('filterexists')), 'exists'); $select_op->add(Q($this->gettext('filternotexists')), 'notexists'); -// $select_op->add(Q($this->gettext('filtermatches')), 'matches'); -// $select_op->add(Q($this->gettext('filternotmatches')), 'notmatches'); + $select_op->add(Q($this->gettext('filtermatches')), 'matches'); + $select_op->add(Q($this->gettext('filternotmatches')), 'notmatches'); + if (in_array('regex', $this->exts)) { + $select_op->add(Q($this->gettext('filterregex')), 'regex'); + $select_op->add(Q($this->gettext('filternotregex')), 'notregex'); + } if (in_array('relational', $this->exts)) { $select_op->add(Q($this->gettext('countisgreaterthan')), 'count-gt'); $select_op->add(Q($this->gettext('countisgreaterthanequal')), 'count-ge'); |
