mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
do NOT return iCalendar for displayable body, mail triggers calendar meeting display from attachment
This commit is contained in:
parent
d3f688760f
commit
a8e13d4526
@ -4151,7 +4151,6 @@ class emailadmin_imapbase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* getMultipartAlternative
|
|
||||||
* get part of the message, if its stucture is indicating its of multipart alternative style
|
* get part of the message, if its stucture is indicating its of multipart alternative style
|
||||||
* a wrapper for multipartmixed
|
* a wrapper for multipartmixed
|
||||||
* @param string/int $_uid the messageuid,
|
* @param string/int $_uid the messageuid,
|
||||||
@ -4187,11 +4186,6 @@ class emailadmin_imapbase
|
|||||||
case 'text':
|
case 'text':
|
||||||
switch($mimePart->getSubType())
|
switch($mimePart->getSubType())
|
||||||
{
|
{
|
||||||
case 'calendar': // only if there is no partText set already
|
|
||||||
//if ($partText) break;
|
|
||||||
if ($mimePart->getBytes() > 0) $partCalendar = $mimePart;
|
|
||||||
break;
|
|
||||||
// fall throught
|
|
||||||
case 'plain':
|
case 'plain':
|
||||||
if ($mimePart->getBytes() > 0) $partText = $mimePart;
|
if ($mimePart->getBytes() > 0) $partText = $mimePart;
|
||||||
break;
|
break;
|
||||||
@ -4224,9 +4218,6 @@ class emailadmin_imapbase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// seems we have a multipart/alternative; as we assume we are able to display events
|
|
||||||
// the text/calendar part has higher precedence then text/plain
|
|
||||||
if ($partCalendar && $partText) $partText = $partCalendar;
|
|
||||||
|
|
||||||
switch($_htmlMode)
|
switch($_htmlMode)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user