Commit 892fd2e6 authored by Manfred Kutas's avatar Manfred Kutas

ZP-729 Signed emails in outlook with ActiveSync aren't displayed as

signed.

Released under the Affero GNU General Public License (AGPL) version 3.
parent d5d96750
...@@ -513,7 +513,13 @@ class MAPIProvider { ...@@ -513,7 +513,13 @@ class MAPIProvider {
* @return SyncEmail * @return SyncEmail
*/ */
private function getEmail($mapimessage, $contentparameters) { 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(); $message = new SyncMail();
$this->getPropsFromMAPI($message, $mapimessage, MAPIMapping::GetEmailMapping()); $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