|
@@ 5676-5676 (lines=1) @@
|
| 5673 |
|
$attachment['mimeType'] = $mime_type; |
| 5674 |
|
$attachment['uid'] = $_uid; |
| 5675 |
|
$attachment['partID'] = $mime_id; |
| 5676 |
|
if (!isset($attachment['name'])||empty($attachment['name'])) $attachment['name'] = $part->getName(); |
| 5677 |
|
if ($fetchTextCalendar) |
| 5678 |
|
{ |
| 5679 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.array2string($part->getAllContentTypeParameters())); |
|
@@ 5722-5722 (lines=1) @@
|
| 5719 |
|
$attachment['uid'] = $tnp['uid']; |
| 5720 |
|
$attachment['partID'] = $tnp['partID']; |
| 5721 |
|
$attachment['is_winmail'] = $tnp['uid'].'@'.$tnp['partID'].'@'.$mime_id; |
| 5722 |
|
if (!isset($attachment['name'])||empty($attachment['name'])) $attachment['name'] = $part->getName(); |
| 5723 |
|
$attachment['size'] = $part->getBytes(); |
| 5724 |
|
if (($cid = $part->getContentId())) $attachment['cid'] = $cid; |
| 5725 |
|
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']); |
|
@@ 5833-5833 (lines=1) @@
|
| 5830 |
|
|
| 5831 |
|
$attachment = $part->getAllDispositionParameters(); |
| 5832 |
|
$attachment['mimeType'] = $part->getType(); |
| 5833 |
|
if (!isset($attachment['filename'])||empty($attachment['filename'])) $attachment['filename'] = $part->getName(); |
| 5834 |
|
if (($cid = $part->getContentId())) $attachment['cid'] = $cid; |
| 5835 |
|
if (empty($attachment['filename'])) |
| 5836 |
|
{ |
|
@@ 5946-5946 (lines=1) @@
|
| 5943 |
|
if ($_winmail_nr == $wantedPart.'@'.$mime_id) |
| 5944 |
|
{ |
| 5945 |
|
//error_log(__METHOD__.__LINE__.'#'.$structure_mime.'#'.$filename.'#'.array2string($attachment)); |
| 5946 |
|
if (!isset($attachment['filename'])||empty($attachment['filename'])) $attachment['filename'] = $part->getName(); |
| 5947 |
|
if (($cid = $part->getContentId())) $attachment['cid'] = $cid; |
| 5948 |
|
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']); |
| 5949 |
|
$wmattach = $attachment; |