diff --git a/lib/CalDAV/Schedule/IMipPlugin.php b/lib/CalDAV/Schedule/IMipPlugin.php index dcaf951efd..a98198c71e 100644 --- a/lib/CalDAV/Schedule/IMipPlugin.php +++ b/lib/CalDAV/Schedule/IMipPlugin.php @@ -129,8 +129,12 @@ public function schedule(ITip\Message $iTipMessage) if (DAV\Server::$exposeVersion) { $headers[] = 'X-Sabre-Version: '.DAV\Version::VERSION; } + + preg_match_all("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $recipient, $matches); + $recipient_email = $matches[0][0]; + $this->mail( - $recipient, + $recipient_email, $subject, $iTipMessage->message->serialize(), $headers