mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 20:08:34 +01:00
Do not add inline attachment images again on draft
This commit is contained in:
parent
96271f73f1
commit
5ba5b0fb45
@ -1653,6 +1653,10 @@ class mail_compose
|
|||||||
|
|
||||||
if(($attachments = $mail_bo->getMessageAttachments($_uid,$_partID))) {
|
if(($attachments = $mail_bo->getMessageAttachments($_uid,$_partID))) {
|
||||||
foreach($attachments as $attachment) {
|
foreach($attachments as $attachment) {
|
||||||
|
$cid = $attachment['cid'];
|
||||||
|
preg_match("/[cid:{$cid}]/", $bodyParts['0']['body'], $match);
|
||||||
|
if (!$match || !$attachment['cid'])
|
||||||
|
{
|
||||||
$this->addMessageAttachment($_uid, $attachment['partID'],
|
$this->addMessageAttachment($_uid, $attachment['partID'],
|
||||||
$_folder,
|
$_folder,
|
||||||
$attachment['name'],
|
$attachment['name'],
|
||||||
@ -1660,6 +1664,7 @@ class mail_compose
|
|||||||
$attachment['size']);
|
$attachment['size']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$mail_bo->closeConnection();
|
$mail_bo->closeConnection();
|
||||||
return $this->sessionData;
|
return $this->sessionData;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user