|
|
@ -36,7 +36,7 @@ require_once('lib/tnef_decoder.inc');
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @package Mail
|
|
|
|
* @package Mail
|
|
|
|
* @author Thomas Bruederli <roundcube@gmail.com>
|
|
|
|
* @author Thomas Bruederli <roundcube@gmail.com>
|
|
|
|
* @version 1.40
|
|
|
|
* @version 1.5
|
|
|
|
* @link http://ilohamail.org
|
|
|
|
* @link http://ilohamail.org
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
class rcube_imap
|
|
|
|
class rcube_imap
|
|
|
@ -112,11 +112,15 @@ class rcube_imap
|
|
|
|
$ICL_PORT = $port;
|
|
|
|
$ICL_PORT = $port;
|
|
|
|
$IMAP_USE_INTERNAL_DATE = false;
|
|
|
|
$IMAP_USE_INTERNAL_DATE = false;
|
|
|
|
|
|
|
|
|
|
|
|
$data = rcmail::get_instance()->plugins->exec_hook('imap_connect', array('host' => $host, 'user' => $user));
|
|
|
|
$attempt = 0;
|
|
|
|
|
|
|
|
do {
|
|
|
|
|
|
|
|
$data = rcmail::get_instance()->plugins->exec_hook('imap_connect', array('host' => $host, 'user' => $user, 'attempt' => ++$attempt));
|
|
|
|
if (!empty($data['pass']))
|
|
|
|
if (!empty($data['pass']))
|
|
|
|
$pass = $data['pass'];
|
|
|
|
$pass = $data['pass'];
|
|
|
|
|
|
|
|
|
|
|
|
$this->conn = iil_Connect($data['host'], $data['user'], $pass, $this->options);
|
|
|
|
$this->conn = iil_Connect($data['host'], $data['user'], $pass, $this->options);
|
|
|
|
|
|
|
|
} while(!$this->conn && $data['retry']);
|
|
|
|
|
|
|
|
|
|
|
|
$this->host = $data['host'];
|
|
|
|
$this->host = $data['host'];
|
|
|
|
$this->user = $data['user'];
|
|
|
|
$this->user = $data['user'];
|
|
|
|
$this->pass = $pass;
|
|
|
|
$this->pass = $pass;
|
|
|
|