Mail: Fix event detection in multipart mixed mails

Meeting form was not presented, just request content
This commit is contained in:
nathan 2023-06-26 08:43:29 -06:00
parent 7370b42c1e
commit c8bee10afc

View File

@ -4729,9 +4729,14 @@ class Mail
case 'text': case 'text':
switch($part->getSubType()) switch($part->getSubType())
{ {
case 'calendar': // inline ics/ical files
if($part->getBytes() > 0)
{
$partCalendar = $part;
}
// Fall through in case user has no calendar access
case 'plain': case 'plain':
case 'html': case 'html':
case 'calendar': // inline ics/ical files
if($part->getDisposition() != 'attachment') if($part->getDisposition() != 'attachment')
{ {
$bodyPart[] = $this->getTextPart($_uid, $part, $_htmlMode, $_preserveSeen); $bodyPart[] = $this->getTextPart($_uid, $part, $_htmlMode, $_preserveSeen);