Commit 069b2fea authored by Till Brehm's avatar Till Brehm

Merge branch 'mail_filter_fix' into 'master'

fixed sieve mail filter creation

if the filter rule uses "begins with", the regex should be "^$searchterm" instead of " $searchterm"

See merge request !297
parents 2a24c613 9dfbec64
......@@ -177,7 +177,7 @@ class mail_user_filter_plugin {
} elseif ($page_form->dataRecord["op"] == 'is') {
$content .= "^".$searchterm."$";
} elseif ($page_form->dataRecord["op"] == 'begins') {
$content .= " ".$searchterm."";
$content .= "^".$searchterm."";
} elseif ($page_form->dataRecord["op"] == 'ends') {
$content .= ".*".$searchterm."$";
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment