* Mail/SMIME: fix signed calendar events not being displayed (error:importing the ical!)

This commit is contained in:
Hadi Nategh 2021-06-24 14:05:43 +02:00
parent 203a31d4e6
commit 8121a55a54

View File

@ -3311,7 +3311,8 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
if ($calendar_part && isset($GLOBALS['egw_info']['user']['apps']['calendar']))
{
$charset = $calendar_part->getContentTypeParameter('charset');
$this->mail_bo->fetchPartContents($uid, $calendar_part);
// Do not try to fetch raw part content if it's smime signed message
if (!$smime) $this->mail_bo->fetchPartContents($uid, $calendar_part);
Api\Cache::setSession('calendar', 'ical', array(
'charset' => $charset ? $charset : 'utf-8',
'attachment' => $calendar_part->getContents(),