Commit 78431951 authored by mku's avatar mku

ZP-593 #comment Only add headers if asbody type is MIME

git-svn-id: https://z-push.org/svn/z-push/trunk@1977 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 022fa8cb
...@@ -793,7 +793,8 @@ class MAPIProvider { ...@@ -793,7 +793,8 @@ class MAPIProvider {
} }
// OL 2013 doesn't show sender and subject for signed emails because the headers are missing // 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 ) { if(isset($message->messageclass) && strpos($message->messageclass, "IPM.Note.SMIME.MultipartSigned") === 0 &&
isset($message->asbody->type) && $message->asbody->type == SYNC_BODYPREFERENCE_MIME) {
ZLog::Write(LOGLEVEL_DEBUG, "Attach the transport message headers to a signed message"); ZLog::Write(LOGLEVEL_DEBUG, "Attach the transport message headers to a signed message");
$transportHeaders = array(PR_TRANSPORT_MESSAGE_HEADERS_W); $transportHeaders = array(PR_TRANSPORT_MESSAGE_HEADERS_W);
$messageHeaders = $this->getProps($mapimessage, $transportHeaders); $messageHeaders = $this->getProps($mapimessage, $transportHeaders);
......
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