Skip to content

Commit

Permalink
* Mail: meeting-request was not shown inside multipart/related
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfbecker committed Feb 21, 2019
1 parent 5b5525b commit 6ae2bd4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions api/src/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -4772,11 +4772,13 @@ function getMultipartMixed($_uid, Horde_Mime_Part $_structure, $_htmlMode, $_pre
* @param Horde_Mime_Part $_structure if given use structure for parsing
* @param string $_htmlMode how to display a message, html, plain text, ...
* @param boolean $_preserveSeen flag to preserve the seenflag by using body.peek
* @param Horde_Mime_Part& $partCalendar =null on return text/calendar part, if one was contained or false
* @return array containing the desired part
*/
function getMultipartRelated($_uid, Horde_Mime_Part $_structure, $_htmlMode, $_preserveSeen = false)
function getMultipartRelated($_uid, Horde_Mime_Part $_structure, $_htmlMode, $_preserveSeen=false, &$partCalendar=null)
{
return $this->getMultipartMixed($_uid, $_structure, $_htmlMode, $_preserveSeen);
$skip = array();
return $this->getMultipartMixed($_uid, $_structure, $_htmlMode, $_preserveSeen, $skip, $partCalendar);
}

/**
Expand Down Expand Up @@ -4970,7 +4972,7 @@ function getMessageBody($_uid, $_htmlOptions='', $_partID=null, Horde_Mime_Part
break;

case 'related':
$bodyParts = $this->getMultipartRelated($_uid, $_structure, $this->htmlOptions, $_preserveSeen);
$bodyParts = $this->getMultipartRelated($_uid, $_structure, $this->htmlOptions, $_preserveSeen, $calendar_part);
break;
}
return self::normalizeBodyParts($bodyParts);
Expand Down

0 comments on commit 6ae2bd4

Please sign in to comment.