From: hickert Date: Tue, 1 Jul 2008 06:46:07 +0000 (+0000) Subject: Implemented sieve-TLS closes: #467 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6fffdc0070399b0ba20d9faf95440abbff77789;p=gosa.git Implemented sieve-TLS closes: #467 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11488 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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"; } } }