Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Björn Fischer
z-push
Commits
9e4f0b8a
Commit
9e4f0b8a
authored
Feb 03, 2016
by
Manfred Kutas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-823 Do not sync suggested contacts folder.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
109eb8f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
mapiprovider.php
src/backend/zarafa/mapiprovider.php
+12
-1
No files found.
src/backend/zarafa/mapiprovider.php
View file @
9e4f0b8a
...
@@ -843,6 +843,7 @@ class MAPIProvider {
...
@@ -843,6 +843,7 @@ class MAPIProvider {
* @return SyncFolder
* @return SyncFolder
*/
*/
public function GetFolder($folderprops) {
public function GetFolder($folderprops) {
$folder = new SyncFolder();
$folder = new SyncFolder();
$storeprops = $this->getStoreProps();
$storeprops = $this->getStoreProps();
...
@@ -851,7 +852,7 @@ class MAPIProvider {
...
@@ -851,7 +852,7 @@ class MAPIProvider {
if (isset($folderprops[PR_SOURCE_KEY]) && !isset($folderprops[PR_ENTRYID]) && !isset($folderprops[PR_CONTAINER_CLASS])) {
if (isset($folderprops[PR_SOURCE_KEY]) && !isset($folderprops[PR_ENTRYID]) && !isset($folderprops[PR_CONTAINER_CLASS])) {
$entryid = mapi_msgstore_entryidfromsourcekey($this->store, $folderprops[PR_SOURCE_KEY]);
$entryid = mapi_msgstore_entryidfromsourcekey($this->store, $folderprops[PR_SOURCE_KEY]);
$mapifolder = mapi_msgstore_openentry($this->store, $entryid);
$mapifolder = mapi_msgstore_openentry($this->store, $entryid);
$folderprops
=
mapi_getprops
(
$mapifolder
,
array
(
PR_DISPLAY_NAME
,
PR_PARENT_ENTRYID
,
PR_ENTRYID
,
PR_SOURCE_KEY
,
PR_PARENT_SOURCE_KEY
,
PR_CONTAINER_CLASS
,
PR_ATTR_HIDDEN
));
$folderprops = mapi_getprops($mapifolder, array(PR_DISPLAY_NAME, PR_PARENT_ENTRYID, PR_ENTRYID, PR_SOURCE_KEY, PR_PARENT_SOURCE_KEY, PR_CONTAINER_CLASS, PR_ATTR_HIDDEN
, PR_EXTENDED_FOLDER_FLAGS
));
ZLog::Write(LOGLEVEL_DEBUG, "MAPIProvider->GetFolder(): received insuffient of data from ICS. Fetching required data.");
ZLog::Write(LOGLEVEL_DEBUG, "MAPIProvider->GetFolder(): received insuffient of data from ICS. Fetching required data.");
}
}
...
@@ -877,6 +878,16 @@ class MAPIProvider {
...
@@ -877,6 +878,16 @@ class MAPIProvider {
return false;
return false;
}
}
// ignore suggested contacts folder
if (isset($folderprops[PR_CONTAINER_CLASS]) && $folderprops[PR_CONTAINER_CLASS] == "IPF.Contact" && isset($folderprops[PR_EXTENDED_FOLDER_FLAGS])) {
// the PR_EXTENDED_FOLDER_FLAGS is a binary value which consists of subproperties. 070403000000 indicates a suggested contacts folder
$extendedFlags = bin2hex($folderprops[PR_EXTENDED_FOLDER_FLAGS]);
if (substr_count($extendedFlags, "070403000000") > 0) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("MAPIProvider->GetFolder(): folder '%s' should not be synchronized", $folderprops[PR_DISPLAY_NAME]));
return false;
}
}
$folder->serverid = bin2hex($folderprops[PR_SOURCE_KEY]);
$folder->serverid = bin2hex($folderprops[PR_SOURCE_KEY]);
if($folderprops[PR_PARENT_ENTRYID] == $storeprops[PR_IPM_SUBTREE_ENTRYID])
if($folderprops[PR_PARENT_ENTRYID] == $storeprops[PR_IPM_SUBTREE_ENTRYID])
$folder->parentid = "0";
$folder->parentid = "0";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment