diff options
author | Susinthiran Sithamparanathan <chesusin@gmail.com> | 2012-10-17 12:25:34 +0200 |
---|---|---|
committer | Susinthiran Sithamparanathan <chesusin@gmail.com> | 2012-10-17 16:17:36 +0200 |
commit | b2b84f3a6f3c98005f80c6c7c558a33b4ea36193 (patch) | |
tree | 1ae0c571e25ab7322e9a942dfdcc593f67e98ad6 /3rdparty/Sabre/CalDAV/Schedule/IMip.php | |
parent | 45dec77d92c9a7804489bee34b218bbe8c85f7c5 (diff) | |
download | nextcloud-server-b2b84f3a6f3c98005f80c6c7c558a33b4ea36193.tar.gz nextcloud-server-b2b84f3a6f3c98005f80c6c7c558a33b4ea36193.zip |
Update Sabre to version 1.7.1
Diffstat (limited to '3rdparty/Sabre/CalDAV/Schedule/IMip.php')
-rw-r--r--[-rwxr-xr-x] | 3rdparty/Sabre/CalDAV/Schedule/IMip.php | 18 |
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 } - -?> |