Commit 71493836 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #80 in ZP/z-push from...

Merge pull request #80 in ZP/z-push from bugfix/ZP-729-attachments-of-signed-emails-are-not to develop

* commit '892fd2e6':
  ZP-729 Signed emails in outlook with ActiveSync aren't displayed as signed.

(cherry picked from commit 940716a0)
parent ee4e3be1
......@@ -513,7 +513,13 @@ class MAPIProvider {
* @return SyncEmail
*/
private function getEmail($mapimessage, $contentparameters) {
MAPIUtils::ParseSmime($this->session, $this->store, $this->getAddressbook(), $mapimessage);
// This workaround fixes ZP-729 and still works with Outlook.
// FIXME: It should be properly fixed when refactoring.
if (($contentparameters->GetMimeSupport() == SYNC_MIMESUPPORT_NEVER) ||
($key = array_search(SYNC_BODYPREFERENCE_MIME, $contentparameters->GetBodyPreference()) === false)) {
MAPIUtils::ParseSmime($this->session, $this->store, $this->getAddressbook(), $mapimessage);
}
$message = new SyncMail();
$this->getPropsFromMAPI($message, $mapimessage, MAPIMapping::GetEmailMapping());
......
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