Commit 4cbc0bbc authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #684 in ZP/z-push from bugfix/ZP-1369-impersonation-replyback-notification-mail-can-not-get-folder-name to develop

* commit 'c2a8a35e':
  ZP-1369 Get foldername from MAPI when impersonating.
parents 4c334595 c2a8a35e
......@@ -520,6 +520,16 @@ class ReplyBackImExporter implements IImportChanges, IExportChanges {
$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
$data = substr(get_class($oldmessage), 4) . "\r\n";
// 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