Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.7

Bug #18241 STARTTLS issue with timesieved 2.2
Submitted: 2011-02-04 22:47 UTC
From: alec Assigned: yunosh
Status: Closed Package: Net_Sieve (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    

 [2011-02-04 22:47 UTC] alec (Aleksander Machniak)
Description: ------------ STARTTLS is still not working with timesieved-v2.2.13-Debian-2.2.13-14+lenny3. As stated in ticket this works with newer versions of timesieved. I've created a patch whioch detects timesieved version and fixes the issue in automated manner. --- Sieve.old 2011-02-03 20:31:59.000000000 +0100 +++ Sieve.php 2011-02-04 17:27:06.431249897 +0100 @@ -1161,7 +1161,13 @@ // The server should be sending a CAPABILITY response after // negotiating TLS. Read it, and ignore if it doesn't. - $this->_doCmd(); + // Doesn't work with older timsieved versions + $regexp = '/^CYRUS TIMSIEVED V([0-9.]+)/'; + if (!preg_match($regexp, $this->_capability['implementation'], $matches) + || version_compare($matches[1], '2.3.10', '>=') + ) { + $this->_doCmd(); + } // RFC says we need to query the server capabilities again now that we // are under encryption.


 [2011-02-11 20:41 UTC] yunosh (Jan Schneider)
-Status: Open +Status: Closed -Assigned To: +Assigned To: yunosh
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.