Code

Updated checks for the imap sieve service.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Jun 2008 11:40:14 +0000 (11:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Jun 2008 11:40:14 +0000 (11:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11266 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc

index 552fccff402dab74f6fe48d63e088151744bac01..c4a81e9edc72f6eedf569fb29d1d7a12ab633779 100644 (file)
@@ -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}"."&nbsp;".
           sprintf(_("Valid options are: %s"),"tls,notls"));
     }