diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-16 12:36:35 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-16 12:36:35 +0000 |
| commit | e019ceea8f10f9be13be0da0cceb4df8f992d6b6 (patch) | |
| tree | 4f09f84ea9ca6b68e41b5a092460723802951314 /plugins/managesieve/tests/parser.phpt | |
| parent | 33ebceae8adb225b2b6ba4bef15806beee7fc3e6 (diff) | |
- Fixed import of rules with unsupported tests
git-svn-id: https://svn.roundcube.net/trunk@5440 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/managesieve/tests/parser.phpt')
| -rw-r--r-- | plugins/managesieve/tests/parser.phpt | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/plugins/managesieve/tests/parser.phpt b/plugins/managesieve/tests/parser.phpt index 308617296..32866335a 100644 --- a/plugins/managesieve/tests/parser.phpt +++ b/plugins/managesieve/tests/parser.phpt @@ -33,8 +33,19 @@ if anyof (true) /* comment } # rule:[reject] if size :over 5000K { - reject "Message over 5MB size limit. Please contact me before sending this."; + reject "Message over 5MB size limit. Please contact me before sending this."; +} +# rule:[false] +if false # size :over 5000K +{ + stop; /* rule disabled */ +} +# rule:[true] +if true +{ + stop; } +fileinto "Test"; '; $s = new rcube_sieve_script($txt); @@ -71,3 +82,14 @@ if size :over 5000K { reject "Message over 5MB size limit. Please contact me before sending this."; } +# rule:[false] +if false # size :over 5000K +{ + stop; +} +# rule:[true] +if true +{ + stop; +} +fileinto "Test"; |
