From 5c2723d501340a3e6bca767a39faf943fc34114d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 15 Jun 2019 08:45:25 +0200 Subject: [PATCH] delete message after meeting-response is processed successful by calendar --- mail/inc/class.mail_zpush.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail/inc/class.mail_zpush.inc.php b/mail/inc/class.mail_zpush.inc.php index 7fa8351a90..5fac417b71 100644 --- a/mail/inc/class.mail_zpush.inc.php +++ b/mail/inc/class.mail_zpush.inc.php @@ -1226,6 +1226,9 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail, $ret = $this->backend->MeetingResponse($attachment['attachment'], $this->backend->createID('calendar',$GLOBALS['egw_info']['user']['account_id']), $response); + + // delete message after meeting-response is processed successful by calendar + if ($ret) $this->DeleteMessage($folderid, $requestid, null); break; } } @@ -1805,7 +1808,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail, } $syncstate = "M:". $status['messages'] ."-R:". $status['recent'] ."-U:". $status['unseen']."-NUID:".$status['uidnext']."-UIDV:".$status['uidvalidity']; - ZLog::Write(LOGLEVEL_DEBUG,__METHOD__."($folderid, ...) $folder ($account) returning ".array2string($syncstate)); + if ($this->debugLevel) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__."($folderid, ...) $folder ($account) returning ".array2string($syncstate)); return array(); }