Skip to content

Commit

Permalink
[mms] Don't login to IMAP server if namespace information is already …
Browse files Browse the repository at this point in the history
…cached.
  • Loading branch information
slusarz committed Nov 27, 2013
1 parent 6aa7008 commit 917c720
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions framework/Imap_Client/lib/Horde/Imap/Client/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -703,15 +703,15 @@ abstract protected function _noop();
*/
public function getNamespaces(array $additional = array())
{
$this->login();

$additional = array_map('strval', $additional);
$sig = hash('sha1', serialize($additional));

if (isset($this->_init['namespace'][$sig])) {
return $this->_init['namespace'][$sig];
}

$this->login();

$ns = $this->_getNamespaces();

/* Skip namespaces if we have already auto-detected them. Also, hidden
Expand Down
4 changes: 2 additions & 2 deletions framework/Imap_Client/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Don&apos;t login to IMAP server if namespace information is already cached.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -2084,7 +2084,7 @@
<date>2013-11-21</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Don&apos;t login to IMAP server if namespace information is already cached.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 917c720

Please sign in to comment.