Code

Updated sieve login. Optimized error message and tls check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 5 Dec 2008 09:45:19 +0000 (09:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 5 Dec 2008 09:45:19 +0000 (09:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13169 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/personal/mail/sieve/class_sieve.inc

index 7eaccfa6a20a77a3e9f43120fc3c717fe6c77fa5..cfd4686381aca0f44a3bea8ed7bffbedd2275f70 100644 (file)
@@ -487,7 +487,7 @@ class sieve
 
        /* Check if a TLS bases connection is required 
      */
-       if(preg_match("/^tls$/",$this->options)){
+       if($this->options == "tls"){
 
                /* Check if PHP supports TLS encryption for sockets 
          */
@@ -518,7 +518,7 @@ class sieve
                $this->line=fgets($this->fp,1024);
 
              if(sieve::status($this->line) == F_NO){
-               $this->error_raw = "Failed to authenticate!";
+               $this->error_raw = $this->line;
                return false;
              }
              $this->loggedin=true;