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
60b8fbe5
Commit
60b8fbe5
authored
May 10, 2016
by
Manfred Kutas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-779 Remove unnecessary code.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
1d9e2302
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
importer.php
src/backend/zarafa/importer.php
+3
-9
No files found.
src/backend/zarafa/importer.php
View file @
60b8fbe5
...
...
@@ -97,6 +97,7 @@ class ImportChangesICS implements IImportChanges {
if
(
$folderid
)
{
$entryid
=
mapi_msgstore_entryidfromsourcekey
(
$store
,
$folderid
);
$folderidForBackendId
=
ZPush
::
GetDeviceManager
()
->
GetFolderIdForBackendId
(
$this
->
folderidHex
);
// Only append backend id if the mapping backendid<->folderid is available.
if
(
$folderidForBackendId
!=
$this
->
folderidHex
)
{
$this
->
prefix
=
$folderidForBackendId
.
':'
;
}
...
...
@@ -362,11 +363,10 @@ class ImportChangesICS implements IImportChanges {
$flags
=
0
;
$props
=
array
();
$props
[
PR_PARENT_SOURCE_KEY
]
=
$this
->
folderid
;
$fsk
=
null
;
// set the PR_SOURCE_KEY if available or mark it as new message
if
(
$id
)
{
list
(
$fsk
,
$sk
)
=
MAPIUtils
::
SplitMessageId
(
$id
);
list
(,
$sk
)
=
MAPIUtils
::
SplitMessageId
(
$id
);
$props
[
PR_SOURCE_KEY
]
=
hex2bin
(
$sk
);
// on editing an existing message, check if it is in the synchronization interval
...
...
@@ -389,14 +389,8 @@ class ImportChangesICS implements IImportChanges {
return
false
;
}
}
else
{
else
$flags
=
SYNC_NEW_MESSAGE
;
$folderid
=
ZPush
::
GetDeviceManager
()
->
GetFolderIdForBackendId
(
$this
->
folderidHex
);
// Only append backend id if the mapping backendid<->folderid is available.
if
(
$folderid
!=
$this
->
folderidHex
&&
is_int
(
$folderid
)
)
{
$fsk
=
$this
->
folderidHex
;
}
}
if
(
mapi_importcontentschanges_importmessagechange
(
$this
->
importer
,
$props
,
$flags
,
$mapimessage
))
{
$this
->
mapiprovider
->
SetMessage
(
$mapimessage
,
$message
);
...
...
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