summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/KolabAdmin/Sieve/Script.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/KolabAdmin/Sieve/Script.php b/lib/KolabAdmin/Sieve/Script.php
index 03e177c..98e609b 100644
--- a/lib/KolabAdmin/Sieve/Script.php
+++ b/lib/KolabAdmin/Sieve/Script.php
@@ -51,7 +51,7 @@ class KolabAdmin_Sieve_Script {
/*static*/ function getMailDomain( $script ) {
$maildomain = false;
- if( preg_match( '/if not address :domain :contains "From" "(.*)" { keep; stop; }/i', $script, $regs ) ) {
+ if( preg_match( '/address :domain :contains "From" "(.*)"/i', $script, $regs ) ) {
$maildomain = $regs[1];
}
return $maildomain;
@@ -59,7 +59,7 @@ class KolabAdmin_Sieve_Script {
/*static*/ function getReactToSpam( $script ) {
$spam = false;
- if( preg_match('/if header :contains "X-Spam-Flag" "YES" { keep; stop; }/i', $script ) ) {
+ if( preg_match('/header :contains "X-Spam-Flag" "YES"/i', $script ) ) {
$spam = true;
}
return $spam;