Don't send inline images as attachments in smime messages back into client-side

This commit is contained in:
hadi 2023-06-20 11:37:48 +02:00
parent 717bf2a717
commit 66ac4309fb

View File

@ -3336,7 +3336,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
{ {
$smime['msg'] = lang($smime['msg']); $smime['msg'] = lang($smime['msg']);
$acc_smime = Mail\Smime::get_acc_smime($this->mail_bo->profileID); $acc_smime = Mail\Smime::get_acc_smime($this->mail_bo->profileID);
$attachments = $this->mail_bo->getMessageAttachments($uid, $partID, $structure,true,true,true, $mailbox); $attachments = $this->mail_bo->getMessageAttachments($uid, $partID, $structure,false,true,true, $mailbox);
$push = new Api\Json\Push($GLOBALS['egw_info']['user']['account_id']); $push = new Api\Json\Push($GLOBALS['egw_info']['user']['account_id']);
if (!empty($acc_smime) && !empty($smime['addtocontact'])) $push->call('app.mail.smime_certAddToContact', $smime); if (!empty($acc_smime) && !empty($smime['addtocontact'])) $push->call('app.mail.smime_certAddToContact', $smime);
if (is_array($attachments)) if (is_array($attachments))