diff options
author | alecpl <alec@alec.pl> | 2009-10-13 07:41:31 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-10-13 07:41:31 +0000 |
commit | f281242fa41160daca6f2a4775d6f5dedd61a946 (patch) | |
tree | 770ee2e7d2b1f3917cdd086afa565b9efbac476b /program/include/rcube_imap.php | |
parent | 1a00f138c6d6903d7fc51dca4ef46dd675aec9fa (diff) |
- performance: fix storing of imap_delimiter in session
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 533f94177..a358186cf 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -112,7 +112,7 @@ class rcube_imap $ICL_PORT = $port; $IMAP_USE_INTERNAL_DATE = false; - + $attempt = 0; do { $data = rcmail::get_instance()->plugins->exec_hook('imap_connect', array('host' => $host, 'user' => $user, 'attempt' => ++$attempt)); @@ -144,13 +144,13 @@ class rcube_imap // get server properties if ($this->conn) { - if (!empty($this->conn->delimiter)) - $this->delimiter = $this->conn->delimiter; if (!empty($this->conn->rootdir)) { $this->set_rootdir($this->conn->rootdir); $this->root_ns = preg_replace('/[.\/]$/', '', $this->conn->rootdir); } + if (empty($this->delimiter)) + $this->get_hierarchy_delimiter(); } return $this->conn ? TRUE : FALSE; |