Subject: CAP Example CREATE-1

From: [email-masked] (Steve Mansour)
Date: Wed, 17 Mar 1999 09:12:53 -0800

Example CREATE-1

This example shows how the CREATE command can be used to create new
calendars.

C: 10 CREATE VCALENDAR cap://cal.example.com/ relcal4 ://bobo.ex.com/
relcal5
S: 10 6.0 cap://cal.example.com/
S: 10 2.0 cap://cal.example.com/relcal4
S: 10 3.1.4 cap:/bobo.ex.com/
S: 10 6.2 cap://cal.example.com/relcal5
C: 10 CREATE VCALENDAR cap://cal.example.com/relcal8 relcal9
S: 10 3.1.5 cap://cal.example.com/relcal8
S: 10 2.0 cap://cal.example.com/relcal9
C: 10 SENDDATA
S: 10 2.0.1
C: CONTENT-TYPE: text/calendar; method=create; component=VCOMMAND
C: Content-Transfer-Encoding:7bit
C:
C: BEGIN:VCALENDAR
C: VERSION:2.1
C: METHOD:CREATE
C: BEGIN:VCOMMAND
C: BEGIN:VCALENDAR
C: RELCALUID:relcalz
C: NAME:CHARSET=us-ascii;LANGUAGE=EN-us:Bill’s Soccer Team
C: OWNER:CAPCAR:bill
C: OWNER:CAPCAR:mary
C: CALMASTER:mailto:[email-masked]
C: PREFERRED-TZID:US_PST
C: BEGIN:VCAR
C: CARID:12345
C: GRANT;CN=”Bill Jones”:principal=CAPCAR:bill;action=ALL;object=ALL
C: GRANT;CN=”Mary Jones”:principal=CAPCAR:mary;action=read;object=ALL
C: END:VCAR
C: END:VCOMMAND
C: END:VCALENDAR
C: .
S: 10 6.0 cap://cal.example.com/
S: 10 2.0 cap://cal.example.com/relcal4 cap://cal.example.com/relcalz
S: 10 3.1.4 cap://bobo.ex.com/
S: 10 6.2 cap://cal.example.com/relcal5
S: 10 3.1.5 cap://cal.example.com/relcal8
S: 10 7.0 cap://cal.example.com/relcal9

Example CREATE-1a

This example is just like the one above except that the RELCALUID is not
specified as a property of the newly created calendars. So, the name
conflict is avoided.

C: 10 CREATE VCALENDAR cap://cal.example.com/ relcal4 ://bobo.ex.com/
relcal5
S: 10 6.0 cap://cal.example.com/
S: 10 2.0 cap://cal.example.com/relcal4
S: 10 3.1.4 cap:/bobo.ex.com/
S: 10 6.2 cap://cal.example.com/relcal5
C: 10 CREATE VCALENDAR cap://cal.example.com/relcal8 relcal9
S: 10 3.1.5 cap://cal.example.com/relcal8
S: 10 2.0 cap://cal.example.com/relcal9
C: 10 SENDDATA
S: 10 2.0.1
C: CONTENT-TYPE: text/calendar; method=create; component=VCOMMAND
C: Content-Transfer-Encoding:7bit
C:
C: BEGIN:VCALENDAR
C: VERSION:2.1
C: METHOD:CREATE
C: BEGIN:VCOMMAND
C: BEGIN:VCALENDAR
C: NAME:CHARSET=us-ascii;LANGUAGE=EN-us:Bill’s Soccer Team
C: OWNER:CAPCAR:bill
C: OWNER:CAPCAR:mary
C: CALMASTER:mailto:[email-masked]
C: PREFERRED-TZID:US_PST
C: BEGIN:VCAR
C: CARID:12345
C: GRANT;CN=”Bill Jones”:principal=CAPCAR:bill;action=ALL;object=ALL
C: GRANT;CN=”Mary Jones”:principal=CAPCAR:mary;action=read;object=ALL
C: END:VCAR
C: END:VCOMMAND
C: END:VCALENDAR
C: .
S: 10 6.0 cap://cal.example.com/
S: 10 2.0 cap://cal.example.com/relcal4 cap://cal.example.com/relcalz
S: 10 3.1.4 cap://bobo.ex.com/
S: 10 6.2 cap://cal.example.com/relcal5
S: 10 3.1.5 cap://cal.example.com/relcal8
S: 10 7.0 cap://cal.example.com/relcal9
S: 10 6.0 cap://cal.example.com/
S: 10 2.0 cap://cal.example.com/relcal4 cap://cal.example.com/rand123
S: 10 3.1.4 cap://bobo.ex.com/
S: 10 6.2 cap://cal.example.com/relcal5
S: 10 3.1.5 cap://cal.example.com/relcal8
S: 10 2.0 cap://cal.example.com/relcal9 cap://cal.example.com/rand456