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
3d27b16c
Commit
3d27b16c
authored
Jan 29, 2016
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZO-28 Cleanup.
parent
52d602e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
syncher.php
tools/gab-sync/lib/syncher.php
+3
-0
zarafa.php
tools/gab-sync/lib/zarafa.php
+8
-10
No files found.
tools/gab-sync/lib/syncher.php
View file @
3d27b16c
...
...
@@ -267,6 +267,7 @@ abstract class Syncher {
* Deletes the hidden folder.
*
* @param string $folderid
*
* @access protected
* @return boolean
*/
...
...
@@ -284,6 +285,7 @@ abstract class Syncher {
* Removes all messages that have not the same chunkType (chunk configuration changed!)
*
* @param string $folderid
*
* @access protected
* @return boolean
*/
...
...
@@ -293,6 +295,7 @@ abstract class Syncher {
* Removes all messages that do not match the current ChunkType.
*
* @param string $folderid
*
* @access protected
* @return boolean
*/
...
...
tools/gab-sync/lib/zarafa.php
View file @
3d27b16c
...
...
@@ -50,6 +50,9 @@ class Zarafa extends Syncher {
$this
->
mapiprops
=
getPropIdsFromStrings
(
$this
->
store
,
$this
->
mapiprops
);
}
/************************************************************************************
* Implementing abstract methods from Syncher
*/
/**
* Creates the hidden folder.
...
...
@@ -83,6 +86,7 @@ class Zarafa extends Syncher {
* Deletes the hidden folder.
*
* @param string $folderid
*
* @access protected
* @return boolean
*/
...
...
@@ -127,20 +131,13 @@ class Zarafa extends Syncher {
* Removes all messages that have not the same chunkType (chunk configuration changed!)
*
* @param string $folderid
*
* @access protected
* @return boolean
*/
protected
function
ClearFolderContents
(
$folderid
)
{
$folderentryid
=
mapi_msgstore_entryidfromsourcekey
(
$this
->
store
,
hex2bin
(
$folderid
));
if
(
!
$folderentryid
)
$this
->
Log
(
"Zarafa->ClearFolderContents: Error, unable to open folder (no entry id)"
,
true
);
$folder
=
mapi_msgstore_openentry
(
$this
->
store
,
$folderentryid
);
if
(
!
$folder
)
$this
->
Log
(
"Zarafa->ClearFolderContents: Error, unable to open parent folder (open entry)"
,
true
);
$this
->
Log
(
"Zarafa->ClearFolderContents: emptying folder"
);
$folder
=
$this
->
getFolder
(
$folderid
);
// empty folder!
$flags
=
0
;
...
...
@@ -155,6 +152,7 @@ class Zarafa extends Syncher {
* Removes all messages that do not match the current ChunkType.
*
* @param string $folderid
*
* @access protected
* @return boolean
*/
...
...
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