Commit ea50caa5 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #525 in ZP/z-push from...

Merge pull request #525 in ZP/z-push from feature/ZP-1204-process-delivery-request-from-koe to develop

* commit '70c2528f':
  ZP-1204 Implement delivery receipt requests.
parents 17c960da 70c2528f
...@@ -551,6 +551,20 @@ class BackendKopano implements IBackend, ISearchProvider { ...@@ -551,6 +551,20 @@ class BackendKopano implements IBackend, ISearchProvider {
$sendMailProps["sentrepresentingaddt"], $sendMailProps["sentrepresentinsrchk"])); $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) { if(isset($sm->source->itemid) && $sm->source->itemid) {
// answering an email in a public/shared folder // 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) // 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)
......
...@@ -311,6 +311,8 @@ ...@@ -311,6 +311,8 @@
define('KOE_CAPABILITY_SECONDARYCONTACTS', true); define('KOE_CAPABILITY_SECONDARYCONTACTS', true);
// Copy WebApp signature into KOE // Copy WebApp signature into KOE
define('KOE_CAPABILITY_SIGNATURES', true); 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. // 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 // Use the gab-sync script to generate this data. The name needs to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment