Commit 438d30f8 authored by Manfred Kutas's avatar Manfred Kutas

ZP-729 Attachments of signed emails are not available on Android 6.

Released under the Affero GNU General Public License (AGPL) version 3.
parent cba1448f
...@@ -610,11 +610,10 @@ class MAPIUtils { ...@@ -610,11 +610,10 @@ class MAPIUtils {
} }
} }
mapi_message_deleteattach($mapimessage, $attnum);
if ($attnum !== false) { if ($attnum !== false) {
$att = mapi_message_openattach($mapimessage, $attnum); $att = mapi_message_openattach($mapimessage, $attnum);
$data = mapi_openproperty($att, PR_ATTACH_DATA_BIN); $data = mapi_openproperty($att, PR_ATTACH_DATA_BIN);
mapi_message_deleteattach($mapimessage, $attnum);
mapi_inetmapi_imtomapi($session, $store, $addressBook, $mapimessage, $data, array("parse_smime_signed" => 1)); mapi_inetmapi_imtomapi($session, $store, $addressBook, $mapimessage, $data, array("parse_smime_signed" => 1));
ZLog::Write(LOGLEVEL_DEBUG, "Convert a smime signed message to a normal message."); ZLog::Write(LOGLEVEL_DEBUG, "Convert a smime signed message to a normal 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