1 = Testing = 2 3 To see how the software operates, you can run one of the agent programs 4 provided in the distribution. For example: 5 6 {{{ 7 ./imip_resource.py -S xxx/store -P xxx/static -p xxx/prefs -d \ 8 < tests/templates/event-request.txt 9 }}} 10 11 This uses one of the test files, sending it to the agent program for 12 resource entities, producing output resembling the following: 13 14 {{{ 15 Outgoing parts for paul.boddie@example.com... 16 From nobody Wed Oct 28 00:24:41 2015 17 MIME-Version: 1.0 18 Content-Transfer-Encoding: base64 19 Content-Type: text/calendar; charset="utf-8"; method="REPLY" 20 From: calendar@example.com 21 To: paul.boddie@example.com 22 Subject: Calendar system message 23 24 QkVHSU46VkNBTEVOREFSDQpNRVRIT0Q6UkVQTFkNClZFUlNJT046Mi4wDQpCRUdJTjpWRlJFRUJV 25 U1kNCk9SR0FOSVpFUjptYWlsdG86cGF1bC5ib2RkaWVAZXhhbXBsZS5jb20NCkFUVEVOREVFO1NF 26 TlQtQlk9Im1haWx0bzpjYWxlbmRhckBleGFtcGxlLmNvbSI6bWFpbHRvOnJlc291cmNlLXJvb20t 27 Y29uZnJvb20NCiBAZXhhbXBsZS5jb20NClVJRDpmYjFAZXhhbXBsZS5jb20NCkVORDpWRlJFRUJV 28 U1kNCkVORDpWQ0FMRU5EQVINCg== 29 }}} 30 31 The rather opaque encoding can be inspected using the `tools/showmail.py` 32 program, and thus the result of the script can be seen by piping the output 33 through that program as follows: 34 35 {{{ 36 ./imip_resource.py -S xxx/store/ -P xxx/static/ -p xxx/prefs/ -d \ 37 < tests/templates/event-request.txt \ 38 | tools/showmail.py 39 }}} 40 41 The result should resemble the following: 42 43 {{{ 44 Outgoing parts for paul.boddie@example.com... 45 MIME-Version: 1.0 46 Content-Type: text/calendar; charset="utf-8"; method="REPLY" 47 From: calendar@example.com 48 To: paul.boddie@example.com 49 Subject: Calendar system message 50 51 BEGIN:VCALENDAR 52 METHOD:REPLY 53 VERSION:2.0 54 BEGIN:VEVENT 55 DTSTAMP:20151027T232738Z 56 UID:event1@example.com 57 ATTENDEE;PARTSTAT=ACCEPTED;SENT-BY="mailto:calendar@example.com":mailto:reso 58 urce-room-confroom@example.com 59 SUMMARY:Meeting at 4pm 60 ORGANIZER:mailto:paul.boddie@example.com 61 DTSTART;TZID=Europe/Oslo:20141126T160000 62 DTEND;TZID=Europe/Oslo:20141126T170000 63 END:VEVENT 64 END:VCALENDAR 65 }}} 66 67 What has happened here is the presentation of a request to the resource 68 program in the form of an e-mail message containing an iCalendar event 69 employing a scheduling method. The program interprets the request, 70 consults its own records, makes a decision about scheduling the event, 71 and indicates the kind of response it would like to send back to the 72 requester.