mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +01:00
fix bug regarding caching of email structure by server and uid, as gmail seems to handle uid by folder, not unique for the whole box; now using serverid, folder and uid to work around this behavior
This commit is contained in:
parent
ace0ff9349
commit
f444bb253d
@ -1013,14 +1013,15 @@ class felamimail_bo
|
||||
function _getStructure($_uid, $byUid=true)
|
||||
{
|
||||
static $structure;
|
||||
$_folder = $this->sessionData['mailbox'];
|
||||
if (is_null($structure)) $structure =& egw_cache::getSession('felamimail','structureCache');
|
||||
if (isset($structure[$this->icServer->ImapServerId][$_uid]))
|
||||
if (isset($structure[$this->icServer->ImapServerId][$_folder][$_uid]))
|
||||
{
|
||||
//error_log(__METHOD__.__LINE__.' Using cache for structure on Server:'.$this->icServer->ImapServerId.' for uid:'.$_uid);
|
||||
return $structure[$this->icServer->ImapServerId][$_uid];
|
||||
return $structure[$this->icServer->ImapServerId][$_folder][$_uid];
|
||||
}
|
||||
$structure[$this->icServer->ImapServerId][$_uid] = $this->icServer->getStructure($_uid, $byUid);
|
||||
return $structure[$this->icServer->ImapServerId][$_uid];
|
||||
$structure[$this->icServer->ImapServerId][$_folder][$_uid] = $this->icServer->getStructure($_uid, $byUid);
|
||||
return $structure[$this->icServer->ImapServerId][$_folder][$_uid];
|
||||
}
|
||||
|
||||
function _getSubStructure($_structure, $_partID)
|
||||
|
Loading…
Reference in New Issue
Block a user