fix problem with missing folders from other and user namespace caused by wrong (calculated under different assumptions) parent-id

This commit is contained in:
leithoff 2016-08-04 13:38:10 +02:00
parent 10b954a9d1
commit 5f25a87766

View File

@ -1650,7 +1650,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
array_pop($parent);
$parent = implode($delimiter,$parent);
$id = $parent ? $this->createID($account, $parent) : '0';
$id = $parent && $this->folders[$parent] ? $this->createID($account, $parent) : '0';
if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__."('$folder') --> parent=$parent --> $id");
return $id;
}