mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:26 +01:00
* eMail: support multipart/mixed mails with html parts to display (apple mail does that kind of emails)
This commit is contained in:
parent
2ed3b3f205
commit
3f0a57d262
@ -1812,7 +1812,7 @@
|
||||
$partText = $mimePart;
|
||||
} elseif($mimePart->type == 'TEXT' && $mimePart->subType == 'HTML' && $mimePart->bytes > 0) {
|
||||
$partHTML = $mimePart;
|
||||
} elseif ($mimePart->type == 'MULTIPART' && $mimePart->subType == 'RELATED' && is_array($mimePart->subParts)) {
|
||||
} elseif ($mimePart->type == 'MULTIPART' && ($mimePart->subType == 'RELATED' || $mimePart->subType == 'MIXED') && is_array($mimePart->subParts)) {
|
||||
// in a multipart alternative we treat the multipart/related as html part
|
||||
#$partHTML = array($mimePart);
|
||||
error_log(__METHOD__." process MULTIPART/RELATED with array as subparts");
|
||||
@ -1828,6 +1828,8 @@
|
||||
if(is_object($partHTML)) {
|
||||
if($partHTML->subType == 'RELATED') {
|
||||
return $this->getMultipartRelated($_uid, $partHTML, 'always_display', $_preserveSeen);
|
||||
} elseif($partHTML->subType == 'MIXED') {
|
||||
return $this->getMultipartMixed($_uid, $partHTML, 'always_display', $_preserveSeen);
|
||||
} else {
|
||||
return $this->getTextPart($_uid, $partHTML, 'always_display',$_preserveSeen);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user