-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable both iTip and iMip messages
Signed-off-by: SebastianKrupinski <[email protected]>
- Loading branch information
1 parent
c69df62
commit f186279
Showing
4 changed files
with
2 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -783,23 +783,4 @@ public function testNoButtons(): void { | |
$this->plugin->schedule($message); | ||
$this->assertEquals('1.1', $message->getScheduleStatus()); | ||
} | ||
|
||
public function testImipDisabledForEvent(): void { | ||
// construct iTip message with event and attendees | ||
$calendar = new VCalendar(); | ||
$calendar->add('VEVENT', ['UID' => 'uid-1234']); | ||
$event = $calendar->VEVENT; | ||
$event->add('ORGANIZER', 'mailto:[email protected]'); | ||
$event->add('ATTENDEE', 'mailto:' . '[email protected]', ['RSVP' => 'TRUE', 'CN' => 'Frodo']); | ||
$event->add('X-NC-DISABLE-SCHEDULING', 'true'); | ||
$message = new Message(); | ||
$message->method = 'REQUEST'; | ||
$message->message = $calendar; | ||
$message->sender = 'mailto:[email protected]'; | ||
$message->senderName = 'Mr. Wizard'; | ||
$message->recipient = 'mailto:' . '[email protected]'; | ||
|
||
$this->plugin->schedule($message); | ||
$this->assertEquals('1.0;We got the message, but iMip messages are disabled for this event', $message->scheduleStatus); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch> | ||
* | ||
|