forked from extern/egroupware
* Mail: fix for problem when retrieving and displaying an event from winmail.dat attachment
This commit is contained in:
parent
4787b3e81e
commit
eec9fa33ac
@ -2755,30 +2755,20 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
|||||||
{
|
{
|
||||||
if (strtolower($attach['mimeType']) == 'text/calendar' &&
|
if (strtolower($attach['mimeType']) == 'text/calendar' &&
|
||||||
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'],$attach['is_winmail'],(strtolower($attach['mimeType']) == 'text/calendar'?false:true))))
|
||||||
{
|
{
|
||||||
$ical = new calendar_ical();
|
//error_log(__METHOD__.__LINE__.array2string($attachment));
|
||||||
$ical_charset = $attach['charset'] ? $attach['charset'] : 'utf-8';
|
egw_cache::setSession('calendar', 'ical', array(
|
||||||
if (($events = $ical->icaltoegw($attachment['attachment'], '', $ical_charset)))
|
'charset' => $attach['charset'] ? $attach['charset'] : 'utf-8',
|
||||||
{
|
'attachment' => $attachment['attachment'],
|
||||||
//error_log(__METHOD__.__LINE__.array2string($attachment));
|
'method' => $attach['method'],
|
||||||
egw_cache::setSession('calendar', 'ical', array(
|
'sender' => $mailbox,
|
||||||
'charset' => $attach['charset'] ? $attach['charset'] : 'utf-8',
|
));
|
||||||
'attachment' => $attachment['attachment'],
|
$this->mail_bo->htmlOptions = $bufferHtmlOptions;
|
||||||
'method' => $attach['method'],
|
translation::add_app('calendar');
|
||||||
'sender' => $mailbox,
|
return ExecMethod( 'calendar.calendar_uiforms.meeting',
|
||||||
));
|
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
|
|
||||||
{
|
|
||||||
error_log(__METHOD__.__LINE__.'Cannot import the following as ical:'.array2string($attachment));
|
|
||||||
//$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