diff --git a/felamimail/inc/class.felamimail_activesync.inc.php b/felamimail/inc/class.felamimail_activesync.inc.php index d944311b61..b8381d82c9 100644 --- a/felamimail/inc/class.felamimail_activesync.inc.php +++ b/felamimail/inc/class.felamimail_activesync.inc.php @@ -699,7 +699,7 @@ class felamimail_activesync implements activesync_plugin_write, activesync_plugi */ $bodyStruct = $this->mail->getMessageBody($uid, 'html_only'); - $bodyBUFF = $this->mail->getdisplayableBody($this->mail,$bodyStruct,true); + $bodyBUFF = $this->mail->getdisplayableBody($this->mail,$bodyStruct,true,false); if ($this->debugLevel>3) debugLog(__METHOD__.__LINE__.' html_only:'.$bodyBUFF); if ($bodyBUFF != "" && (is_array($bodyStruct) && $bodyStruct[0]['mimeType']=='text/html')) { // may be html @@ -711,7 +711,7 @@ class felamimail_activesync implements activesync_plugin_write, activesync_plugi // if the new part of the message is html, we must preserve it, and handle that the original mail is text/plain if ($orgMessageContentType!='text/html') $mailObject->IsHTML(false); $bodyStruct = $this->mail->getMessageBody($uid,'never_display');//'never_display'); - $bodyBUFF = $this->mail->getdisplayableBody($this->mail,$bodyStruct);//$this->ui->getdisplayableBody($bodyStruct,false); + $bodyBUFF = $this->mail->getdisplayableBody($this->mail,$bodyStruct,false,false); if ($this->debugLevel>0) debugLog("MIME Body ContentType ".$mailObject->ContentType); $bodyBUFF = ($mailObject->ContentType=='text/html'?'
':'').$bodyBUFF.($mailObject->ContentType=='text/html'?'':''); @@ -770,7 +770,7 @@ class felamimail_activesync implements activesync_plugin_write, activesync_plugi */ //$body .= $this->mail->createHeaderInfoSection($headers,lang("original message")); $bodyStruct = $this->mail->getMessageBody($uid, 'html_only'); - $bodyBUFF = $this->mail->getdisplayableBody($this->mail,$bodyStruct,true); + $bodyBUFF = $this->mail->getdisplayableBody($this->mail,$bodyStruct,true,false); if ($this->debugLevel>3) debugLog(__METHOD__.__LINE__.' html_only:'.$body); if ($bodyBUFF != "" && (is_array($bodyStruct) && $bodyStruct[0]['mimeType']=='text/html')) { // may be html @@ -782,7 +782,7 @@ class felamimail_activesync implements activesync_plugin_write, activesync_plugi // as we glue together the send mail part, and the smartforward part, we stick to the ContentType of the to be sent-Mail $mailObject->IsHTML($mailObject->ContentType=='text/html'); $bodyStruct = $this->mail->getMessageBody($uid,'never_display');//'never_display'); - $bodyBUFF = $this->mail->getdisplayableBody($this->mail,$bodyStruct);//$this->ui->getdisplayableBody($bodyStruct,false); + $bodyBUFF = $this->mail->getdisplayableBody($this->mail,$bodyStruct,false,false); if ($this->debugLevel>0) debugLog("MIME Body ContentType ".$mailObject->ContentType); $bodyBUFF = ($mailObject->ContentType=='text/html'?'
':'').$bodyBUFF.($mailObject->ContentType=='text/html'?'':''); @@ -1047,7 +1047,7 @@ class felamimail_activesync implements activesync_plugin_write, activesync_plugi if ($this->debugLevel>0) debugLog(__METHOD__.__LINE__. ' for message with ID:'.$id.' with headers:'.array2string($headers)); if ($bodypreference === false) { $bodyStruct = $this->mail->getMessageBody($id, 'only_if_no_text', '', '', true); - $body = $this->mail->getdisplayableBody($this->mail,$bodyStruct); + $body = $this->mail->getdisplayableBody($this->mail,$bodyStruct,false,false); $body = html_entity_decode($body,ENT_QUOTES,$this->mail->detect_encoding($body)); if (stripos($body,'