Commit 022fa8cb authored by mku's avatar mku

ZP-593 #comment S/Mime signed emails are not displayed correctly in OL13

git-svn-id: https://z-push.org/svn/z-push/trunk@1976 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 8e221192
...@@ -792,6 +792,14 @@ class MAPIProvider { ...@@ -792,6 +792,14 @@ class MAPIProvider {
$message->lastverbexecuted = Utils::GetLastVerbExecuted($message->lastverbexecuted); $message->lastverbexecuted = Utils::GetLastVerbExecuted($message->lastverbexecuted);
} }
// OL 2013 doesn't show sender and subject for signed emails because the headers are missing
if(isset($message->messageclass) && strpos($message->messageclass, "IPM.Note.SMIME.MultipartSigned") === 0 ) {
ZLog::Write(LOGLEVEL_DEBUG, "Attach the transport message headers to a signed message");
$transportHeaders = array(PR_TRANSPORT_MESSAGE_HEADERS_W);
$messageHeaders = $this->getProps($mapimessage, $transportHeaders);
$message->asbody->data = $messageHeaders[PR_TRANSPORT_MESSAGE_HEADERS] ."\r\n\r\n" . $message->asbody->data;
}
return $message; return $message;
} }
......
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