mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
try to handle text/calendar attachments that are NO ical-file
This commit is contained in:
parent
1f3c674ef6
commit
352640e2b2
@ -2763,18 +2763,27 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
|||||||
isset($GLOBALS['egw_info']['user']['apps']['calendar']) &&
|
isset($GLOBALS['egw_info']['user']['apps']['calendar']) &&
|
||||||
($attachment = $this->mail_bo->getAttachment($uid, $attach['partID'],0,(strtolower($attach['mimeType']) == 'text/calendar'?false:true))))
|
($attachment = $this->mail_bo->getAttachment($uid, $attach['partID'],0,(strtolower($attach['mimeType']) == 'text/calendar'?false:true))))
|
||||||
{
|
{
|
||||||
//error_log(__METHOD__.__LINE__.array2string($attachment));
|
$ical = new calendar_ical();
|
||||||
egw_cache::setSession('calendar', 'ical', array(
|
$ical_charset = $attach['charset'] ? $attach['charset'] : 'utf-8';
|
||||||
'charset' => $attach['charset'] ? $attach['charset'] : 'utf-8',
|
if (($events = $ical->icaltoegw($attachment['attachment'], '', $ical_charset)))
|
||||||
'attachment' => $attachment['attachment'],
|
{
|
||||||
'method' => $attach['method'],
|
//error_log(__METHOD__.__LINE__.array2string($attachment));
|
||||||
'sender' => $mailbox,
|
egw_cache::setSession('calendar', 'ical', array(
|
||||||
));
|
'charset' => $attach['charset'] ? $attach['charset'] : 'utf-8',
|
||||||
$this->mail_bo->htmlOptions = $bufferHtmlOptions;
|
'attachment' => $attachment['attachment'],
|
||||||
translation::add_app('calendar');
|
'method' => $attach['method'],
|
||||||
return ExecMethod( 'calendar.calendar_uiforms.meeting',
|
'sender' => $mailbox,
|
||||||
array('event'=>null,'msg'=>'','useSession'=>true)
|
));
|
||||||
);
|
$this->mail_bo->htmlOptions = $bufferHtmlOptions;
|
||||||
|
translation::add_app('calendar');
|
||||||
|
return ExecMethod( 'calendar.calendar_uiforms.meeting',
|
||||||
|
array('event'=>null,'msg'=>'','useSession'=>true)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$bodyParts[] = array('body'=>$attachment['attachment'], 'charSet'=>$attach['charset'] ? $attach['charset'] : 'utf-8');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Compose the content of the frame
|
// Compose the content of the frame
|
||||||
|
Loading…
Reference in New Issue
Block a user