From d6fffdc0070399b0ba20d9faf95440abbff77789 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 1 Jul 2008 06:46:07 +0000 Subject: [PATCH] Implemented sieve-TLS closes: #467 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc b/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc index e63d35b5f..b38fe8b2e 100644 --- a/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc +++ b/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc @@ -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"; } } } -- 2.30.2