Code

Implemented sieve-TLS closes: #467
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 1 Jul 2008 06:46:07 +0000 (06:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 1 Jul 2008 06:46:07 +0000 (06:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11488 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index e63d35b5fc633decf292b02195ed1f3fcba91215..b38fe8b2e3e341fd5e27568c85b1d2001e18078c 100644 (file)
@@ -490,7 +490,6 @@ class sieve
                /* Check if PHP supports TLS encryption for sockets 
          */
                if(function_exists("stream_socket_enable_crypto")){
-                       
                        if (@ fputs ($this->fp, "STARTTLS\r\n") === false) {
                                $this->error_raw = "fputs() returned 'false'"; return (false);
                        } @ $linha = fgets ($this->fp, 1024); if ($linha === false) {
@@ -499,8 +498,6 @@ class sieve
                                $this->error_raw = "expected an 'OK', but server replied: '" . trim ($linha) . "'"; return (false);
                        } if (! @ stream_socket_enable_crypto ($this->fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
                                $this->error_raw = "stream_socket_enable_crypto() returned 'false'"; return (false);
-                       }else{
-#                              echo "Done";
                        }
                }
        }