diff options
author | alecpl <alec@alec.pl> | 2011-09-19 12:34:01 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-09-19 12:34:01 +0000 |
commit | e7e79470e425c75495a846435b43350f0b793bb7 (patch) | |
tree | eef7f69d0314c6a3cb9e94cc5f98961398a852b2 /program/include/rcube_imap.php | |
parent | 5d62d9af93eeac1088ccff505f04f80d3a57b36d (diff) |
- Allow setting connection options in imap_connect hook
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index e9dafbf9e..f95f7cef4 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -176,12 +176,13 @@ class rcube_imap $attempt = 0; do { $data = rcmail::get_instance()->plugins->exec_hook('imap_connect', - array('host' => $host, 'user' => $user, 'attempt' => ++$attempt)); + array_merge($this->options, array('host' => $host, 'user' => $user, + 'attempt' => ++$attempt))); if (!empty($data['pass'])) $pass = $data['pass']; - $this->conn->connect($data['host'], $data['user'], $pass, $this->options); + $this->conn->connect($data['host'], $data['user'], $pass, $data); } while(!$this->conn->connected() && $data['retry']); $this->host = $data['host']; |