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
ffd098b5
Commit
ffd098b5
authored
Jan 14, 2016
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZO-5 Generate category when synchronizing email to Outlook.
parent
abce53ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
streamimporter.php
src/lib/core/streamimporter.php
+16
-0
No files found.
src/lib/core/streamimporter.php
View file @
ffd098b5
...
@@ -108,6 +108,22 @@ class ImportChangesStream implements IImportChanges {
...
@@ -108,6 +108,22 @@ class ImportChangesStream implements IImportChanges {
return
$stat
;
return
$stat
;
}
}
// Acacia ZO-3: Stream reply/forward flag and time as additional category to Outlook
if
(
ZPush
::
GetDeviceManager
()
->
IsOutlookClient
()
&&
isset
(
$message
->
lastverbexectime
)
&&
isset
(
$message
->
lastverbexecuted
)
&&
$message
->
lastverbexecuted
>
0
)
{
ZLog
::
Write
(
LOGLEVEL_DEBUG
,
"ImportChangesStream->ImportMessageChange('%s'): Outlook client detected. Adding LastVerb information as category."
);
if
(
!
isset
(
$message
->
categories
)){
$message
->
categories
=
array
();
}
$s
=
"Push: Email "
;
if
(
$message
->
lastverbexecuted
==
1
)
$s
.=
"replied"
;
elseif
(
$message
->
lastverbexecuted
==
2
)
$s
.=
"replied-to-all"
;
elseif
(
$message
->
lastverbexecuted
==
3
)
$s
.=
"forwarded"
;
$s
.=
" on "
.
gmdate
(
"d-m-Y H:i:s"
,
$message
->
lastverbexectime
)
.
" GMT"
;
$message
->
categories
[]
=
$s
;
}
if
(
$message
->
flags
===
false
||
$message
->
flags
===
SYNC_NEWMESSAGE
)
if
(
$message
->
flags
===
false
||
$message
->
flags
===
SYNC_NEWMESSAGE
)
$this
->
encoder
->
startTag
(
SYNC_ADD
);
$this
->
encoder
->
startTag
(
SYNC_ADD
);
else
{
else
{
...
...
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