conditional replace of all CarriageReturnLinefeeds, since, if it is done always, a sendmail looses its linebreaks

This commit is contained in:
Klaus Leithoff 2009-03-09 10:43:25 +00:00
parent 10e7a6ba21
commit e4f6c3c488

View File

@ -1392,7 +1392,7 @@ class infolog_ui
$newBody = $GLOBALS['egw']->translation->convert($bodyParts[$i]['body'], $bodyParts[$i]['charSet']);
if ($bodyParts[$i]['mimeType'] == 'text/html') {
// convert HTML to text, as we dont want HTML in infologs
$newBody = $bofelamimail->convertHTMLToText($newBody);
$newBody = $bofelamimail->convertHTMLToText($newBody,true);
$bofelamimail->getCleanHTML($newBody); // new Body passed by reference
$message .= $newBody;
continue;