summaryrefslogtreecommitdiff
path: root/lib/KolabAdmin/Sieve/Segment/Forward.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/KolabAdmin/Sieve/Segment/Forward.php')
-rw-r--r--lib/KolabAdmin/Sieve/Segment/Forward.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/KolabAdmin/Sieve/Segment/Forward.php b/lib/KolabAdmin/Sieve/Segment/Forward.php
index 3252b5f..87e2ebb 100644
--- a/lib/KolabAdmin/Sieve/Segment/Forward.php
+++ b/lib/KolabAdmin/Sieve/Segment/Forward.php
@@ -143,8 +143,14 @@ extends KolabAdmin_Sieve_Segment
{
if (preg_match('/keep;/s', $script, $regs)) {
$this->_keep_on_server = true;
- } else {
+ } else if (preg_match('/stop;/s', $script, $regs)) {
+ $this->_keep_on_server = false;
+ } else if (preg_match('/require/s', $script, $regs)) {
+ // The unused "require" statement provides the information that it
+ // is an old script variant.
$this->_keep_on_server = false;
+ } else {
+ $this->_keep_on_server = true;
}
}
} \ No newline at end of file