mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 10:23:28 +01:00
Mail: When importing from mail, prefer attachement filename when available
Fixes missing extensions in link name
This commit is contained in:
parent
abc2ca11b8
commit
46a78dd179
@ -357,9 +357,9 @@ class mail_integration {
|
|||||||
foreach($mailcontent['attachments'] as $key => $attachment)
|
foreach($mailcontent['attachments'] as $key => $attachment)
|
||||||
{
|
{
|
||||||
$data_attachments[$key] = array(
|
$data_attachments[$key] = array(
|
||||||
'name' => $mailcontent['attachments'][$key]['name'],
|
'name' => $attachment['filename'] ?? $mailcontent['attachments'][$key]['name'],
|
||||||
'type' => $mailcontent['attachments'][$key]['type'],
|
'type' => $mailcontent['attachments'][$key]['type'],
|
||||||
'size' => $mailcontent['attachments'][$key]['size'],
|
'size' => $mailcontent['attachments'][$key]['size'],
|
||||||
'tmp_name' => $mailcontent['attachments'][$key]['tmp_name']
|
'tmp_name' => $mailcontent['attachments'][$key]['tmp_name']
|
||||||
);
|
);
|
||||||
if ($uid && !$mailcontent['attachments'][$key]['add_raw'])
|
if ($uid && !$mailcontent['attachments'][$key]['add_raw'])
|
||||||
|
Loading…
Reference in New Issue
Block a user