mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:26 +01:00
* eMail/IMAP: fix for failed connection for subsequent connects when using STARTTLS in certain enviroments
the buffering of capabilities triggers connections that STARTTLS to use these capabilities at the wrong time; thus we reset the capability buffered by icServer object
This commit is contained in:
parent
fadccd0ece
commit
8f4c575de1
@ -556,7 +556,9 @@ class defaultimap extends Net_IMAP
|
|||||||
$options = $_options;
|
$options = $_options;
|
||||||
$this->isAdminConnection = false;
|
$this->isAdminConnection = false;
|
||||||
}
|
}
|
||||||
|
// the buffering of capabilities triggers connections that STARTTLS to use these capabilities at the wrong time
|
||||||
|
// $this->encryption == 1 -> STARTTLS
|
||||||
|
if ($this->encryption == 1) unset($this->_serverSupportedCapabilities);
|
||||||
$this->setStreamContextOptions($this->_getTransportOptions());
|
$this->setStreamContextOptions($this->_getTransportOptions());
|
||||||
$this->_timeout = $_timeout;
|
$this->_timeout = $_timeout;
|
||||||
if( PEAR::isError($status = parent::connect($this->_getTransportString(), $this->port, $this->encryption == 1)) ) {
|
if( PEAR::isError($status = parent::connect($this->_getTransportString(), $this->port, $this->encryption == 1)) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user