Fix mail preview failed to fetch text/calendar as attachment for smime signed messages

This commit is contained in:
hadi 2023-04-27 14:20:49 +02:00
parent 6be743628f
commit c93eb15fc0

View File

@ -3267,7 +3267,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,false,true, $mailbox); $attachments = $this->mail_bo->getMessageAttachments($uid, $partID, $structure,true,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))