From 6e17dbba380776f96ffc6a941c5415d550aaa915 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Tue, 11 Jul 2023 10:58:17 +0200 Subject: [PATCH] fixup! Use recurrence instance to build iMip email --- apps/dav/lib/CalDAV/Schedule/IMipPlugin.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php index 041cab77bf6fb..2b4e248407e64 100644 --- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php +++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php @@ -166,8 +166,13 @@ public function schedule(Message $iTipMessage) { return; } + $mailto = $iTipMessage->recipient; + if($mailto === null) { + return; + } + // Strip off mailto: - $recipient = substr($iTipMessage->recipient, 7); + $recipient = substr($mailto, 7); if (!$this->mailer->validateMailAddress($recipient)) { // Nothing to send if the recipient doesn't have a valid email address $iTipMessage->scheduleStatus = '5.0; EMail delivery failed';