summaryrefslogtreecommitdiffstats
path: root/3rdparty/Sabre/CalDAV/Schedule/IMip.php
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/Sabre/CalDAV/Schedule/IMip.php')
-rw-r--r--[-rwxr-xr-x]3rdparty/Sabre/CalDAV/Schedule/IMip.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/3rdparty/Sabre/CalDAV/Schedule/IMip.php b/3rdparty/Sabre/CalDAV/Schedule/IMip.php
index 37e75fcc4a7..92c3c097c15 100755..100644
--- a/3rdparty/Sabre/CalDAV/Schedule/IMip.php
+++ b/3rdparty/Sabre/CalDAV/Schedule/IMip.php
@@ -1,5 +1,7 @@
<?php
+use Sabre\VObject;
+
/**
* iMIP handler.
*
@@ -42,12 +44,13 @@ class Sabre_CalDAV_Schedule_IMip {
/**
* Sends one or more iTip messages through email.
*
- * @param string $originator
- * @param array $recipients
- * @param Sabre_VObject_Component $vObject
+ * @param string $originator Originator Email
+ * @param array $recipients Array of email addresses
+ * @param Sabre\VObject\Component $vObject
+ * @param string $principal Principal Url of the originator
* @return void
*/
- public function sendMessage($originator, array $recipients, Sabre_VObject_Component $vObject) {
+ public function sendMessage($originator, array $recipients, VObject\Component $vObject, $principal) {
foreach($recipients as $recipient) {
@@ -83,6 +86,9 @@ class Sabre_CalDAV_Schedule_IMip {
}
+ // @codeCoverageIgnoreStart
+ // This is deemed untestable in a reasonable manner
+
/**
* This function is reponsible for sending the actual email.
*
@@ -94,11 +100,11 @@ class Sabre_CalDAV_Schedule_IMip {
*/
protected function mail($to, $subject, $body, array $headers) {
+
mail($to, $subject, $body, implode("\r\n", $headers));
}
+ // @codeCoverageIgnoreEnd
}
-
-?>