forked from extern/egroupware
Do not add attahcment if it is an inline image attachment
This commit is contained in:
parent
2de90a74e4
commit
6258f77a18
@ -1722,6 +1722,8 @@ class mail_compose
|
||||
if(($attachments = $mail_bo->getMessageAttachments($_uid,$_partID))) {
|
||||
//error_log(__METHOD__.__LINE__.':'.array2string($attachments));
|
||||
foreach($attachments as $attachment) {
|
||||
if (!($attachment['cid'] && preg_match("/image\//",$attachment['mimeType'])))
|
||||
{
|
||||
$this->addMessageAttachment($_uid, $attachment['partID'],
|
||||
$_folder,
|
||||
$attachment['name'],
|
||||
@ -1730,6 +1732,7 @@ class mail_compose
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$mail_bo->closeConnection();
|
||||
if ($_mode)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user