|
@@ 1634-1638 (lines=5) @@
|
| 1631 |
|
// as attachment in order to not loose/miss information on our data |
| 1632 |
|
$partdisposition='attachment';//($partPrimaryType == 'image'&&!empty($cid)?'inline':'attachment'); |
| 1633 |
|
} |
| 1634 |
|
if ($mime_type=='message/rfc822') |
| 1635 |
|
{ |
| 1636 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.' Uid:'.$uid.'->'.$mime_id.':'.array2string($part->contentTypeMap())); |
| 1637 |
|
foreach($part->contentTypeMap() as $sub_id => $sub_type) { if ($sub_id != $mime_id) $skipParts[$sub_id] = $sub_type;} |
| 1638 |
|
} |
| 1639 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.' Uid:'.$uid.'->'.$mime_id.' Disp:'.$partdisposition.' Type:'.$partPrimaryType.' Skip:'.array2string($skipParts)); |
| 1640 |
|
if (array_key_exists($mime_id,$skipParts)) continue; |
| 1641 |
|
if ($partdisposition=='attachment' || |
|
@@ 5543-5547 (lines=5) @@
|
| 5540 |
|
$partPrimaryType = $part->getPrimaryType(); |
| 5541 |
|
// we only want to retrieve the attachments of the current mail, not those of possible |
| 5542 |
|
// attached mails |
| 5543 |
|
if ($mime_type=='message/rfc822' && $_partID!=$mime_id) |
| 5544 |
|
{ |
| 5545 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.' Uid:'.$uid.'->'.$mime_id.':'.array2string($part->contentTypeMap())); |
| 5546 |
|
foreach($part->contentTypeMap() as $sub_id => $sub_type) {if ($sub_id != $mime_id) $skipParts[$sub_id] = $sub_type;} |
| 5547 |
|
} |
| 5548 |
|
if (empty($partDisposition) && $partPrimaryType != 'multipart' && $partPrimaryType != 'text') |
| 5549 |
|
{ |
| 5550 |
|
// the absence of an partDisposition does not necessarily indicate there is no attachment. it may be an |