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
70c2528f
Commit
70c2528f
authored
May 03, 2017
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-1204 Implement delivery receipt requests.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
17c960da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
kopano.php
src/backend/kopano/kopano.php
+14
-0
config.php
src/config.php
+2
-0
No files found.
src/backend/kopano/kopano.php
View file @
70c2528f
...
...
@@ -551,6 +551,20 @@ class BackendKopano implements IBackend, ISearchProvider {
$sendMailProps
[
"sentrepresentingaddt"
],
$sendMailProps
[
"sentrepresentinsrchk"
]));
}
// Processing of KOE X-Push-Receipts header - delivery notification: ZP-1204
if
(
defined
(
'KOE_CAPABILITY_RECEIPTS'
)
&&
KOE_CAPABILITY_RECEIPTS
)
{
// KOE: grep for the Sender header indicating that there are TODOs
if
(
preg_match
(
"/^X-Push-Receipts:\s(.*?)$/im"
,
$sm
->
mime
,
$receiptsvalue
))
{
$receipts
=
trim
(
$receiptsvalue
[
1
]);
ZLog
::
Write
(
LOGLEVEL_DEBUG
,
sprintf
(
"KopanoBackend->SendMail(): Receipts '%s' requested by KOE"
,
$receipts
));
// delivery notification requested
if
(
stripos
(
$receipts
,
'delivery'
)
!==
false
)
{
$mapiprops
[
PR_ORIGINATOR_DELIVERY_REPORT_REQUESTED
]
=
true
;
}
}
}
if
(
isset
(
$sm
->
source
->
itemid
)
&&
$sm
->
source
->
itemid
)
{
// answering an email in a public/shared folder
// TODO as the store is setup, we should actually user $this->store instead of $this->defaultstore - nevertheless we need to make sure this store is able to send mail (has an outbox)
...
...
src/config.php
View file @
70c2528f
...
...
@@ -311,6 +311,8 @@
define
(
'KOE_CAPABILITY_SECONDARYCONTACTS'
,
true
);
// Copy WebApp signature into KOE
define
(
'KOE_CAPABILITY_SIGNATURES'
,
true
);
// Delivery receipt requests
define
(
'KOE_CAPABILITY_RECEIPTS'
,
true
);
// To synchronize the GAB KOE, the GAB store and folderid need to be specified.
// Use the gab-sync script to generate this data. The name needs to
...
...
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