Commit c2a8a35e authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1369 Get foldername from MAPI when impersonating.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 4c334595
...@@ -520,6 +520,16 @@ class ReplyBackImExporter implements IImportChanges, IExportChanges { ...@@ -520,6 +520,16 @@ class ReplyBackImExporter implements IImportChanges, IExportChanges {
$foldername = $folders[$folderid]->displayname; $foldername = $folders[$folderid]->displayname;
} }
// get the foldername from MAPI when impersonating - ZP-1369
if ($foldername == "unknown") {
$entryid = mapi_msgstore_entryidfromsourcekey($this->store, $this->folderid);
$mapifolder = mapi_msgstore_openentry($this->store, $entryid);
$folderprops = mapi_getprops($mapifolder, array(PR_DISPLAY_NAME));
if (isset($folderprops[PR_DISPLAY_NAME])) {
$foldername = $folderprops[PR_DISPLAY_NAME];
}
}
// get the differences between the two objects // get the differences between the two objects
$data = substr(get_class($oldmessage), 4) . "\r\n"; $data = substr(get_class($oldmessage), 4) . "\r\n";
// get the suppported fields as we need them to determine the ghosted properties // get the suppported fields as we need them to determine the ghosted properties
......
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