summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/KolabAdmin/Sieve.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/KolabAdmin/Sieve.php b/lib/KolabAdmin/Sieve.php
index 0233da4..2f66378 100644
--- a/lib/KolabAdmin/Sieve.php
+++ b/lib/KolabAdmin/Sieve.php
@@ -159,4 +159,19 @@ class KolabAdmin_Sieve
}
return $script;
}
+
+ public function checkUnknownScript()
+ {
+ $known = array(
+ self::SCRIPT,
+ self::OLD_SCRIPT_DELIVERY,
+ self::OLD_SCRIPT_FORWARD,
+ self::OLD_SCRIPT_VACATION,
+ );
+ $active = $this->_sieve->getActive();
+ if (!in_array($active, $known)) {
+ return $active;
+ }
+ return false;
+ }
} \ No newline at end of file