From: hickert Date: Mon, 9 Jun 2008 11:40:14 +0000 (+0000) Subject: Updated checks for the imap sieve service. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=87c1662705810b7cb240e6c3e03d51e82cf519e9;p=gosa.git Updated checks for the imap sieve service. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11266 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc b/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc index 552fccff4..c4a81e9ed 100644 --- a/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc +++ b/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc @@ -117,7 +117,7 @@ class goImapServer extends goService { if(empty($this->goImapSieveServer)){ $message[] = msgPool::required(_("Sieve connect URL")); - }elseif(!preg_match('/^\{[^:]+:[0-9]+.*\}$/', $this->goImapSieveServer)){ + }elseif(!preg_match('/^\{[^:]+:[0-9]*\/(no|)tls\}$/', $this->goImapSieveServer)){ $message[]= msgPool::invalid(_("Sieve connect URL"),"","","{server-name:port/options}"." ". sprintf(_("Valid options are: %s"),"tls,notls")); }