|
@@ 5308-5321 (lines=14) @@
|
| 5305 |
|
'ids' => $uidsToFetch, |
| 5306 |
|
)); |
| 5307 |
|
if (is_object($headersNew)) { |
| 5308 |
|
foreach($headersNew as &$_headerObject) { |
| 5309 |
|
$retValue = $_headerObject->getHeaderText(); |
| 5310 |
|
if ($_partID != '') |
| 5311 |
|
{ |
| 5312 |
|
$mailStructureObject = $_headerObject->getStructure(); |
| 5313 |
|
foreach ($mailStructureObject->contentTypeMap() as $mime_id => $mime_type) |
| 5314 |
|
{ |
| 5315 |
|
if ($mime_id==$_partID) |
| 5316 |
|
{ |
| 5317 |
|
$retValue = $_headerObject->getHeaderText($mime_id); |
| 5318 |
|
} |
| 5319 |
|
} |
| 5320 |
|
} |
| 5321 |
|
} |
| 5322 |
|
} |
| 5323 |
|
$rawHeaders[$this->icServer->ImapServerId][(string)$_folder][$_uid][(empty($_partID)?'NIL':$_partID)]=$retValue; |
| 5324 |
|
Cache::setCache(Cache::INSTANCE,'email','rawHeadersCache'.trim($GLOBALS['egw_info']['user']['account_id']),$rawHeaders,60*60*1); |
|
@@ 5428-5442 (lines=15) @@
|
| 5425 |
|
'ids' => $uidsToFetch, |
| 5426 |
|
)); |
| 5427 |
|
if (is_object($headersNew)) { |
| 5428 |
|
foreach($headersNew as &$_headerObject) { |
| 5429 |
|
$body = $_headerObject->getFullMsg(); |
| 5430 |
|
if ($_partID != '') |
| 5431 |
|
{ |
| 5432 |
|
$mailStructureObject = $_headerObject->getStructure(); |
| 5433 |
|
//_debug_array($mailStructureObject->contentTypeMap()); |
| 5434 |
|
foreach ($mailStructureObject->contentTypeMap() as $mime_id => $mime_type) |
| 5435 |
|
{ |
| 5436 |
|
if ($mime_id==$_partID) |
| 5437 |
|
{ |
| 5438 |
|
$body = $_headerObject->getBodyPart($mime_id); |
| 5439 |
|
} |
| 5440 |
|
} |
| 5441 |
|
} |
| 5442 |
|
} |
| 5443 |
|
} |
| 5444 |
|
//error_log(__METHOD__.' ('.__LINE__.') '."[$this->icServer->ImapServerId][$_folder][$_uid][".(empty($_partID)?'NIL':$_partID)."]"); |
| 5445 |
|
$rawBody[$this->icServer->ImapServerId][$_folder][$_uid][(empty($_partID)?'NIL':$_partID)] = $body; |