From 8afac82c79baaba55795178f10b946f281ad59f6 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 17 Sep 2009 14:58:06 +0000
Subject: [PATCH] Fixed: FS#889 - Email filter "Begins With" bug

---
 interface/web/mail/mail_user_filter_edit.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/web/mail/mail_user_filter_edit.php b/interface/web/mail/mail_user_filter_edit.php
index 72f13c9b94..3974b8f3cb 100644
--- a/interface/web/mail/mail_user_filter_edit.php
+++ b/interface/web/mail/mail_user_filter_edit.php
@@ -148,7 +148,7 @@ if ( ".'$RETURNCODE'." != 1 )
 		} elseif ($this->dataRecord["op"] == 'is') {
 			$content .= $searchterm."$/:h)\n";
 		} elseif ($this->dataRecord["op"] == 'begins') {
-			$content .= $searchterm."/:h)\n";
+			$content .= " ".$searchterm."/:h)\n";
 		} elseif ($this->dataRecord["op"] == 'ends') {
 			$content .= ".*".$searchterm."$/:h)\n";
 		}
-- 
GitLab