Changeset 4495 in subversion


Ignore:
Timestamp:
Feb 4, 2011 11:50:05 AM (2 years ago)
Author:
alec
Message:
  • Fix STARTTLS for timsieved < 2.3.10
Location:
trunk/plugins/managesieve
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/managesieve/Changelog

    r4478 r4495  
     1- Fix STARTTLS for timsieved < 2.3.10 
     2 
    13* version 3.0 [2011-02-01] 
    24----------------------------------------------------------- 
  • trunk/plugins/managesieve/lib/Net/Sieve.php

    r4471 r4495  
    11621162        // The server should be sending a CAPABILITY response after 
    11631163        // negotiating TLS. Read it, and ignore if it doesn't. 
    1164         $this->_doCmd(); 
     1164        // Doesn't work with older timsieved versions 
     1165        $regexp = '/^CYRUS TIMSIEVED V([0-9.]+)/'; 
     1166        if (!preg_match($regexp, $this->_capability['implementation'], $matches) 
     1167            || version_compare($matches[1], '2.3.10', '>=') 
     1168        ) { 
     1169            $this->_doCmd(); 
     1170        } 
    11651171 
    11661172        // RFC says we need to query the server capabilities again now that we 
Note: See TracChangeset for help on using the changeset viewer.