Author: leithoff
New Revision: 55229
URL: http://svn.stylite.de/viewvc/egroupware?rev=55229&view=rev
Log:
try to handle text/calendar attachments that are NO ical-file
Modified:
trunk/mail/inc/class.mail_ui.inc.php
— trunk/mail/inc/class.mail_ui.inc.php (original)
+++ trunk/mail/inc/class.mail_ui.inc.php Thu Mar 3 14:29:29 2016
@@ -2763,18 +2763,27 @@
isset($GLOBALS[‘egw_info’][‘user’][‘apps’][‘calendar’]) &&
($attachment = $this->mail_bo->getAttachment($uid, $attach[‘partID’],0,(strtolower($attach[‘mimeType’]) == ‘text/calendar’?false:true))))
{
-
//error_log(__METHOD__.__LINE__.array2string($attachment));
-
egw_cache::setSession('calendar', 'ical', array(
-
'charset' => $attach['charset'] ? $attach['charset'] : 'utf-8',
-
'attachment' => $attachment['attachment'],
-
'method' => $attach['method'],
-
'sender' => $mailbox,
-
));
-
$this->mail_bo->htmlOptions = $bufferHtmlOptions;
-
translation::add_app('calendar');
-
return ExecMethod( 'calendar.calendar_uiforms.meeting',
-
array('event'=>null,'msg'=>'','useSession'=>true)
-
);
-
$ical = new calendar_ical();
-
$ical_charset = $attach['charset'] ? $attach['charset'] : 'utf-8';
-
if (($events = $ical->icaltoegw($attachment['attachment'], '', $ical_charset)))
-
{
-
//error_log(__METHOD__.__LINE__.array2string($attachment));
-
egw_cache::setSession('calendar', 'ical', array(
-
'charset' => $attach['charset'] ? $attach['charset'] : 'utf-8',
-
'attachment' => $attachment['attachment'],
-
'method' => $attach['method'],
-
'sender' => $mailbox,
-
));
-
$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
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs