|
@@ 5284-5288 (lines=5) @@
|
| 5281 |
|
//error_log(__METHOD__.' ('.__LINE__.') '." Try Using Cache for raw Header $_uid, $_partID in Folder $_folder"); |
| 5282 |
|
|
| 5283 |
|
if (is_null($rawHeaders)||!is_array($rawHeaders)) $rawHeaders = Cache::getCache(Cache::INSTANCE,'email','rawHeadersCache'.trim($GLOBALS['egw_info']['user']['account_id']),null,array(),60*60*1); |
| 5284 |
|
if (isset($rawHeaders[$this->icServer->ImapServerId][(string)$_folder][$_uid][(empty($_partID)?'NIL':$_partID)])) |
| 5285 |
|
{ |
| 5286 |
|
//error_log(__METHOD__.' ('.__LINE__.') '." Using Cache for raw Header $_uid, $_partID in Folder $_folder"); |
| 5287 |
|
return $rawHeaders[$this->icServer->ImapServerId][(string)$_folder][$_uid][(empty($_partID)?'NIL':$_partID)]; |
| 5288 |
|
} |
| 5289 |
|
$uidsToFetch = new Horde_Imap_Client_Ids(); |
| 5290 |
|
$uid = $_uid; |
| 5291 |
|
if (!(is_object($_uid) || is_array($_uid))) $uid = (array)$_uid; |
|
@@ 5406-5410 (lines=5) @@
|
| 5403 |
|
static $rawBody; |
| 5404 |
|
if (is_null($rawBody)) $rawBody = array(); |
| 5405 |
|
if (empty($_folder)) $_folder = ($this->sessionData['mailbox']? $this->sessionData['mailbox'] : $this->icServer->getCurrentMailbox()); |
| 5406 |
|
if (isset($rawBody[$this->icServer->ImapServerId][$_folder][$_uid][(empty($_partID)?'NIL':$_partID)])) |
| 5407 |
|
{ |
| 5408 |
|
//error_log(__METHOD__.' ('.__LINE__.') '." Using Cache for raw Body $_uid, $_partID in Folder $_folder"); |
| 5409 |
|
return $rawBody[$this->icServer->ImapServerId][$_folder][$_uid][(empty($_partID)?'NIL':$_partID)]; |
| 5410 |
|
} |
| 5411 |
|
|
| 5412 |
|
$uidsToFetch = new Horde_Imap_Client_Ids(); |
| 5413 |
|
$uid = $_uid; |