calendar/email: distinguish between meeting request and meeting reply, while displaying ics

This commit is contained in:
Klaus Leithoff 2012-06-06 09:45:44 +00:00
parent 1c63b3a936
commit f3b2cc3c46

View File

@ -1079,7 +1079,8 @@ blockquote[type=cite] {
$attachments = $this->bofelamimail->getMessageAttachments($uid, $partID, '',$fetchEmbeddedImages,true);
foreach ((array)$attachments as $key => $attach)
{
if (strtolower($attach['mimeType']) == 'text/calendar' && strtolower($attach['method']) == 'request' &&
if (strtolower($attach['mimeType']) == 'text/calendar' &&
(strtolower($attach['method']) == 'request' || strtolower($attach['method']) == 'reply') &&
isset($GLOBALS['egw_info']['user']['apps']['calendar']) &&
($attachment = $this->bofelamimail->getAttachment($uid, $attach['partID'])))
{