* emailadmin: caching nameSpace information for the request to reduce communication to imap-server with the goal of improved performance clientside and less querying the mailserver

This commit is contained in:
Klaus Leithoff 2011-09-21 09:06:24 +00:00
parent a0c437a23e
commit 643dcfa834

View File

@ -394,6 +394,9 @@ class defaultimap extends Net_IMAP
if(!$this->_connected) {
return false;
}
static $nameSpace;
if (isset($nameSpace)) return $nameSpace;
$retrieveDefault = false;
if($this->hasCapability('NAMESPACE')) {
$nameSpace = $this->getNamespace();
@ -425,7 +428,7 @@ class defaultimap extends Net_IMAP
)
);
}
$nameSpace = $result;
return $result;
}