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
60e99add
Commit
60e99add
authored
Jan 22, 2018
by
Manfred Kutas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-1340 Add transaction flag to stream writes.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
e84f0103
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
class.taskrecurrence.php
src/backend/kopano/mapi/class.taskrecurrence.php
+1
-1
class.taskrequest.php
src/backend/kopano/mapi/class.taskrequest.php
+1
-1
mapidefs.php
src/backend/kopano/mapi/mapidefs.php
+18
-0
No files found.
src/backend/kopano/mapi/class.taskrecurrence.php
View file @
60e99add
...
...
@@ -304,7 +304,7 @@
if
(
!
empty
(
$msgbody
)
&&
strrpos
(
$msgbody
,
$separator
)
===
false
)
{
$msgbody
=
$separator
.
$msgbody
;
$stream
=
mapi_openproperty
(
$this
->
message
,
PR_BODY
,
IID_IStream
,
0
,
0
);
$stream
=
mapi_openproperty
(
$this
->
message
,
PR_BODY
,
IID_IStream
,
STGM_TRANSACTED
,
0
);
mapi_stream_setsize
(
$stream
,
strlen
(
$msgbody
));
mapi_stream_write
(
$stream
,
$msgbody
);
mapi_stream_commit
(
$stream
);
...
...
src/backend/kopano/mapi/class.taskrequest.php
View file @
60e99add
...
...
@@ -910,7 +910,7 @@
// edit response before sending task response.
if
(
$this
->
taskCommentsInfo
)
{
$comments
=
$this
->
getTaskCommentsInfo
();
$stream
=
mapi_openproperty
(
$outgoing
,
PR_BODY
,
IID_IStream
,
0
,
MAPI_CREATE
|
MAPI_MODIFY
);
$stream
=
mapi_openproperty
(
$outgoing
,
PR_BODY
,
IID_IStream
,
STGM_TRANSACTED
,
MAPI_CREATE
|
MAPI_MODIFY
);
mapi_stream_setsize
(
$stream
,
strlen
(
$comments
));
mapi_stream_write
(
$stream
,
$comments
);
mapi_stream_commit
(
$stream
);
...
...
src/backend/kopano/mapi/mapidefs.php
View file @
60e99add
...
...
@@ -658,3 +658,21 @@ define('RSF_ELID_ENTRYID' ,0x0001); // variable Indicates
// that is of the type indicated by the value of the PersistID field of the PersistData structure.
define
(
'RSF_ELID_HEADER'
,
0x0002
);
// 4 bytes Indicates that the ElementData field contains a 4-byte header value equal to 0x00000000.
define
(
'STGM_DIRECT'
,
0x00000000
);
define
(
'STGM_TRANSACTED'
,
0x00010000
);
define
(
'STGM_SIMPLE'
,
0x08000000
);
define
(
'STGM_READ'
,
0x00000000
);
define
(
'STGM_WRITE'
,
0x00000001
);
define
(
'STGM_READWRITE'
,
0x00000002
);
define
(
'STGM_SHARE_DENY_NONE'
,
0x00000040
);
define
(
'STGM_SHARE_DENY_READ'
,
0x00000030
);
define
(
'STGM_SHARE_DENY_WRITE'
,
0x00000020
);
define
(
'STGM_SHARE_EXCLUSIVE'
,
0x00000010
);
define
(
'STGM_PRIORITY'
,
0x00040000
);
define
(
'STGM_DELETEONRELEASE'
,
0x04000000
);
define
(
'STGM_NOSCRATCH'
,
0x00100000
);
define
(
'STGM_CREATE'
,
0x00001000
);
define
(
'STGM_CONVERT'
,
0x00020000
);
define
(
'STGM_FAILIFTHERE'
,
0x00000000
);
define
(
'STGM_NOSNAPSHOT'
,
0x00200000
);
define
(
'STGM_DIRECT_SWMR'
,
0x00400000
);
\ No newline at end of file
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