|
@@ 5635-5635 (lines=1) @@
|
| 5632 |
|
$attachment['mimeType'] = $mime_type; |
| 5633 |
|
$attachment['uid'] = $_uid; |
| 5634 |
|
$attachment['partID'] = $mime_id; |
| 5635 |
|
if (!isset($attachment['name'])||empty($attachment['name'])) $attachment['name'] = $part->getName(); |
| 5636 |
|
if ($fetchTextCalendar) |
| 5637 |
|
{ |
| 5638 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.array2string($part->getAllContentTypeParameters())); |
|
@@ 5681-5681 (lines=1) @@
|
| 5678 |
|
$attachment['uid'] = $tnp['uid']; |
| 5679 |
|
$attachment['partID'] = $tnp['partID']; |
| 5680 |
|
$attachment['is_winmail'] = $tnp['uid'].'@'.$tnp['partID'].'@'.$mime_id; |
| 5681 |
|
if (!isset($attachment['name'])||empty($attachment['name'])) $attachment['name'] = $part->getName(); |
| 5682 |
|
$attachment['size'] = $part->getBytes(); |
| 5683 |
|
if (($cid = $part->getContentId())) $attachment['cid'] = $cid; |
| 5684 |
|
if (empty($attachment['name'])) $attachment['name'] = (isset($attachment['cid'])&&!empty($attachment['cid'])?$attachment['cid']:lang("unknown").'_Uid'.$_uid.'_Part'.$mime_id).'.'.MimeMagic::mime2ext($attachment['mimeType']); |
|
@@ 5792-5792 (lines=1) @@
|
| 5789 |
|
|
| 5790 |
|
$attachment = $part->getAllDispositionParameters(); |
| 5791 |
|
$attachment['mimeType'] = $part->getType(); |
| 5792 |
|
if (!isset($attachment['filename'])||empty($attachment['filename'])) $attachment['filename'] = $part->getName(); |
| 5793 |
|
if (($cid = $part->getContentId())) $attachment['cid'] = $cid; |
| 5794 |
|
if (empty($attachment['filename'])) |
| 5795 |
|
{ |
|
@@ 5905-5905 (lines=1) @@
|
| 5902 |
|
if ($_winmail_nr == $wantedPart.'@'.$mime_id) |
| 5903 |
|
{ |
| 5904 |
|
//error_log(__METHOD__.__LINE__.'#'.$structure_mime.'#'.$filename.'#'.array2string($attachment)); |
| 5905 |
|
if (!isset($attachment['filename'])||empty($attachment['filename'])) $attachment['filename'] = $part->getName(); |
| 5906 |
|
if (($cid = $part->getContentId())) $attachment['cid'] = $cid; |
| 5907 |
|
if (empty($attachment['filename'])) $attachment['filename'] = (isset($attachment['cid'])&&!empty($attachment['cid'])?$attachment['cid']:lang("unknown").'_Uid'.$_uid.'_Part'.$mime_id).'.'.MimeMagic::mime2ext($attachment['mimeType']); |
| 5908 |
|
$wmattach = $attachment; |