diff --git a/sources/testing/samples/meeting_reply_rim.txt b/sources/testing/samples/meeting_reply_rim.txt new file mode 100644 index 0000000..b0eb1eb --- /dev/null +++ b/sources/testing/samples/meeting_reply_rim.txt @@ -0,0 +1,43 @@ +BEGIN:VCALENDAR +PRODID:-//Research In Motion//RIM App//EN +VERSION:2.0 +CALSCALE:GREGORIAN +METHOD:REPLY +BEGIN:VTIMEZONE +TZID:Europe/London +BEGIN:STANDARD +DTSTART:20001029T020000 +RRULE:FREQ=YEARLY;BYDAY=4SU;BYMONTH=10 +TZNAME:GMT +TZOFFSETFROM:+0100 +TZOFFSETTO:+0000 +END:STANDARD +BEGIN:DAYLIGHT +DTSTART:20000326T010000 +RRULE:FREQ=YEARLY;BYDAY=4SU;BYMONTH=3 +TZNAME:BST +TZOFFSETFROM:+0000 +TZOFFSETTO:+0100 +END:DAYLIGHT +END:VTIMEZONE +BEGIN:VEVENT +ATTENDEE;RSVP=TRUE;ROLE=REQ-PARTICIPANT;CN=User1;PARTSTAT=ACCEPTED:mailto:user1 + @domain1.tld +COMMENT:ok for me +CREATED:20150823T184526Z +DTEND;TZID=Europe/London:20150823T220000 +DTSTAMP:20150823T184527Z +DTSTART;TZID=Europe/London:20150823T210000 +ORGANIZER:mailto:user3@domain3.tld +SEQUENCE:0 +STATUS:CONFIRMED +SUMMARY:Test of meeting with Z-push +TRANSP:OPAQUE +UID:f503ce50-49c6-11e5-9533-693764eab43f +BEGIN:VALARM +ACTION:DISPLAY +DESCRIPTION:Test of meeting with Z-push in 15 minutes. +TRIGGER;RELATED=START:-PT15M +END:VALARM +END:VEVENT +END:VCALENDAR diff --git a/sources/testing/testing-imap_meeting_method.php b/sources/testing/testing-imap_meeting_method.php new file mode 100644 index 0000000..5c45dab --- /dev/null +++ b/sources/testing/testing-imap_meeting_method.php @@ -0,0 +1,25 @@ +ParseFrom($body); + + $props = $ical->GetPropertiesByPath("VCALENDAR/METHOD"); + if (count($props) > 0) { + printf("METHOD %s\n", $props[0]->Value()); + } +} + + +testing_get_method('testing/samples/meeting_request.txt'); +testing_get_method('testing/samples/meeting_request_rim.txt'); +testing_get_method('testing/samples/meeting_reply_rim.txt'); \ No newline at end of file