|
@@ 5369-5382 (lines=14) @@
|
| 5366 |
|
'ids' => $uidsToFetch, |
| 5367 |
|
)); |
| 5368 |
|
if (is_object($headersNew)) { |
| 5369 |
|
foreach($headersNew as &$_headerObject) { |
| 5370 |
|
$retValue = $_headerObject->getHeaderText(); |
| 5371 |
|
if ($_partID != '') |
| 5372 |
|
{ |
| 5373 |
|
$mailStructureObject = $_headerObject->getStructure(); |
| 5374 |
|
foreach ($mailStructureObject->contentTypeMap() as $mime_id => $mime_type) |
| 5375 |
|
{ |
| 5376 |
|
if ($mime_id==$_partID) |
| 5377 |
|
{ |
| 5378 |
|
$retValue = $_headerObject->getHeaderText($mime_id); |
| 5379 |
|
} |
| 5380 |
|
} |
| 5381 |
|
} |
| 5382 |
|
} |
| 5383 |
|
} |
| 5384 |
|
$rawHeaders[$this->icServer->ImapServerId][(string)$_folder][$_uid][(empty($_partID)?'NIL':$_partID)]=$retValue; |
| 5385 |
|
Cache::setCache(Cache::INSTANCE,'email','rawHeadersCache'.trim($GLOBALS['egw_info']['user']['account_id']),$rawHeaders,60*60*1); |
|
@@ 5489-5503 (lines=15) @@
|
| 5486 |
|
'ids' => $uidsToFetch, |
| 5487 |
|
)); |
| 5488 |
|
if (is_object($headersNew)) { |
| 5489 |
|
foreach($headersNew as &$_headerObject) { |
| 5490 |
|
$body = $_headerObject->getFullMsg(); |
| 5491 |
|
if ($_partID != '') |
| 5492 |
|
{ |
| 5493 |
|
$mailStructureObject = $_headerObject->getStructure(); |
| 5494 |
|
//_debug_array($mailStructureObject->contentTypeMap()); |
| 5495 |
|
foreach ($mailStructureObject->contentTypeMap() as $mime_id => $mime_type) |
| 5496 |
|
{ |
| 5497 |
|
if ($mime_id==$_partID) |
| 5498 |
|
{ |
| 5499 |
|
$body = $_headerObject->getBodyPart($mime_id); |
| 5500 |
|
} |
| 5501 |
|
} |
| 5502 |
|
} |
| 5503 |
|
} |
| 5504 |
|
} |
| 5505 |
|
//error_log(__METHOD__.' ('.__LINE__.') '."[$this->icServer->ImapServerId][$_folder][$_uid][".(empty($_partID)?'NIL':$_partID)."]"); |
| 5506 |
|
$rawBody[$this->icServer->ImapServerId][$_folder][$_uid][(empty($_partID)?'NIL':$_partID)] = $body; |