diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-18 11:56:25 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-08 12:21:41 +0100 |
commit | b3550db02dd24eb435789991a95db7ddb053fd5b (patch) | |
tree | 2b5b37657dd090d26efffe7678404156b9a320e1 /apps/dav/lib/server.php | |
parent | 2c76b77c763a97660416cde1d04059e3975436b9 (diff) | |
download | nextcloud-server-b3550db02dd24eb435789991a95db7ddb053fd5b.tar.gz nextcloud-server-b3550db02dd24eb435789991a95db7ddb053fd5b.zip |
Adding IMip scheduling which uses ownClouds mail delivery
Diffstat (limited to 'apps/dav/lib/server.php')
-rw-r--r-- | apps/dav/lib/server.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/server.php b/apps/dav/lib/server.php index ffcbb02db70..a6ad878d29f 100644 --- a/apps/dav/lib/server.php +++ b/apps/dav/lib/server.php @@ -2,12 +2,12 @@ namespace OCA\DAV; +use OCA\DAV\CalDAV\Schedule\IMipPlugin; use OCA\DAV\Connector\Sabre\Auth; use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin; use OCA\DAV\Files\CustomPropertiesBackend; use OCP\IRequest; use Sabre\DAV\Auth\Plugin; -use Sabre\HTTP\Util; class Server { @@ -19,6 +19,7 @@ class Server { $this->baseUri = $baseUri; $logger = \OC::$server->getLogger(); $dispatcher = \OC::$server->getEventDispatcher(); + $mailer = \OC::$server->getMailer(); $root = new RootCollection(); $this->server = new \OCA\DAV\Connector\Sabre\Server($root); @@ -49,9 +50,8 @@ class Server { // calendar plugins $this->server->addPlugin(new \Sabre\CalDAV\Plugin()); $this->server->addPlugin(new \Sabre\CalDAV\ICSExportPlugin()); - $senderEmail = \OCP\Util::getDefaultEmailAddress('no-reply'); $this->server->addPlugin(new \Sabre\CalDAV\Schedule\Plugin()); - $this->server->addPlugin(new \Sabre\CalDAV\Schedule\IMipPlugin($senderEmail)); + $this->server->addPlugin(new IMipPlugin($mailer, $logger)); $this->server->addPlugin(new \Sabre\CalDAV\SharingPlugin()); $this->server->addPlugin(new \Sabre\CalDAV\Subscriptions\Plugin()); $this->server->addPlugin(new \Sabre\CalDAV\Notifications\Plugin()); |