mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 18:31:37 +02:00
Use charset from mail part
This commit is contained in:
parent
5c3a4fe6ce
commit
f208af8dfb
@ -1698,7 +1698,7 @@ class Mail
|
|||||||
$_structure=$part;
|
$_structure=$part;
|
||||||
$this->fetchPartContents($uid, $_structure, false,true);
|
$this->fetchPartContents($uid, $_structure, false,true);
|
||||||
$headerObject['BODYPREVIEW']=trim(str_replace(array("\r\n","\r","\n"),' ',mb_substr(Mail\Html::convertHTMLToText($_structure->getContents()),0,((int)$_fetchPreviews<300?300:$_fetchPreviews))));
|
$headerObject['BODYPREVIEW']=trim(str_replace(array("\r\n","\r","\n"),' ',mb_substr(Mail\Html::convertHTMLToText($_structure->getContents()),0,((int)$_fetchPreviews<300?300:$_fetchPreviews))));
|
||||||
$charSet=Translation::detect_encoding($headerObject['BODYPREVIEW']);
|
$charSet = $part->getCharset();
|
||||||
// add line breaks to $bodyParts
|
// add line breaks to $bodyParts
|
||||||
//error_log(__METHOD__.' ('.__LINE__.') '.' Charset:'.$bodyParts[$i]['charSet'].'->'.$bodyParts[$i]['body']);
|
//error_log(__METHOD__.' ('.__LINE__.') '.' Charset:'.$bodyParts[$i]['charSet'].'->'.$bodyParts[$i]['body']);
|
||||||
$headerObject['BODYPREVIEW'] = Translation::convert_jsonsafe($headerObject['BODYPREVIEW'], $charSet);
|
$headerObject['BODYPREVIEW'] = Translation::convert_jsonsafe($headerObject['BODYPREVIEW'], $charSet);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user