Commit 52fd49b7 authored by mku's avatar mku

ZP-282 #comment Special chars (umlauts) are broken in a response email sent...

ZP-282 #comment Special chars (umlauts) are broken in a response email sent from an android  #time 20m

git-svn-id: https://z-push.org/svn/z-push/trunk@1512 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 55667740
...@@ -491,6 +491,7 @@ class BackendZarafa implements IBackend, ISearchProvider { ...@@ -491,6 +491,7 @@ class BackendZarafa implements IBackend, ISearchProvider {
// get message's body in order to append forward or reply text // get message's body in order to append forward or reply text
$body = MAPIUtils::readPropStream($mapimessage, PR_BODY); $body = MAPIUtils::readPropStream($mapimessage, PR_BODY);
$bodyHtml = MAPIUtils::readPropStream($mapimessage, PR_HTML); $bodyHtml = MAPIUtils::readPropStream($mapimessage, PR_HTML);
$cpid = mapi_getprops($fwmessage, array($sendMailProps["internetcpid"]));
if($sm->forwardflag) { if($sm->forwardflag) {
// attach the original attachments to the outgoing message // attach the original attachments to the outgoing message
$this->copyAttachments($mapimessage, $fwmessage); $this->copyAttachments($mapimessage, $fwmessage);
...@@ -498,11 +499,13 @@ class BackendZarafa implements IBackend, ISearchProvider { ...@@ -498,11 +499,13 @@ class BackendZarafa implements IBackend, ISearchProvider {
if (strlen($body) > 0) { if (strlen($body) > 0) {
$fwbody = MAPIUtils::readPropStream($fwmessage, PR_BODY); $fwbody = MAPIUtils::readPropStream($fwmessage, PR_BODY);
$fwbody = (isset($cpid[$sendMailProps["internetcpid"]])) ? Utils::ConvertCodepageStringToUtf8($cpid[$sendMailProps["internetcpid"]], $fwbody) : u2w($fwbody);
$mapiprops[$sendMailProps["body"]] = $body."\r\n\r\n".$fwbody; $mapiprops[$sendMailProps["body"]] = $body."\r\n\r\n".$fwbody;
} }
if (strlen($bodyHtml) > 0) { if (strlen($bodyHtml) > 0) {
$fwbodyHtml = MAPIUtils::readPropStream($fwmessage, PR_HTML); $fwbodyHtml = MAPIUtils::readPropStream($fwmessage, PR_HTML);
$fwbodyHtml = (isset($cpid[$sendMailProps["internetcpid"]])) ? Utils::ConvertCodepageStringToUtf8($cpid[$sendMailProps["internetcpid"]], $fwbodyHtml) : u2w($fwbodyHtml);
$mapiprops[$sendMailProps["html"]] = $bodyHtml."<br><br>".$fwbodyHtml; $mapiprops[$sendMailProps["html"]] = $bodyHtml."<br><br>".$fwbodyHtml;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment