forked from extern/egroupware
Fix mail with forwarded attachment may not be shown if there's no name assigned
This commit is contained in:
parent
ff7c7326f5
commit
377766293f
@ -1730,7 +1730,10 @@ class Mail
|
|||||||
$headerObject['ATTACHMENTS'][$mime_id]['uid']=$uid;
|
$headerObject['ATTACHMENTS'][$mime_id]['uid']=$uid;
|
||||||
$headerObject['ATTACHMENTS'][$mime_id]['cid'] = $cid;
|
$headerObject['ATTACHMENTS'][$mime_id]['cid'] = $cid;
|
||||||
$headerObject['ATTACHMENTS'][$mime_id]['partID']=$mime_id;
|
$headerObject['ATTACHMENTS'][$mime_id]['partID']=$mime_id;
|
||||||
if (!isset($headerObject['ATTACHMENTS'][$mime_id]['name']))$headerObject['ATTACHMENTS'][$mime_id]['name']=$part->getName();
|
if (!isset($headerObject['ATTACHMENTS'][$mime_id]['name']))
|
||||||
|
{
|
||||||
|
$headerObject['ATTACHMENTS'][$mime_id]['name']= $part->getName() ? $part->getName() : lang('forwarded message');
|
||||||
|
}
|
||||||
if (!strcasecmp($headerObject['ATTACHMENTS'][$mime_id]['name'],'winmail.dat') ||
|
if (!strcasecmp($headerObject['ATTACHMENTS'][$mime_id]['name'],'winmail.dat') ||
|
||||||
$headerObject['ATTACHMENTS'][$mime_id]['mimeType']=='application/ms-tnef')
|
$headerObject['ATTACHMENTS'][$mime_id]['mimeType']=='application/ms-tnef')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user