13 $plugin =
new IMipPlugin(
'system@example.com');
16 $plugin->getPluginInfo()[
'name']
24 $message->sender =
'mailto:sender@example.org';
26 $message->recipient =
'mailto:recipient@example.org';
27 $message->recipientName =
'Recipient';
34 SUMMARY:Birthday party\r
47 'to' =>
'Recipient <recipient@example.org>',
48 'subject' =>
'Re: Birthday party',
51 'Reply-To: Sender <sender@example.org>',
52 'From: system@example.org',
53 'Content-Type: text/calendar; charset=UTF-8; method=REPLY',
59 $this->assertEquals($expected,
$result);
66 $message->sender =
'mailto:sender@example.org';
68 $message->recipient =
'http://example.org/recipient';
69 $message->recipientName =
'Recipient';
76 SUMMARY:Birthday party\r
89 $this->assertEquals($expected,
$result);
96 $message->sender =
'mailto:sender@example.org';
98 $message->recipient =
'mailto:recipient@example.org';
99 $message->recipientName =
'Recipient';
106 SUMMARY:Birthday party\r
119 'to' =>
'Recipient <recipient@example.org>',
120 'subject' =>
'Birthday party',
123 'Reply-To: Sender <sender@example.org>',
124 'From: system@example.org',
125 'Content-Type: text/calendar; charset=UTF-8; method=REQUEST',
131 $this->assertEquals($expected,
$result);
138 $message->sender =
'mailto:sender@example.org';
140 $message->recipient =
'mailto:recipient@example.org';
141 $message->recipientName =
'Recipient';
148 SUMMARY:Birthday party\r
161 'to' =>
'Recipient <recipient@example.org>',
162 'subject' =>
'Cancelled: Birthday party',
165 'Reply-To: Sender <sender@example.org>',
166 'From: system@example.org',
167 'Content-Type: text/calendar; charset=UTF-8; method=CANCEL',
173 $this->assertEquals($expected,
$result);
174 $this->assertEquals(
'1.1', substr(
$message->scheduleStatus, 0, 3));
184 $server->emit(
'schedule', [$message]);
186 return $plugin->getSentEmails();
193 $message->sender =
'mailto:sender@example.org';
195 $message->recipient =
'mailto:recipient@example.org';
196 $message->recipientName =
'Recipient';
198 $message->significantChange =
false;
204 SUMMARY:Birthday party\r
216 $this->assertEquals($expected,
$result);
217 $this->assertEquals(
'1.0',
$message->getScheduleStatus()[0]);
testDeliverInsignificantRequest()
This is the abstract base class for both the Request and Response objects.
const VERSION
Full version number.
catch(Exception $e) $message
schedule(Message $message)
testDeliverReplyNoMailto()
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.