1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
|
Network Working Group D. Royer
Request for Comments: 4324 IntelliCal, LLC
Category: Experimental G. Babics
Oracle
S. Mansour
eBay
December 2005
Calendar Access Protocol (CAP)
Status of This Memo
This memo defines an Experimental Protocol for the Internet
community. It does not specify an Internet standard of any kind.
Discussion and suggestions for improvement are requested.
Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2005).
Abstract
The Calendar Access Protocol (CAP) described in this memo permits a
Calendar User (CU) to utilize a Calendar User Agent (CUA) to access
an iCAL-based Calendar Store (CS). At the time of this writing,
three vendors are implementing CAP, but it has already been
determined that some changes are needed. In order to get
implementation experience, the participants felt that a CAP
specification is needed to preserve many years of work. Many
properties in CAP which have had many years of debate, can be used by
other iCalendar protocols.
Royer, et al. Experimental [Page 1]
^L
RFC 4324 Calendar Access Protocol December 2005
Table of Contents
1. Introduction ....................................................5
1.1. Formatting Conventions .....................................5
1.2. Related Documents ..........................................6
1.3. Definitions ................................................7
2. Additions to iCalendar .........................................11
2.1. New Value Types (Summary) ................................14
2.1.1. New Parameters (summary) .............................14
2.1.2. New or Updated Properties (summary) ..................14
2.1.3. New Components (summary) .............................17
2.2. Relationship of RFC-2446 (ITIP) to CAP ...................18
3. CAP Design .....................................................20
3.1. System Model ..............................................20
3.2. Calendar Store Object Model ...............................20
3.3. Protocol Model ............................................21
3.3.1. Use of BEEP, MIME, and iCalendar .....................22
4. Security Model .................................................23
4.1. Calendar User and UPNs ....................................23
4.1.1. UPNs and Certificates ................................24
4.1.2. Anonymous Users and Authentication ...................25
4.1.3. User Groups ..........................................25
4.2. Access Rights .............................................26
4.2.1. Access Control and NOCONFLICT ........................26
4.2.2. Predefined VCARs .....................................26
4.2.3. Decreed VCARs ........................................28
4.3. CAP Session Identity ......................................28
5. CAP URL and Calendar Address ...................................29
6. New Value Types ................................................30
6.1. Property Value Data Types .................................30
6.1.1. CAL-QUERY Value Type .................................30
6.1.1.1. [NOT] CAL-OWNERS() ..............................36
6.1.1.2. CURRENT-TARGET() ................................37
6.1.1.3. PARAM() .........................................37
6.1.1.4. SELF() ..........................................38
6.1.1.5. STATE() .........................................38
6.1.1.6. Use of Single Quote .............................38
6.1.1.7. Comparing DATE and DATE-TIME Values .............39
6.1.1.8. DTEND and DURATION ..............................40
6.1.1.9. [NOT] LIKE ......................................40
6.1.1.10. Empty vs. NULL .................................41
6.1.1.11. [NOT] IN .......................................41
6.1.1.12. DATE-TIME and TIME Values in a WHERE Clause ....42
6.1.1.13. Multiple Contained Components ..................43
6.1.1.14. Example, Query by UID ..........................43
6.1.1.15. Query by Date-Time Range .......................43
6.1.1.16. Query for All Unprocessed Entries ..............44
6.1.1.17. Query with Subset of Properties by Date/Time ...44
Royer, et al. Experimental [Page 2]
^L
RFC 4324 Calendar Access Protocol December 2005
6.1.1.18. Query with Components and Alarms in A Range ....45
6.1.2. UPN Value Type .......................................45
6.1.3. UPN-FILTER Value .....................................46
7. New Parameters .................................................48
7.1. ACTION Parameter ..........................................48
7.2. ENABLE Parameter ..........................................48
7.3. ID Parameter ..............................................49
7.4. LATENCY Parameter .........................................50
7.5. LOCAL Parameter ...........................................50
7.6. LOCALIZE Parameter ........................................51
7.7. OPTIONS Parameter .........................................52
8. New Properties .................................................52
8.1. ALLOW-CONFLICT Property ...................................52
8.2. ATT-COUNTER Property ......................................53
8.3. CALID Property ............................................54
8.4. CALMASTER Property ........................................54
8.5. CAP-VERSION Property ......................................55
8.6. CARID Property ............................................55
8.7. CAR-LEVEL Property ........................................56
8.8. COMPONENTS Property .......................................56
8.9. CSID Property .............................................58
8.10. DECREED Property .........................................58
8.11. DEFAULT-CHARSET Property .................................59
8.12. DEFAULT-LOCALE Property ..................................60
8.13. DEFAULT-TZID Property ....................................61
8.14. DEFAULT-VCARS Property ...................................62
8.15. DENY Property ............................................62
8.16. EXPAND property ..........................................63
8.17. GRANT Property ...........................................64
8.18. ITIP-VERSION Property ....................................64
8.19. MAX-COMP-SIZE Property ...................................65
8.20. MAXDATE Property .........................................65
8.21. MINDATE Property .........................................66
8.22. MULTIPART Property .......................................66
8.23. NAME Property ............................................67
8.24. OWNER Property ...........................................68
8.25. PERMISSION Property ......................................68
8.26. QUERY property ...........................................69
8.27. QUERYID property .........................................70
8.28. QUERY-LEVEL Property .....................................70
8.29. RECUR-ACCEPTED Property ..................................71
8.30. RECUR-LIMIT Property .....................................71
8.31. RECUR-EXPAND Property ....................................72
8.32. RESTRICTION Property .....................................72
8.33. SCOPE Property ...........................................73
8.34. STORES-EXPANDED Property .................................74
8.35. TARGET Property ..........................................74
8.36. TRANSP Property ..........................................75
Royer, et al. Experimental [Page 3]
^L
RFC 4324 Calendar Access Protocol December 2005
9. New Components .................................................76
9.1. VAGENDA Component .........................................76
9.2. VCALSTORE Component .......................................78
9.3. VCAR Component ............................................80
9.4. VRIGHT Component ..........................................82
9.5. VREPLY Component ..........................................83
9.6. VQUERY Component ..........................................83
10. Commands and Responses ........................................85
10.1. CAP Commands (CMD) .......................................85
10.2. ABORT Command ............................................88
10.3. CONTINUE Command .........................................89
10.4. CREATE Command ...........................................90
10.5. DELETE Command ...........................................96
10.6. GENERATE-UID Command .....................................98
10.7. GET-CAPABILITY Command ..................................100
10.8. IDENTIFY Command ........................................103
10.9. MODIFY Command ..........................................105
10.10. MOVE Command ...........................................110
10.11. REPLY Response to a Command ............................112
10.12. SEARCH Command .........................................113
10.13. SET-LOCALE Command .....................................116
10.14. TIMEOUT Command ........................................118
10.15. Response Codes .........................................118
11. Object Registration ..........................................120
11.1. Registration of New and Modified Entities ...............120
11.2. Post the Item Definition ................................120
11.3. Allow a Comment Period ..................................120
11.4. Release a New RFC .......................................120
12. BEEP and CAP .................................................120
12.1. BEEP Profile Registration ...............................120
12.2. BEEP Exchange Styles ....................................123
12.3. BEEP Connection Details .................................123
13. IANA Considerations ..........................................125
14. Security Considerations ......................................125
Appendix A. Acknowledgements ....................................127
Appendix B. References ..........................................127
Appendix B.1. Normative References ..........................127
Appendix B.2. Informative References ........................128
Royer, et al. Experimental [Page 4]
^L
RFC 4324 Calendar Access Protocol December 2005
1. Introduction
This document specifies the Calendar Access Protocol (CAP). CAP
permits a Calendar User (CU) to utilize a Calendar User Agent (CUA)
to access an iCAL-based Calendar Store (CS) and manage calendar
information. In particular, the document specifies how to query,
create, modify, and delete iCalendar components (e.g., events, to-
dos, or daily journal entries). It further specifies how to search
for available busy time information. Synchronization with CUAs is
not covered, but it is believed to be possible using CAP.
At the time of this writing, three vendors are implementing CAP. It
has already been determined that some changes are needed. In order
to get implementation experience, the participants felt that a CAP
specification is needed to preserve many years of work. Many
properties in CAP can be used by other iCalendar protocols and have
had many years of debate.
CAP is specified as a BEEP (Block Extensible Exchange Protocol)
"profile" [BEEP] [BEEPGUIDE]. Many aspects of the protocol (e.g.,
authentication and privacy) are provided within BEEP. The protocol
data units of CAP leverage the standard iCalendar format iCAL [iCAL]
to convey calendar-related information.
CAP can also be used to store and fetch iCalendar Transport-
Independent Interoperability Protocol (iTIP) objects [iTIP]. iTIP
objects used are exactly as defined in [iTIP]. When iCalendar
objects are transferred between the CUA and a CS, some additional
properties and parameters may be added; the CUA is responsible for
correctly generating iCalendar objects to non-CAP processes.
The definition of new components, properties, parameters, and value
types are broken into two parts. The first part summarizes and
defines the new objects. The second part provides detail and ABNF
for those objects. The ABNF rules for CAP, as for other iCalendar
specifications, are order-independent. That is, properties in a
component may occur in any order, and parameters in any property may
occur in any order.
1.1. Formatting Conventions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY" and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119].
Calendaring and scheduling roles are referred to in quoted-strings of
text with the first character of each word in upper case. For
example, "Organizer" refers to a role of a "Calendar User" (CU)
Royer, et al. Experimental [Page 5]
^L
RFC 4324 Calendar Access Protocol December 2005
within the protocol defined by [iTIP]. Calendar components defined
by [iCAL] are referred to with capitalized, quoted-strings of text.
All iCalendar components should start with the letter "V". For
example, "VEVENT" refers to the event calendar component, "VTODO"
refers to the to-do component, and "VJOURNAL" refers to the daily
journal component.
Scheduling methods defined by [iTIP] are referred to with
capitalized, quoted-strings of text. For example, "REPLY" refers to
the method for replying to a "REQUEST".
CAP commands are referred to by upper-case, quoted-strings of text,
followed by the word "command". For example, '"CREATE" command'
refers to the command for creating a calendar entry, '"SEARCH"
command' refers to the command for reading calendar components. CAP
commands are named using the "CMD" property.
Properties defined by this memo are referred to with capitalized,
quoted-strings of text, followed by the word "property". For
example, '"ATTENDEE" property' refers to the iCalendar property used
to convey the calendar address that has been invited to a "VEVENT" or
"VTODO" component.
Property parameters defined by this memo are referred to with
capitalized, quoted-strings of text, followed by the word
"parameter". For example, "PARTSTAT" parameter refers to the
iCalendar property parameter used to specify the participation status
of an attendee. Enumerated values defined by this memo are referred
to with capitalized text, either alone or followed by the word
"value".
Object states defined by this memo are referred to with capitalized,
quoted-strings of text, followed by the word "state". For example,
'"BOOKED" state' refers to an object in the booked state.
Within a query, the different parts are referred to as a "clause" and
its value as "clause value" and the clause name will be in uppercase
enclosed in quotes, for example, 'The "SELECT" claus' or 'if the
"SELECT" clause value contains ...'.
In tables, the quoted-string text is specified without quotes in
order to minimize the table length.
1.2. Related Documents
Implementers will need to be familiar with several other memos that,
along with this one, describe the Internet calendaring and scheduling
standards. These documents are as follows.
Royer, et al. Experimental [Page 6]
^L
RFC 4324 Calendar Access Protocol December 2005
[iCAL] (RFC2445) specifies the objects, data types, properties and
property parameters used in the protocols, along with the
methods for representing and encoding them.
[iTIP] (RFC2446) specifies an interoperability protocol for
scheduling between different installations.
[iMIP] (RFC2447) specifies the Internet email binding for [iTIP].
[GUIDE] (RFC3283) is a guide to implementers and describes the
elements of a calendaring system, how they interact with each
other, how they interact with end users, and how the standards
and protocols are used.
This memo does not attempt to repeat the specification of concepts
and definitions from these earlier memos. Where possible, references
are made to the memo that provides the specification of these
concepts and definitions.
1.3 Definitions
UNPROCESSED, BOOKED, DELETED - A conceptual state of an object in
the calendar store. There are three conceptual states:
"UNPROCESSED" state, "BOOKED" state, and marked for deletion,
which is the "DELETED" state. How the implementation stores the
state of any object is not a protocol issue and is not discussed.
An object can be said to be booked, unprocessed, or marked for
deletion.
1. An "UNPROCESSED" state scheduling object has been stored in
the calendar store but has not been acted on by a CU or CUA.
All scheduled entries are [iTIP] objects. No [iTIP] objects
in the store are in the "BOOKED" state. To retrieve any
[iTIP] object, simply do a query asking for any objects that
are stored in the "UNPROCESSED" state.
2. A "BOOKED" state entry is stored with the "CREATE" command.
It is an object that has been acted on by a CU or CUA and
there has been a decision to store an object. To retrieve any
booked object, simply do a query asking for any objects that
were stored in the "BOOKED" state.
3. A "DELETED" state entry is created by sending a "DELETE"
command with the "OPTION" parameter value set to "MARK". To
retrieve any deleted object, simply do a query asking for any
objects that were stored in the "DELETED" state. By default
objects marked for delete are not returned. The CUA must
specifically ask for marked-for-deletion objects. You cannot
Royer, et al. Experimental [Page 7]
^L
RFC 4324 Calendar Access Protocol December 2005
ask for components in the "DELETED" state and in other states
in the same "VQUERY" component, as there would be no way to
distinguish between them in the reply.
Calendar - A collection of logically related objects or entities
each of which may be associated with a calendar date and possibly
time of day. These entities can include calendar properties or
components. In addition, a calendar might be related to other
calendars with the "RELATED-TO" property. A calendar is
identified by its unique calendar identifier. The [iCAL] defines
the initial calendar properties, calendar components and
properties that make up the contents of a calendar.
Calendar Access Protocol (CAP) - The Internet protocol that permits
a CUA to access and manipulate calendars residing on a Calendar
Store. (This memo.)
Calendar Access Rights (VCAR) - The mechanism for specifying the CAP
operations ("PERMISSION") that a particular calendar user ("UPN",
defined below) is granted or denied permission to perform on a
given calendar object ("SCOPE"). The calendar access rights are
specified with a "VCAR" component. (Section 9.3)
Calendar Address - Also see Calendar URL, which is the same as a CAP
address. The calendar address can also be the value to the
"ATTENDEE" and "ORGANIZER" properties, as defined in [iCAL].
Calendar URL - A calendar URL is a URL, defined in this memo,
that specifies the address of a CS or Calendar.
Component - Any object that conforms to the iCalendar object format
and that is either defined in an Internet Draft, registered with
IANA, or is an experimental object that is prefixed with "x-".
Some types of components include calendars, events, to-dos,
journals, alarms, and time zones. A component consists of
properties and possibly other contained components. For example,
an event may contain an alarm component.
Container - This is a generic name for VCALSTORE or VAGENDA.
Properties - An attribute of a particular component. Some
properties are applicable to different types of components. For
example, the "DTSTART" property is applicable to the "VEVENT",
"VTODO", and "VJOURNAL" components. Other components are
applicable only to an individual type of calendar component. For
example, the "TZURL" property may only be applicable to the
"VTIMEZONE" components.
Royer, et al. Experimental [Page 8]
^L
RFC 4324 Calendar Access Protocol December 2005
Calendar Identifier (CALID) - A globally unique identifier
associated with a calendar. Calendars reside within a CS. See
Qualified Calendar Identifier and Relative Calendar Identifier.
All CALIDs start with "cap:".
Calendar Policy - A CAP operational restriction on the access or
manipulation of a calendar. These may be outside the scope of the
CAP protocol. An example of an implementation or site policy is,
"events MUST be scheduled in unit intervals of one hour".
Calendar Property - An attribute of a calendar ("VAGENDA"). The
attribute applies to the calendar, as a whole. For example, the
"CALSCALE" property specifies the calendar scale (e.g., the
"GREGORIAN" value) for the all entries within the calendar.
Calendar Store (CS) - The data and service model definitions for a
Calendar Store as defined in this memo. This memo does not
specify how the CS is implemented.
Calendar Server - An implementation of a Calendar Store (CS) that
manages one or more calendars.
Calendar Store Identifier (CSID) - The globally unique identifier
for an individual CS. A CSID consists of the host and port
portions of a "Common Internet Scheme Syntax" part of a URL, as
defined by [URL]. The CSID excludes any reference to a specific
calendar. (Section 8.9)
Calendar Store Components - Components maintained in a CS specify a
grouping of calendar store-wide information.
Calendar Store Properties - Properties maintained in a Calendar
Store represent store-wide information.
Calendar User (CU) - An entity (often biological) that uses a
calendaring system.
Calendar User Agent (CUA) - The client application that a CU
utilizes to access and manipulate a calendar.
CAP Session - An open communication channel between a CUA and a CS.
If the CAP session is authenticated, the CU is "authenticated" and
it is an "authenticated CAP session".
Contained Component / Contained Properties - A component or property
that is contained inside of another component. For example, a
"VALARM" component may be contained inside a "VEVENT" component,
Royer, et al. Experimental [Page 9]
^L
RFC 4324 Calendar Access Protocol December 2005
and a "TRIGGER" property could be a contained property of a
"VALARM" component.
Delegate - A CU (sometimes called the delegatee) who has been
assigned participation in a scheduled component (e.g., VEVENT) by
one of the attendees in the scheduled component (sometimes called
the delegator). An example of a delegate is a team member told to
go to a particular meeting in place of another invitee who is
unable to attend.
Designate - A CU who is authorized to act on behalf of another CU.
An example of a designate is an assistant.
Experimental - The CUA and CS may implement experimental extensions
to the protocol. They might also have experimental components,
properties, and parameters. These extensions MUST start with "x-"
(or "X-") and should include a vendor prefix (such as "x-
myvendor-"). There is no guarantee that these experimental
extensions will interoperate with other implementations. There is
no guarantee that they will not interact in unpredictable ways
with other vendor experimental extensions. There is no guarantee
that the same specific experimental extension is not used by
multiple vendors in incompatible ways. Implementations should
limit sending those extensions to other implementations.
Object - A generic name for any component, property, parameter, or
value type to be used in iCalendar.
Overlapped Booking - A policy that indicates whether or not
components with a "TRANSP" property not set to "TRANSPARENT-
NOCONFLICT" or "OPAQUE-NOCONFLICT" value can overlap one another.
When the policy is applied to a calendar it indicates whether or
not the time span of any component (VEVENT, VTODO, ...) in the
calendar can overlap the time span of any other component in the
same calendar. When applied to an individual object, it indicates
whether or not any other component's time span can overlap that
individual component. If the CS does not allow overlapped
booking, then the CS is unwilling to allow any overlapped bookings
within any calendar or entry in the CS.
Owner - One or more CUs or UGs that are listed in the "OWNER"
property in a calendar. There can be more than one owner.
Qualified Calendar Identifier (Qualified CALID) - A CALID in which
both the scheme and CSID of the CAP URI are present.
Realm - A collection of calendar user accounts, identified by a
string. The name of the Realm is only used in UPNs. In order to
Royer, et al. Experimental [Page 10]
^L
RFC 4324 Calendar Access Protocol December 2005
avoid namespace conflict, the Realm SHOULD be postfixed with an
appropriate DNS domain name (e.g., the foobar Realm could be
called foobar.example.com).
Relative Calendar Identifier (Relative CALID) - An identifier for an
individual calendar in a calendar store. It MUST be unique within
a calendar store. A Relative CALID consists of the "URL path" of
the "Common Internet Scheme Syntax" portion of a URL, as defined
by [URI] and [URLGUIDE].
Session Identity - A UPN associated with a CAP session. A session
gains an identity after successful authentication. The identity
is used in combination with VCAR to determine access to data in
the CS.
User Group (UG) - A collection of Calendar Users and/or User Groups.
These groups are expanded by the CS and may reside either locally
or in an external database or directory. The group membership may
be fixed or dynamic over time.
Username - A name that denotes a Calendar User within a Realm. This
is part of a UPN.
User Principal Name (UPN) - A unique identifier that denotes a CU or
a group of CUs. (Section 6.1.2)
2. Additions to iCalendar
Several new components, properties, parameters, and value types are
added in CAP. This section summarizes those new objects.
This memo extends the properties that can go into 'calprops' as
defined in [iCAL] section 4.6 page 51, to allow [iTIP] objects
transmitted between a CAP aware CUA and the CS to contain the
"TARGET" and "CMD" properties. This memo also adds to the [iCAL]
ABNF to allow IANA and experimental extensions. This memo does not
address how a CUA transmits [iTIP] or [iMIP] objects to non-CAP
programs. What follows is ABNF, as described in [ABNF].
calprops= 2*(
; 'prodid' and 'version' are both REQUIRED,
; but MUST NOT occur more than once.
;
prodid /version /
;
; These are optional, but MUST NOT occur
; more than once.
Royer, et al. Experimental [Page 11]
^L
RFC 4324 Calendar Access Protocol December 2005
;
calscale /
method /
cmd /
;
; Target is optional, and may occur more
; than once.
;
target / other-props )
;
other-props = *(x-prop) *(iana-prop) *(other-props)
;
iana-prop = ; Any property registered by IANA directly or
; included in an RFC that may be applied to
; the component and within the rules published.
;
x-prop = ; As defined in [iCAL].
;
methodp = ; As defined in [iCAL].
;
prodid = ; As defined in [iCAL].
;
calscale = ; As defined in [iCAL].
;
Another change is that the 'component' part of the 'icalbody' ABNF as
described in [iCAL] section 4.6 is optional when sending a command,
as shown in the following updated ABNF:
icalbody = calprops component
; If the "VCALENDAR" component contains the "CMD"
; property then the 'component' is optional:
;
/ calprops ; Which MUST include a "CMD" property
;
component = ; As defined in [iCAL].
In addition, a problem exists with the control of "VALARM" components
and their "TRIGGER" properties. A CU may wish to set its own alarms
(local alarms) on components. These local alarms are not to be
forwarded to other CUs, CUAs, or CSs. Similarly, the "SEQUENCE"
property and the "ENABLE" parameter in local alarms are not to be
forwarded to other CUs, CUAs, or CSs. Therefore, for the protocol
between a CUA and a CS, the following changes from [iCAL] section
4.6.6 page 67 apply to the CAP protocol:
alarmc = "BEGIN" ":" "VALARM" CRLF
Royer, et al. Experimental [Page 12]
^L
RFC 4324 Calendar Access Protocol December 2005
alarm-seq
other-props
(audioprop / dispprop / emailprop / procprop)
"END" ":" "VALARM" CRLF
;
emailprop = ; As defined in [iCAL]
;
procprop = ; As defined in [iCAL]
;
dispprop = ; As defined in [iCAL]
;
audioprop = ; As defined in [iCAL]
;
alarm-seq = "SEQUENCE" alarmseqparams ":" posint0 CRLF
;
alarmseqparams = other-params [";" local-param] other-params
;
; Where DIGIT is defined in [iCAL]
;
posint0 = 1*DIGIT
posint1 = posintfirst 1*DIGIT
;
; A number starting with 1 through 9.
;
posintfirst = %x31-39
;
other-params = *(";" xparam) *(";" iana-params)
*(";" other-params)
;
iana-params = ; Any parameter registered by IANA directly or
; included in an RFC that may be applied to
; the property and within the rules published.
;
xparam ; As defined in [iCAL].
;
The CUA adds a "SEQUENCE" property to each "VALARM" component as it
books the component. This property, along with the "LOCAL" and
"ENABLE" parameters, allows the CUA to uniquely identify any VALARM
in any component. The CUA should remove those before forwarding to
non-CAP-aware CUAs.
In addition, if a CUA wished to ignore a "TRIGGER" property in a
"VALARM" component that was supplied to it by the "Organizer", the
CUA needs a common way to tag that trigger as disabled. So the
following is a modification to [iCAL] section 4.8.6.3 page 127:
trigger = "TRIGGER" 1*(";" enable-param) (trigrel / trigabs)
Royer, et al. Experimental [Page 13]
^L
RFC 4324 Calendar Access Protocol December 2005
;
trigrel = ; As defined in [iCAL].
;
trigabs = ; As defined in [iCAL].
See Section 7.2 and Section 7.5.
2.1. New Value Types (Summary)
UPN: The UPN value type is a text value type restricted to only UPN
values (see Section 6.1.2).
UPN-FILTER: Like the UPN value type, but also includes filter rules
that allow wildcards (see Section 6.1.3).
CALQUERY: The "CAL-QUERY" value type is a query syntax that is used
by the CUA to specify the rules that apply to a CAP command (see
Section 6.1.1).
2.1.1. New Parameters (summary)
ACTION - The "ACTION" parameter informs the endpoint if it should
abort or ask to continue on timeout. (Section 7.1)
ENABLE - The "ENABLE" parameter in CAP is used to tag a property in
a component as disabled or enabled. (Section 7.2)
ID - The "ID" parameter specifies a unique identifier to be used for
any outstanding commands.
LATENCY - The "LATENCY" parameter supplies the timeout value for
command completion to the other endpoint. (Section 7.4)
LOCAL - The "LOCAL" parameter in CAP is used to tag a property in a
component to signify that the component is local or to be
distributed. (Section 7.5)
LOCALIZE - The "LOCALIZE" parameter specifies the locale to be used
in error and warning messages.
OPTIONS - The "OPTIONS" parameter passes optional information for
the command being sent.
2.1.2. New or Updated Properties (summary)
ALLOW-CONFLICT - Some entries in a calendar might not be valid if
other entries were allowed to overlap the same time span.
(Section 8.1)
Royer, et al. Experimental [Page 14]
^L
RFC 4324 Calendar Access Protocol December 2005
ATT-COUNTER - When storing a "METHOD" property with the "COUNTER"
method, there needs to be a way to remember the "ATTENDEE" value
that sent the COUNTER. (Section 8.2)
CAP-VERSION - The version of CAP that the implementation supports.
(Section 8.5)
CAR-LEVEL - The level of calendar access supported. (Section 8.7)
COMPONENTS - The list of components supported. (Section 8.8)
CSID - The Calendar Store IDentifier (CSID) uniquely identifies a
CAP server. (Section 8.9)
CALID - Each calendar within a CS needs to be uniquely identifiable.
The "CALID" property identifies a unique calendar within a CS. It
can be a full CALID or a relative CALID. (Section 8.3)
CALMASTER - The "CALMASTER" property specifies the contact
information for the CS. (Section 8.4)
CARID - Access rights can be saved and fetched by unique ID - the
"CARID" property. (Section 8.6)
CMD - The CAP commands, as well as replies are transmitted using the
"CMD" property. (Section 10.1)
DECREED - Some access rights are not changeable by the CUA. When
that is the case, the "DECREED" property value in the "VCAR"
component will be "TRUE". (Section 8.10)
DEFAULT-CHARSET - The list of charsets supported by the CS. The
first entry is the default for the CS. (Section 8.11)
DEFAULT-LOCALE - The list of locales supported by the CS. The first
entry in the list is the default locale. (Section 8.12)
DEFAULT-TZID - This is the list of known timezones supported. The
first entry is the default. (Section 8.13)
DEFAULT-VCARS - A list of the "CARID" properties that will be used
to create new calendars. (Section 8.14)
DENY - The UPNs listed in the "DENY" property of a "VCAR" component
will be denied access, as described in the "VRIGHT" component.
(Section 8.15)
Royer, et al. Experimental [Page 15]
^L
RFC 4324 Calendar Access Protocol December 2005
EXPAND - This property tells the CS if the query reply should expand
components into multiple instances. The default is "FALSE" and is
ignored for CSs that cannot expand recurrence rules. (Section
8.16)
GRANT - The UPNs listed in the "GRANT" property of a "VCAR"
component will be allowed access as described in the "VRIGHT"
component. (Section 8.17)
ITIP-VERSION - The version of [iTIP] supported. (Section 8.18)
MAXDATE - The maximum date supported by the CS. (Section 8.20)
MAX-COMP-SIZE - The largest component size allowed in the
implementation including attachments in octets. (Section 8.19)
MINDATE - The minimum date supported by the CS. (Section 8.21)
MULTIPART - Passed in the capability messages to indicate which MIME
multipart types the sender supports. (Section 8.22)
NAME - The "NAME" property is used to add locale-specific
descriptions into components. (Section 8.23)
OWNER - Each calendar has at least one "OWNER" property. (xref
target="OWNER"/>) Related to the "CAL-OWNERS()" query clause.
(Section 6.1.1.1)
PERMISSION - This property specifies the permission being granted or
denied. Examples are the "SEARCH" and "MODIFY" values. (Section
8.25)
QUERY - Used to hold the CAL-QUERY (Section 8.26) for the component.
QUERYID - A unique id for a stored query. (Section 8.27)
QUERY-LEVEL - The level of the query language supported. (Section
8.28)
RECUR-ACCEPTED - If the implementation support recurrence rules.
(Section 8.29)
RECUR-EXPAND - If the implementation support expanding recurrence
rules. (Section 8.31)
RECUR-LIMIT - Any maximum limit on the number of instances the
implementation will expand recurring objects. (Section 8.30)
Royer, et al. Experimental [Page 16]
^L
RFC 4324 Calendar Access Protocol December 2005
REQUEST-STATUS - The [iCAL] "REQUEST-STATUS" property is extended to
include new error numbers.
RESTRICTION - In the final check when granting calendar access
requests, the CS test the results of a command for the value of
the "RESTRICTION" property in the corresponding "VRIGHT"
component, to determine if the access meets that restriction.
(Section 8.32)
SCOPE - The "SCOPE" property is used in "VRIGHT"s component to
select the subset of data that may be acted upon when checking
access rights. (Section 8.33)
SEQUENCE - When the "SEQUENCE" property is used in a "VALARM"
component, it uniquely identifies the instances of the "VALARM"
within that component.
STORES-EXPANDED - Specifies if the implementation stores recurring
objects expanded or not. (Section 8.34)
TARGET - The new "VCALENDAR" component property "TARGET" (Section
8.35) is used to specify which calendar(s) will be the subject of
the CAP command.
TRANSP - This is a modification of the [iCAL] "TRANSP" property and
it allows more values. The new values are related to conflict
control. (Section 8.36)
2.1.3. New Components (summary)
VAGENDA - CAP allows the fetching and storing of the entire contents
of a calendar. The "VCALENDAR" component is not sufficient to
encapsulate all of the needed data that describes a calendar. The
"VAGENDA" component is the encapsulating object for an entire
calendar. (Section 9.1)
VCALSTORE - Each CS contains one or more calendars (VAGENDAs), the
"VCALSTORE" component is the encapsulating object that can hold
all of the "VAGENDA" components along with any components and
properties that are unique to the store level. (Section 9.2)
VCAR - Calendar Access Rights are specified and encapsulated in the
new iCalendar "VCAR" component. The "VCAR" component holds some
new properties and at least one "VRIGHT" component. (Section 9.3)
VRIGHT - This component encapsulates a set of instructions to the
CS to define the rights or restrictions needed. (Section 9.4)
Royer, et al. Experimental [Page 17]
^L
RFC 4324 Calendar Access Protocol December 2005
VREPLY - This component encapsulates a set of data that can consist
of an arbitrary number of properties and components. Its contents
are dependent on the command that was issued. (Section 9.5)
VQUERY - The search operation makes use of a new component, called
"VQUERY" and a new value type "CAL-QUERY" (Section 6.1.1). The
"VQUERY" component is used to fetch objects from the CS. (Section
9.6)
2.2. Relationship of RFC-2446 (ITIP) to CAP
[iTIP] describes scheduling methods that result in indirect
manipulation of components. In CAP, the "CREATE" command is used to
deposit entities into the store. Other CAP commands, such as
"DELETE", "MODIFY", and "MOVE" command values, provide direct
manipulation of components. In the CAP calendar store model,
scheduling messages are conceptually kept separate from other
components by their state.
All scheduling operations are as defined in [iTIP]. This memo makes
no changes to any of the methods or procedures described in [iTIP].
In this memo, referring to the presence of the "METHOD" property in
an object is the same as saying an [iTIP] object.
A CUA may create a "BOOKED" state object by depositing an iCalendar
object into the store. This is done by depositing an object that
does not have a "METHOD" property. The CS then knows to set the
state of the object to the "BOOKED" state. If the object has a
"METHOD" property, then the object is stored in the "UNPROCESSED"
state.
If existing "UNPROCESSED" state objects exist in the CS for the same
UID (UID is defined in [iCAL]), then a CUA may wish to consolidate
the objects into one "BOOKED" state object. The CUA would fetch the
"UNPROCESSED" state objects for that UID and process them in the CUA
as described in [iTIP]. Then, if the CUA wished to book the UID, the
CUA would issue a "CREATE" command to create the new "BOOKED" state
object in the CS, followed by a "DELETE" command to remove any
related old [iTIP] objects from the CS. It might also involve the
CUA sending some [iMIP] objects or contacting other CSs and
performing CAP operations on those CSs.
The CUA could also decide not to book the object. In this case, the
"UNPROCESSED" state objects could be removed from the CS, or the CUA
could set those objects to the marked-for-delete state. The CUA
could also ignore objects for later processing.
Royer, et al. Experimental [Page 18]
^L
RFC 4324 Calendar Access Protocol December 2005
The marked-for-delete state is used to keep the object around so that
the CUA can process duplicate requests automatically. If a duplicate
[iTIP] object is deposited into the CS and there exists identical
marked-for-delete objects, then a CUA acting on behalf of the "OWNER"
can silently drop those duplicate entries.
Another purpose for the marked-for-delete state is so that, when a CU
decides they do not wish to have the object show in their calendar,
the CUA can book the object by changing the "PARTSTAT" parameter to
"DECLINED" in the "ATTENDEE" property that corresponds to their UPN.
Then the CUA can perform [iTIP] processing such as sending back a
decline, and then mark that object as marked-fo-delete. The CUA
might be configurable to automatically drop any updates for that
object, knowing the CU has already declined.
When synchronizing with multiple CUAs, the marked-for-delete state
could be used to inform the synchronization process that an object is
to be deleted. How synchronization is done is not specified in this
memo.
Several "UNPROCESSED" state entries can be in the CS for the same
UID. However, once consolidated, only one object exists in the CS
and that is the booked object. The other objects MUST be removed or
have their state changed to "DELETED".
There MUST NOT be more than one "BOOKED" state object in a calendar
for the same "UID". The "ADD" method value may create multiple
objects in the "BOOKED" state for the same UID; however, for the
purpose of this memo, they are the same object and simply have
multiple "VCALENDAR" components.
For example, if you were on vacation, you could have received a
"REQUEST" method to attend a meeting and several updates to that
meeting. Your CUA would have to issue "SEARCH" commands to find them
in the CS using CAP, process them, and determine the final state of
the object from a possible combination of user input and programmed
logic. Then the CUA would instruct the CS to create a new booked
object from the consolidated results. Finally, the CUA could do a
"DELETE" command to remove the related "UNPROCESSED" state objects.
See [iTIP] for details on resolving multiple [iTIP] scheduling
entries.
Royer, et al. Experimental [Page 19]
^L
RFC 4324 Calendar Access Protocol December 2005
3. CAP Design
3.1. System Model
The system model describes the high level components of a calendar
system and how they interact with each other.
CAP is used by a CUA to send commands to, and receive responses from,
a CS.
The CUA prepares a [MIME] encapsulated message, sends it to the CS,
and receives a [MIME] encapsulated response. The calendaring-related
information within these messages are represented by iCalendar
objects. In addition, the "GET-CAPABILITY" command can be sent from
the CS to the CUA.
There are two distinct protocols in operation to accomplish this
exchange. [BEEP] is the transport protocol used to move these
encapsulations between a CUA and a CS. CAP's [BEEP] profile defines
the application protocol that specifies the content and semantics of
the messages sent between the CUA and the CS.
3.2. Calendar Store Object Model
[iCAL] describes components such as events, todos, alarms, and
timezones. CAP requires additional object infrastructure, in
particular, detailed definitions of the containers for events and
todos (calendars), access control objects, and a query language.
The conceptual model for a calendar store is shown below. The
calendar store (VCALSTORE - Section 9.2) contains "VCAR"s, "VQUERY"s,
"VTIMEZONE"s, "VAGENDA"s and calendar store properties.
Calendars (VAGENDAs) contain "VEVENT"s, "VTODO"s, "VJOURNAL"s,
"VCAR"s, "VTIMEZONE"s, "VFREEBUSY", "VQUERY"s, and calendar
properties.
The component "VCALSTORE" is used to denote the root of the calendar
store and contains all of the calendars.
Royer, et al. Experimental [Page 20]
^L
RFC 4324 Calendar Access Protocol December 2005
Calendar Store
VCALSTORE
|
+-- properties
+-- VCARs
+-- VQUERYs
+-- VTIMEZONEs
+-- VAGENDA
| |
| +--properties
| +--VEVENTs
| | |
| | +--VALARMs
| +--VTODOs
| | |
| | +--VALARMs
| +--VJOURNALs
| +--VCARs
| +--VTIMEZONEs
| +--VQUERYs
| +--VFREEBUSYs
| |
| | ...
.
.
+-- VAGENDA
. .
. .
. .
Calendars within a Calendar Store are identified by their unique
Relative CALID.
3.3. Protocol Model
CAP uses [BEEP] as the transport and authentication protocol.
The initial charset MUST be UTF-8 for a session in an unknown locale.
If the CS supplied the [BEEP] 'localize' attribute in the [BEEP]
'greeting', then the CUA may tell the CS to switch locales for the
session by issuing the "SET-LOCALE" CAP command and supplying one of
the locales supplied by the [BEEP] 'localize' attribute. If a locale
is supplied, the first locale in the [BEEP] 'localize' attribute is
the default locale of the CS. The locale is switched only after a
successful reply.
Royer, et al. Experimental [Page 21]
^L
RFC 4324 Calendar Access Protocol December 2005
The "DEFAULT-CHARSET" property of the CS contains the list of
charsets supported by the CS with the first value being the default
for new calendars. If the CUA wishes to switch to one of those
charsets for the session, the CUA issues the "SET-LOCALE" command.
The CUA would have to first perform a "GET-CAPABILITY" command on the
CS to get the list of charsets supported by the CS. The charset is
switched only after a successful reply.
The CUA may switch locales and charsets as needed. There is no
requirement that a CS support multiple locales or charsets.
3.3.1. Use of BEEP, MIME, and iCalendar
CAP uses the [BEEP] application protocol over TCP. Refer to [BEEP]
and [BEEPTCP] for more information. The default port on which the CS
listens for connections is user port 1026.
The [BEEP] data exchanged in CAP is a iCalendar MIME content that
fully conforms to [iCAL] iCalendar format.
This example tells the CS to generate and return 10 UIDs to be used
by the CUA. Note that throughout this memo, 'C:' refers to what the
CUA sends, 'S:' refers to what the CS sends, 'I:' refers to what the
initiator sends, and 'L:' refers to what the listener sends. Here
initiator and listener are used as defined in [BEEP].
C: MSG 1 2 . 432 62
C: Content-Type: text/calendar
C:
C: BEGIN:VCALENDAR
C: VERSION:2.0
C: PRODID:-//someone's prodid
C: CMD;ID=unique-per-cua-123;OPTIONS=10:GENERATE-UID
C: END:VCALENDAR
NOTE: The following examples will not include the [BEEP] header and
footer information. Only the iCalendar objects that are sent between
the CUA and CS will be shown because the [BEEP] payload boundaries
are independent of CAP.
The commands listed below are used to manipulate or access the data
on the calendar store:
ABORT - Sent to halt the processing of some of the commands.
(Section 10.2)
CONTINUE - Sent to continue processing a command that has reached
its specified timeout time. (Section 10.3)
Royer, et al. Experimental [Page 22]
^L
RFC 4324 Calendar Access Protocol December 2005
CREATE - Create a new object on the CS. Initiated only by the CUA.
(Section 10.4)
SET-LOCALE - Tell the CS to use any named locale and charset
supplied. Initiated by the CUA only. (Section 10.13)
DELETE - Delete objects from the CS. Initiated only by the CUA.
Can also be used to mark an object for deletion. (Section 10.5)
GENERATE-UID - Generate one or more unique ids. Initiated only by
the CUA. (Section 10.6)
GET-CAPABILITY - Query the capabilities of the other end point of the
session. (Section 10.7)
IDENTIFY - Set a new identity for the session. Initiated only by
the CUA. (Section 10.8)
MODIFY - Modify components. Initiated by the CUA only. (Section
10.9)
MOVE - Move components to another container. Initiated only by the
CUA. (Section 10.10)
REPLY - When replying to a command, the "CMD" value will be set to
"REPLY" so that it will not be confused with a new command.
(Section 10.11)
SEARCH - Search for components. Initiated only by the CUA.
(Section 10.12)
TIMEOUT - Sent when a specified amount of time has lapsed and a
command has not finished. (Section 10.14)
4. Security Model
BEEP transport performs all session authentication.
4.1. Calendar User and UPNs
A CU is an entity that can be authenticated. It is represented in
CAP as a UPN, which is a key part of access rights. The UPN
representation is independent of the authentication mechanism used
during a particular CUA/CS interaction. This is because UPNs are
used within VCARs. If the UPN were dependent on the authentication
mechanism, a VCAR could not be consistently evaluated. A CU may use
one mechanism while using one CUA, but the same CU may use a
Royer, et al. Experimental [Page 23]
^L
RFC 4324 Calendar Access Protocol December 2005
different authentication mechanism when using a different CUA, or
while connecting from a different location.
The user may also have multiple UPNs for various purposes.
Note that the immutability of the user's UPN may be achieved by using
SASL's authorization identity feature. The transmitted authorization
identity may be different than the identity in the client's
authentication credentials [SASL, section 3]. This also permits a CU
to authenticate using their own credentials, yet request the access
privileges of the identity for which they are proxying SASL. Also,
the form of authentication identity supplied by a service like TLS
may not correspond to the UPNs used to express a server's access
rights, requiring a server-specific mapping to be done. The method
by which a server determines a UPN, based on the authentication
credentials supplied by a client, is implementation-specific. See
[BEEP] for authentication details; [BEEP] relies on SASL.
4.1.1. UPNs and Certificates
When using X.509 certificates for purposes of CAP authentication, the
UPN should appear in the certificate. Unfortunately, there is no
single correct guideline for which field should contain the UPN.
Quoted from RFC-2459, section 4.1.2.6 (Subject):
If subject naming information is present only in the
subjectAlt-Name extension (e.g., a key bound only to an email
address or URI), then the subject name MUST be an empty
sequence and the subjectAltName extension MUST be critical.
Implementations of this specification MAY use these comparison
rules to process unfamiliar attribute types (i.e., for name
chaining). This allows implementations to process certificates
with unfamiliar attributes in the subject name.
In addition, legacy implementations exist where an RFC 2822
name [RFC2822] is embedded in the subject distinguished name as
an EmailAddress attribute. The attribute value for
EmailAddress is of type IA5String to permit inclusion of the
character '@', which is not part of the PrintableString
character set. EmailAddress attribute values are not case
sensitive (e.g., "fanfeedback@redsox.example.com" is the same
as "FANFEEDBACK@REDSOX.EXAMPLE.COM").
Conforming implementations generating new certificates with
electronic mail addresses MUST use the rfc822Name in the
subject alternative name field (see sec. 4.2.1.7 of [X509CRL])
Royer, et al. Experimental [Page 24]
^L
RFC 4324 Calendar Access Protocol December 2005
to describe such identities. Simultaneous inclusion of the
EmailAddress attribute in the subject distinguished name to
support legacy implementations is deprecated but permitted.
Since no single method of including the UPN in the certificate will
work in all cases, CAP implementations MUST support the ability to
configure what the mapping will be by the CS administrator.
Implementations MAY support multiple mapping definitions, for
example, the UPN may be found in either the subject alternative name
field, or the UPN may be embedded in the subject distinguished name
as an EmailAddress attribute.
Note: If a CS or CUA is validating data received via [iMIP], if the
"ORGANIZER" or "ATTENDEE" properties said, for example,
"ATTENDEE;CN=Joe Random User:MAILTO:juser@example.com", then the
email address should be checked against the UPN. This is so the
"ATTENDEE" property cannot be changed to something misleading like
"ATTENDEE;CN=Joe Rictus User:MAILTO:jrictus@example.com" and have it
pass validation. Note that it is the email addresses that
miscompare, the CN miscompare is irrelevant.
4.1.2. Anonymous Users and Authentication
Anonymous access is often desirable. For example, an organization
may publish calendar information that does not require any access
control for viewing or login. Conversely, a user may wish to view
unrestricted calendar information without revealing their identity.
4.1.3. User Groups
A User Group is used to represent a collection of CUs or other UGs
that can be referenced in VCARs. A UG is represented in CAP as a
UPN. The CUA cannot distinguish between a UPN that represents a CU
or a UG.
UGs are expanded as necessary by the CS. The CS MAY expand a UG
(including nested UGs) to obtain a list of unique CUs. Duplicate
UPNs are filtered during expansion.
How the UG expansion is maintained across commands is
implementation-specific. A UG may reference a static list of
members, or it may represent a dynamic list. Operations SHOULD
recognize changes to UG membership.
CAP does not define commands or methods for managing UGs.
Royer, et al. Experimental [Page 25]
^L
RFC 4324 Calendar Access Protocol December 2005
4.2. Access Rights
Access rights are used to grant or deny access to calendars,
components, properties, and parameters in a CS to a CU. CAP defines
a new component type called a Calendar Access Right (VCAR).
Specifically, a "VCAR" component grants, or denies, UPNs the right to
search and write components, properties, and parameters on calendars
within a CS.
The "VCAR" component model does not put any restriction on the
sequence in which the object and access rights are created. That is,
an object associated with a particular "VCAR" component might be
created before or after the actual "VCAR" component is defined. In
addition, the "VCAR" and "VEVENT" components might be created in the
same iCalendar object and passed together in a single object.
All rights MUST be denied unless specifically granted.
If two rights specified in "VCAR" components are in conflict, the
right that denies access always takes precedence over the right that
grants access. Any attempt to create a "VCAR" component that
conflicts with a "VCAR" components with a "DECREED" property set to
the "TRUE" value must fail.
4.2.1. Access Control and NOCONFLICT
The "TRANSP" property can take on values -- "TRANSPARENT-NOCONFLICT"
and "OPAQUE-NOCONFLICT" -- that prohibit other components from
overlapping it. This setting overrides access. The "ALLOW-CONFLICT"
CS, Calendar or component setting may also prevent overlap, returning
an error code "6.3".
4.2.2. Predefined VCARs
The predefined calendar access CARIDs that MUST be implemented are:
CARID:READBUSYTIMEINFO - Specifies the "GRANT" and "DENY" rules
that allow UPNs to search "VFREEBUSY" components. An example
definition for this VCAR is:
BEGIN:VCAR
CARID:READBUSYTIMEINFO
BEGIN:VRIGHT
GRANT:*
PERMISSION:SEARCH
SCOPE:SELECT * FROM VFREEBUSY WHERE STATE() = 'BOOKED'
END:VRIGHT
END:VCAR
Royer, et al. Experimental [Page 26]
^L
RFC 4324 Calendar Access Protocol December 2005
CARID:REQUESTONLY - Specifies the "GRANT" and "DENY" rules to
UPNs other than the owner of the calendar and specifies the
ability to write new objects with the "METHOD" property set to
the "REQUEST" value. This CARID allows the owner to specify
which UPNs are allowed to make scheduling requests. An example
definition for this VCAR is:
BEGIN:VCAR
CARID:REQUESTONLY
BEGIN:VRIGHT
GRANT:NON CAL-OWNERS()
PERMISSION:CREATE
RESTRICTION:SELECT VEVENT FROM VAGENDA
WHERE METHOD = 'REQUEST'
RESTRICTION:SELECT VTODO FROM VAGEND
WHERE METHOD = 'REQUEST'
RESTRICTION:SELECT VJOURNAL FROM VAGEND
WHERE METHOD = 'REQUEST'
END:VRIGHT
END:VCAR
CARID:UPDATEPARTSTATUS - Grants authenticated users the right to
modify the instances of the "ATTENDEE" property set to one of
their calendar addresses in any components for any booked
component containing an "ATTENDEE" property. This allows (or
denies) a CU the ability to update their own participation
status in a calendar where they might not otherwise have
"MODIFY" command access. They are not allowed to change the
"ATTENDEE" property value. An example definition for this VCAR
(only affecting the "VEVENT" components) is:
BEGIN:VCAR
CARID:UPDATEPARTSTATUS
BEGIN:VRIGHT
GRANT:*
PERMISSION:MODIFY
SCOPE:SELECT ATTENDEE FROM VEVENT
WHERE ATTENDEE = SELF()
AND ORGANIZER = CURRENT-TARGET()
AND STATE() = 'BOOKED'
RESTRICTION:SELECT * FROM VEVENT
WHERE ATTENDEE = SELF()
END:VRIGHT
END:VCAR
CARID:DEFAULTOWNER - Grants to any owner the permission they have
for the target. An example definition for this VCAR is:
Royer, et al. Experimental [Page 27]
^L
RFC 4324 Calendar Access Protocol December 2005
BEGIN:VCAR
CARID:DEFAULTOWNER
BEGIN:VRIGHT
GRANT:CAL-OWNERS()
PERMISSION:*
SCOPE:SELECT * FROM VAGENDA
END:VRIGHT
END:VCAR
4.2.3. Decreed VCARs
A CS MAY choose to implement and allow persistent immutable VCARs
that may be configured by the CS administrator. A reply from the CS
may dynamically create "VCAR" components that are decreed depending
on the implementation. To the CUA, any "VCAR" component with the
"DECREED" property set to "TRUE" cannot be changed by the currently
authenticated UPN, and, depending on the implementation and other
"VCAR" components, might not be able to be changed by any UPN using
CAP (never when the CUA gets a "DECREED:TRUE" VCAR).
When a user attempts to modify or override a decreed "VCAR" component
rules, an error will be returned indicating that the user has
insufficient authorization to perform the operation. The reply to
the CUA MUST be the same as if a non-decreed VCAR caused the failure.
The CAP protocol does not define the semantics used to initially
create a decreed VCAR. This administrative task is outside the scope
of the CAP protocol.
For example, an implementation or a CS administrator may wish to
define a VCAR that will always allow the calendar owners to have full
access to their own calendars.
Decreed "VCAR" components MUST be readable by the calendar owner in
standard "VCAR" component format.
4.3. CAP Session Identity
A [BEEP] session has an associated set of authentication credentials,
from which is derived a UPN. This UPN is the identity of the CAP
session, and is used to determine access rights for the session.
The CUA may change the identity of a CAP session by calling the
"IDENTIFY" command. The CS only permits the operation if the
session's authentication credentials are good for the requested
identity. The method of checking this permission is implementation-
dependent, but it may be thought of as a mapping from authentication
credentials to UPNs. The "IDENTIFY" command allows a single set of
Royer, et al. Experimental [Page 28]
^L
RFC 4324 Calendar Access Protocol December 2005
authentication credentials to choose from multiple identities, and
allows multiple sets of authentication credentials to assume the same
identity.
For anonymous access, the identity of the session is "@". A UPN with
a null Username and null Realm is anonymous. A UPN with a null
Username but non-null Realm (e.g.,"@example.com") may be used to mean
any identity from that Realm. This is useful to grant access rights
to all users in a given Realm. A UPN with a non-null Username and
null Realm (e.g., "bob@") could be a security risk and MUST NOT be
used.
Because the UPN includes Realm information, it may be used to govern
calendar store access rights across Realms. However, governing
access rights across Realms is only useful if login access is
available. This could be done through a trusted server relationship
or a temporary account. Note that trusted server relationships are
outside the scope of CAP.
The "IDENTIFY" command also provides for a weak group implementation.
By allowing multiple sets of authentication credentials belonging to
different users to identify as the same UPN, that UPN essentially
identifies a group of people, and may be used for group calendar
ownership, or the granting of access rights to a group.
5. CAP URL and Calendar Address
The CAP URL scheme is used to designate both calendar stores and
calendars accessible using the CAP protocol.
The CAP URL scheme conforms to the generic URL syntax defined in RFC
2396 and follows the Guidelines for URL Schemes set forth in RFC
2718.
A CAP URL begins with the protocol prefix "cap" and is defined by the
following grammar.
capurl = "cap://" csidpart [ "/" relcalid ]
;
csidpart = hostport ; As defined in Section 3.2.2 of RFC 2396
;
relcalid = *uric ; As defined in Section 2 of RFC 2396
A 'relcalid' is an identifier that uniquely identifies a calendar on
a particular calendar store. There is no implied structure in a
Relative CALID (relcalid). It may refer to the calendar of a user or
of a resource such as a conference room. It MUST be unique within
the calendar store.
Royer, et al. Experimental [Page 29]
^L
RFC 4324 Calendar Access Protocol December 2005
Here are some examples:
cap://cal.example.com
cap://cal.example.com/Company/Holidays
cap://cal.example.com/abcd1234Usr
A 'relcalid' is permitted and is resolved according to the rules
defined in Section 5 of RFC 2396.
Examples of valid relative CAP URLs:
opqaueXzz123String
UserName/Personal
Calendar addresses can be described as qualified or relative CAP
URLs.
For a user currently authenticated to the CS on cal.example.com,
these two example calendar addresses refer to the same calendar:
cap://cal.example.com/abcd1234USR
abcd1234USR
6. New Value Types
The following sections contains new components, properties,
parameters, and value definitions.
The purpose of these is to extend the iCalendar objects in a
compatible way so that existing iCalendar "VERSION" property "2.0"
value parsers can still parse the objects without modification.
6.1. Property Value Data Types
6.1.1. CAL-QUERY Value Type
Subject: Registration of text/calendar MIME value type CAL-QUERY
Value Name: CAL-QUERY
Value Type Purpose: This value type is used to identify values and
contains query statements targeted at locating those values. This
is based on [SQL92] and [SQLCOM].
1. For the purpose of a query, all components should be handled
as tables, and the properties of those components should be
handled as columns.
Royer, et al. Experimental [Page 30]
^L
RFC 4324 Calendar Access Protocol December 2005
2. All VAGENDAs and CSs look like tables for the purpose of a
QUERY, and all of their properties look like columns in those
tables.
3. You MUST NOT do any cross-component-type joins. That means
you can ONLY have one component OR one "VAGENDA" component OR
one "VCALSTORE" component in the "FROM" clause.
4. Everything in the "SELECT" clause and "WHERE" clauses MUST be
from the same component type or "VAGENDA" component OR
"VCALSTORE" component in the "FROM" clause.
5. When multiple "QUERY" properties are supplied in a single
"VQUERY" component, the results returned are the same as the
results returned for multiple "VQUERY" components that each
have a single "QUERY" property.
6. The '.' is used to separate the table name (component) and
column name (property or component) when selecting a property
that is contained inside a component that is targeted in the
TARGET property.
7. A contained component without a '.' is not the same as
"component-name.*". If given as "component-name" (no dot),
the encapsulating BEGIN/END statement will be supplied for
"component-name".
In the following example, '.' is used to separate the "TRIGGER"
property from its contained component (VALARM), which is contained in
any "VEVENT" component in the selected "TARGET" property value (a
relcalid). All "TRIGGER" properties in any "VEVENT" component in
relcalid would be returned.
TARGET:relcalid
QUERY:SELECT VALARM.TRIGGER FROM VEVENT
SELECT VALARM FROM VEVENT WHERE UID = "123"
This returns one BEGIN/END "VALARM" component for each "VALARM"
component in the matching "VEVENT" component. As there is no '.'
(dot) in the VALARM after the SELECT above, it returns:
Royer, et al. Experimental [Page 31]
^L
RFC 4324 Calendar Access Protocol December 2005
BEGIN:VALARM
TRIGGER;RELATED=END:PT5M
REPEAT:4
...
END:VALARM
BEGIN:VALARM
TRIGGER;RELATED=START:PT5M
DURATION:PT10M
...
END:VALARM
...
...
If the SELECT parameter is provided as "component-name.*", then only
the properties and any contained components will be returned. The
example:
SELECT VALARM.* FROM VEVENT WHERE UID = "123"
will return all of the properties in each "VALARM" component in the
matching "VEVENT" component:
TRIGGER;RELATED=END:PT5M
REPEAT:4
...
TRIGGER;RELATED=START:PT5M
DURATION:PT10M
...
...
In the following SELECT clauses:
(a) SELECT <a-property-name> FROM VEVENT
(b) SELECT VALARM FROM VEVENT
(c) SELECT VALARM.* FROM VEVENT
(d) SELECT * FROM VEVENT
(e) SELECT * FROM VEVENT WHERE
VALARM.TRIGGER < '20020201T000000Z'
AND VALARM.TRIGGER > '20020101T000000Z'
Clause (a) elects all instances of <a-property-name> from all "VEVENT"
components.
Royer, et al. Experimental [Page 32]
^L
RFC 4324 Calendar Access Protocol December 2005
Clauses (b) and (c) select all "VALARM" components from all "VEVENT"
components. (b) would return them in BEGIN/END VALARM tags. (c) would
return all of the properties without BEGIN/END VALARM tags.
Clause (d) selects every property and every component that is in any
"VEVENT" component, with each "VEVENT" component wrapped in a
BEGIN/END VEVENT tags.
Clause (e) selects all properties and all contained components in all
"VEVENT" components that have a "VALARM" component with a "TRIGGER"
property value between the provided dates and times, with each
"VEVENT" component wrapped in BEGIN/END VEVENT tags.
Here are two invalid SELECT clauses:
(f) SELECT VEVENT.VALARM.TRIGGER FROM VEVENT
(g) SELECT DTSTART,UID FROM VEVENT
WHERE VTODO.SUMMERY = "Fix typo in CAP"
Clause (f) is invalid because it contains two '.' characters.
Clause (g) Is invalid because it mixes VEVENT
and VTODO properties in the same VQUERY.
Formal Definition: The value type is defined by the following
notation:
cal-query = "SELECT" SP cap-val SP
"FROM" SP comp-name SP
"WHERE" SP cap-expr
/ "SELECT" SP cap-cols SP
"FROM" SP comp-name
;
cap-val = cap-cols / param
/ ( cap-val "," cap-val )
; NOTE: there is NO space around the "," on
; the next line
cap-cols = cap-col / ( cap-cols "," cap-col)
/ "*"
/ "*.*" ; only valid when the target is a "VAGENDA"
;
; A 'cap-col' is:
;
; Any property name ('cap-prop') found in the
; component named in the 'comp-name' used in the
Royer, et al. Experimental [Page 33]
^L
RFC 4324 Calendar Access Protocol December 2005
; "FROM" clause.
;
; SELECT ORGANIZER FROM VEVENT ...
;
; OR
;
; A component name ('comp-name') of an existing
; component contained inside of the 'comp-name'
; used in the "FROM" clause.
;
; SELECT VALARM FROM VEVENT ...
;
; OR
;
; A component name ('comp-name') of an existing
; component contained inside of the 'comp-name' used
; in the "FROM" clause followed by a property
; name ('cap-prop') to be selected from that
; component.
; (comp-name "." cap-prop)
; SELECT VALARM.TRIGGER FROM VEVENT ...
cap-col = comp-name
/ comp-name "." cap-prop
/ cap-prop
comp-name = "VEVENT" / "VTODO" / "VJOURNAL" / "VFREEBUSY"
/ "VALARM" / "DAYLIGHT" / "STANDARD" / "VAGENDA"
/ "VCAR" / "VCALSTORE" / "VQUERY" / "VTIMEZONE"
/ "VRIGHT" / x-comp / iana-comp
cap-prop = ; A property that may be in the 'cap-comp' named
; in the "SELECT" clause.
cap-expr = "(" cap-expr ")"
/ cap-term
cap-term = cap-expr SP cap-logical SP cap-expr
/ cap-factor
cap-logical= "AND" / "OR"
cap-factor = cap-colval SP cap-oper SP col-value
/ cap-colval SP "LIKE" SP col-value
/ cap-colval SP "NOT LIKE" SP col-value
/ cap-colval SP "IS NULL"
/ cap-colval SP "IS NOT NULL"
Royer, et al. Experimental [Page 34]
^L
RFC 4324 Calendar Access Protocol December 2005
/ col-value SP "IN" cap-colval
/ col-value SP "NOT IN" cap-colval
/ "STATE()" "=" ( "BOOKED"
/ "UNPROCESSED"
/ "DELETED"
/ iana-state
/ x-state )
;
iana-state = ; Any state registered by IANA directly or
; included in an RFC that may be applied to
; the component and within the rules published.
;
x-state = ; Any experimental state that starts with
; "x-" or "X-".
cap-colval = cap-col / param
;
param = "PARAM(" cap-col "," cap-param ")"
;
cap-param = ; Any parameter that may be contained in the cap-col
; in the supplied PARAM() function
col-value = col-literal
/ "SELF()"
/ "CAL-OWNERS()"
/ "CAL-OWNERS(" cal-address ")"
/ "CURRENT-TARGET()"
;
cal-address = ; A CALID as define by CAP
;
col-literal = "'" literal-data "'"
;
literal-data = ; Any data that matches the value type of the
; column that is being compared. That is, you
; cannot compare PRIORITY to "some string" because
; PRIORITY has a value type of integer. If it is
; not preceded by the LIKE element, any '%' and '_'
; characters in the literal data are not treated as
; wildcard characters and do not have to be
; backslash-escaped.
;
; OR
;
; If the literal-data is preceded by the LIKE
; element it may also contain the '%' and '_'
; wildcard characters. And, if the literal data
; that is comparing contains any '%' or '_'
; characters, they MUST be backslash-escaped as
Royer, et al. Experimental [Page 35]
^L
RFC 4324 Calendar Access Protocol December 2005
; described in the notes below, in order for them
; not to be treated as wildcard characters.
;
; And, if the literal data contains any characters
; that would have to be backslash-escaped if
; a property or parameter value, then they must
; be backslash-escaped in the literal-data.
; Also, the quote character (') must be backslash
; escaped. Example:
;
; ... WHERE SUBJECT = 'It\'s time to ski'
;
cap-oper = "="
/ "!="
/ "<"
/ ">"
/ "<="
/ ">="
;
SP = ; A single white space ASCII character
; (value in HEX %x20).
;
x-comp = ; As defined in [iCAL] section 4.6.
;
iana-comp = ; As defined in [iCAL] section 4.6.
6.1.1.1. [NOT] CAL-OWNERS()
This function returns the list of "OWNER" properties for the named
calendar when used in the "SELECT" clause.
If called as 'CAL-OWNERS()', it is equivalent to the comma-separated
list of all of the owners of the calendar that match the provided
"TARGET" property value. If the target is a "VCALSTORE", it returns
the "CALMASTER" property.
If called as 'CAL-OWNERS(cal-address)', then it is the equivalent to
the comma-separated list of owners for the named calendar id. If
'cal-address' is a CS, it returns the "CALMASTER" property.
If used in the "WHERE" clause, it returns true if the currently
authenticated UPN is an owner of the currently selected object
matched in the provided "TARGET" property. Used in a CAL-QUERY
"WHERE" clause and in the UPN-FILTER.
Royer, et al. Experimental [Page 36]
^L
RFC 4324 Calendar Access Protocol December 2005
6.1.1.2. CURRENT-TARGET()
This is equivalent to the value of the "TARGET" property in the
current command. It is used in a CAL-QUERY "WHERE" clause.
6.1.1.3. PARAM()
This is used in a CAL-QUERY. It returns or tests for the value of
the named parameter from the named property.
6.1.1.3.1. PARAM() in SELECT
When used in a "SELECT" clause, it returns the entire property and
all of that property's parameters; the result is not limited to the
supplied parameter. If the property does not contain the named
parameter, then the property is not returned. However, it could be
returned as a result of another "SELECT" clause value. If multiple
properties of the supplied name have the named parameter, all
properties with that named parameter are returned. If multiple
PARAM() clauses in a single "SELECT" CLAUSE match the same property,
then the single matching property is returned only once.
Also, note that many parameters have default values defined in [iCAL]
that must be treated as existing with their default value in the
properties, as defined in [iCAL], even when not explicitly present.
For example, if a query were performed with PARAM(ATTENDEE,ROLE) then
ALL "ATTENDEE" properties would match because, even when they do not
explicitly contain the "ROLE" parameter, it has a default value and
therefore must match.
Therefore, when PARAM() is used in a "SELECT" clause, it is more
accurate to say that it means return the property, if it contains the
named parameter explicitly in the property or simply because the
parameter has a default for that property.
6.1.1.3.2. PARAM() in WHERE
When PARAM() is used in the "WHERE" clause, a match is true when the
parameter value matches the compare clause (according to the supplied
WHERE values). If multiple named properties contain the named
parameter, then each parameter value is compared in turn to the
condition; if any match, the results would be true for that condition
the same as if only one had existed. Each matching property or
component is returned only once.
Because a parameter may be multi-valued, the comparison might need to
be done with an "IN" or "NOT IN" comparator.
Royer, et al. Experimental [Page 37]
^L
RFC 4324 Calendar Access Protocol December 2005
Given the following query:
ATTENDEE;PARTSTAT=ACCEPTED:cap://host.com/joe
SELECT VEVENT FROM VAGENDA
WHERE PARAM(ATTENDEE,PARTSTAT) = 'ACCEPTED'
Thus, all "VEVENT" components that contain one or more "ATTENDEE"
properties that have a "PARTSTAT" parameter with a "ACCEPTED" value
would be returned. Also, each uniquely matching VEVENT would be
returned only once, no matter how many "ATTENDEE" properties had
matching roles, in each unique "VEVENT" component.
Also note that many parameters have default values defined in [iCAL].
Therefore, if the following query were performed on the "ATTENDEE"
property in the above example:
SELECT VEVENT FROM VAGENDA
WHERE PARAM(ATTENDEE,ROLE) = 'REQ-PARTICIPANT'
It would return the "ATTENDEE" property shown above because the
default value for the "ROLE" parameter is "REQ-PARTICIPANT".
6.1.1.4. SELF()
Used in a CAL-QUERY "WHERE" clause. Returns the UPN of the currently
authenticated UPN or their current UPN as a result of an IDENTIFY
command.
6.1.1.5. STATE()
Returns one of three values, "BOOKED", "UNPROCESSED", or "DELETED"
depending on the state of the object. "DELETED" is a component in
the marked-for-delete state. Components that have been removed from
the store are never returned.
If not specified in a query then both "BOOKED" and "UNPROCESSED" data
is returned. Each unique "METHOD" property must be in a separate
MIME object, per the [iCAL] section 3.2 restriction.
6.1.1.6. Use of Single Quote
All literal values are surrounded by single quotes ('), not double
quotes ("), and not without any quotes. If the value contains quotes
or any other ESCAPED-CHAR, they MUST be backslash-escaped as
described in section 4.3.11 "Text" of [iCAL]. Any "LIKE" clause
wildcard characters that are part of any literal data that is
preceded by a "LIKE" clause or "NOT LIKE" clause and is not intended
Royer, et al. Experimental [Page 38]
^L
RFC 4324 Calendar Access Protocol December 2005
to mean wildcard search MUST be escaped as described in note (7)
below.
6.1.1.7. Comparing DATE and DATE-TIME Values
When comparing "DATE-TIME" values to "DATE" values and when comparing
"DATE" values to "DATE-TIME" values, the result will be true if the
"DATE" value is on the same day as the "DATE-TIME" value. They are
compared in UTC no matter what time zone the data may have been
stored in.
Local time event, as described in section 4.2.19 of [iCAL], must be
considered to be in the CUA default timezone that was supplied by the
CUA in the "CAPABILITY" exchange.
VALUE-1 VALUE-2 Compare Results
20020304 20020304T123456 TRUE
(in UTC-3) (in UTC-3)
20020304 20020304T003456 FALSE
(in UTC) (in UTC-4)
20020304T003456Z 20020205T003456 FALSE
(in UTC-0) (in UTC-7)
When "DATE" values and "DATE-TIME" values are compared with the
"LIKE" clause, the comparison will be done as if the value is a
[iCAL] DATE or DATE-TIME string value.
LIKE '2002%' will match anything in the year 2002.
LIKE '200201%' will match anything in January 2002.
LIKE '%T000000' will match anything at midnight.
LIKE '____01__T%' will match anything for any year or
time that is in January.
(Four '_', '01', two '_' 'T%').
Using a "LIKE" clause value of "%00%", would return any value that
contained two consecutive zeros.
All comparisons will be done in UTC.
Royer, et al. Experimental [Page 39]
^L
RFC 4324 Calendar Access Protocol December 2005
6.1.1.8. DTEND and DURATION
The "DTEND" property value is not included in the time occupied by
the component. That is, a "DTEND" property value of 20030614T12000
includes all of the time up to, but not including, noon on that day.
The "DURATION" property value end time is also not inclusive. So an
object with a "DTSTART" property value of 20030514T110000 and a
"DURATION" property value of "1H" does not include noon on that day.
When a "QUERY" property value contains a "DTEND" value, then the CS
MUST also evaluate any existing "DURATION" property value and
determine if it has an effective end time that matches the "QUERY"
property supplied "DTEND" value or any range of values supplied by
the "QUERY" property.
When a "QUERY" property contains a "DURATION" value, then the CS MUST
also evaluate any existing "DTEND" property values and determine if
they have an effective duration that matches the value, or any range
of values, supplied by the "QUERY" property.
6.1.1.9. [NOT] LIKE
The pattern matching characters are the '%' that matches zero or more
characters, and '_' that matches exactly one character (where
character does not always mean octet).
"LIKE" clause pattern matches always cover the entire string. To
match a pattern anywhere within a string, the pattern must start and
end with a percent sign.
To match a '%' or '_' in the data and not have it interpreted as a
wildcard character, they MUST be backslash-escaped. Thus, to search
for a '%' or '_' in the string:
LIKE '%\%%' Matches any string with a '%' in it.
LIKE '%\_%' Matches any string with a '_' in it.
Strings compared using the "LIKE" clause MUST be performed using case
insensitive comparisoison assumes 'a' = 'A').
If the "LIKE" clause is preceded by 'NOT' then there is a match when
the string compare fails.
Some property values (such as the 'recur' value type), contain commas
and are not multi-valued. The CS must understand the objects being
compared and understand how to determine how any multi-valued or
multi-instances properties or parameter values are separated, quoted,
Royer, et al. Experimental [Page 40]
^L
RFC 4324 Calendar Access Protocol December 2005
and backslash-escaped. THE CS must perform the comparisons as if
each value existed by itself and was not quoted or backslash-escaped,
when comparing using the LIKE element.
See related examples in Section 6.1.1.11.
6.1.1.10. Empty vs. NULL
When used in a CAL-QUERY value, "NULL" means that the property or
parameter is not present in the object. Paramaters that are not
provided and have a default value in the property are considered to
exist with their default value and will not be "NULL".
If the property exists but has no value, then "NULL" MUST NOT
match.
If the parameter exists but has no value, then "NULL" MUST NOT
match.
If the parameter not present and has a default value, then "NULL"
MUST NOT match.
If the property (or parameter) exists but has no value, then it
matches the empty string '' (quote quote).
6.1.1.11. [NOT] IN
This is similar to the "LIKE" clause, except it does value matching
and not string comparison matches.
Some iCalendar objects can be multi-instance and multi-valued. The
"IN" clause will return a match if the literal value supplied as part
of the "IN" clause is contained in the value of any instance of the
named property or parameter, or is in any of the multiple values in
the named property or parameter. Unlike the "LIKE" clause, the '%'
and '_' matching characters are not used with the "IN" clause and
have no special meaning.
BEGIN:A-COMPONENT
(a) property:value1,value2 One property, two values.
(b) property:"value1,value2" One property, one value.
(c) property:parameter=1,2:x One parameter, two values.
(d) property:parameter="1,2",3:y One parameter, one value.
(e) property:parameter=",":z One parameter, one value.
(f) property:x,y,z One property, three values
END:A-COMPONENT
Royer, et al. Experimental [Page 41]
^L
RFC 4324 Calendar Access Protocol December 2005
In this example:
'value1' IN property would match (a) only.
'value1,value2' IN property would match (b) only.
'value%' IN property would NOT match any.
',' IN property would NOT match any.
'%,%' IN property would NOT match any.
'x' IN property would match (f) and (c).
'2' IN parameter would match (c) only.
'1,2' IN parameter would match (d) only.
',' IN parameter would match (e) only.
'%,%' IN parameter would NOT match any.
property LIKE 'value1%' would match (a) and (b).
property LIKE 'value%' would match (a) and (b).
property LIKE 'x' would match (f) and (c).
parameter LIKE '1%' would match (c) and (d).
parameter LIKE '%2%' would match (c) and (d).
parameter LIKE ',' would match (e) only.
Some property values (such as the "RECUR" value type), contain commas
and are not multi-valued. The CS must understand the objects being
compared and understand how to determine how any multi-valued or
multi-instance properties or parameter values are separated, quoted,
and backslash-escaped and perform the comparisons as if each value
existed by itself and not quoted or backslash-escaped when comparing
using the IN element.
If the "IN" clause is preceded by 'NOT', then there is a match when
the value does not exist in the property or parameter value.
6.1.1.12. DATE-TIME and TIME Values in a WHERE Clause
All "DATE-TIME" and "TIME" literal values supplied in a "WHERE"
clause MUST be terminated with 'Z'. That means that the CUA MUST
supply the values in UTC.
Valid:
WHERE alarm.TRIGGER < '20020201T000000Z'
AND alarm.TRIGGER > '20020101T000000Z'
Not valid; it is a syntax error and the CS MUST reject the QUERY:
WHERE alarm.TRIGGER < '20020201T000000'
AND alarm.TRIGGER > '20020101T000000'
Royer, et al. Experimental [Page 42]
^L
RFC 4324 Calendar Access Protocol December 2005
6.1.1.13. Multiple Contained Components
If a query references a component and a component or property
contained in the component, any clauses referring to the contained
component or property must be evaluated on all of the contained
components or properties. If any of the contained components or
properties match the query, and the conditions on the containing
component are also true, the component matches the query.
For example, in the query below, if a BOOKED VEVENT contains multiple
VALARMs, and the VALARM.TRIGGER clause is true for any of the VALARMs
in the VEVENT, then the UID, SUMMARY, and DESCRIPTION of this VEVENT
would be included in the QUERY results.
BEGIN:VQUERY
EXPAND:TRUE
QUERY:SELECT UID,SUMMARY,DESCRIPTION FROM VEVENT
WHERE VALARM.TRIGGER >= '20000101T030405Z'
AND VALARM.TRIGGER <= '20001231T235959Z'
AND STATE() = 'BOOKED'
END:VQUERY
6.1.1.14. Example, Query by UID
The following example would match the entire content of a "VEVENT" or
"VTODO" component with the "UID" property equal to "uid123" , and it
would not expand any multiple instances of the component. If the CUA
does not know if "uid123" was a "VEVENT", "VTODO", "VJOURNAL", or
any other component, then all components that the CUA supports MUST
be supplied in a QUERY property. This example assumes the CUA is
only interested in "VTODO" and "VEVENT" components.
If the results were empty it could also mean that "uid123" was a
property in a component other than a VTODO or VEVENT.
BEGIN:VQUERY
QUERY:SELECT * FROM VTODO WHERE UID = 'uid123'
QUERY:SELECT * FROM VEVENT WHERE UID = 'uid123'
END:VQUERY
6.1.1.15. Query by Date-Time Range
This query selects the entire content of every booked "VEVENT"
component that has an instance greater than or equal to July 1,
2000 00:00:00 UTC and less than or equal to July 30, 2000 23:59:59
UTC. This includes single instance "VEVENT" components that do
not explicitly contain any recurrence properties or "RECURRENCE-
ID" properties. This works only for CSs that have the "RECUR-
Royer, et al. Experimental [Page 43]
^L
RFC 4324 Calendar Access Protocol December 2005
EXPAND" property value set to "TRUE" in the "GET-CAPABILITY"
exchange.
BEGIN:VQUERY
EXPAND:TRUE
QUERY:SELECT * FROM VEVENT
WHERE RECURRENCE-ID >= '20000701T000000Z'
AND RECURRENCE-ID <= '20000730T235959Z'
AND STATE() = 'BOOKED'
END:VQUERY
6.1.1.16. Query for All Unprocessed Entries
The following example selects the entire contents of all non-booked
"VTODO" and "VEVENT" components in the "UNPROCESSED" state. The
default for the "EXPAND" property is "FALSE", so the recurrence rules
will not be expanded.
BEGIN:VQUERY
QUERYID:Fetch VEVENT and VTODO iTIP components
QUERY:SELECT * FROM VEVENT WHERE STATE() = 'UNPROCESSED'
QUERY:SELECT * FROM VTODO WHERE STATE() = 'UNPROCESSED'
END:VQUERY
The following example fetches all "VEVENT" and "VTODO" components in
the "BOOKED" state.
BEGIN:VQUERY
QUERYID:Fetch All Booked VEVENT and VTODO components
QUERY:SELECT * FROM VEVENT WHERE STATE() = 'BOOKED'
QUERY:SELECT * FROM VTODO WHERE STATE() = 'BOOKED'
END:VQUERY
The following fetches the "UID" property for all "VEVENT" and "VTODO"
components that have been marked for delete.
BEGIN:VQUERY
QUERYID:Fetch UIDs of marked-for-delete VEVENTs and VTODOs
QUERY:SELECT UID FROM VEVENT WHERE STATE() = 'DELETED'
QUERY:SELECT UID FROM VTODO WHERE STATE() = 'DELETED'
END:VQUERY
6.1.1.17. Query with Subset of Properties by Date/Time
In this example, only the named properties will be selected, and all
booked and non-booked components have a "DTSTART" value from February
1st to February 10th 2000 (in UTC) will also be selected.
Royer, et al. Experimental [Page 44]
^L
RFC 4324 Calendar Access Protocol December 2005
BEGIN:VQUERY
QUERY:SELECT UID,DTSTART,DESCRIPTION,SUMMARY FROM VEVENT
WHERE DTSTART >= '20000201T000000Z'
AND DTSTART <= '20000210T235959Z'
END:VQUERY
6.1.1.18. Query with Components and Alarms in A Range
This example fetches all booked "VEVENT" components with an alarm
that triggers within the specified time range. In this case only the
"UID", "SUMMARY", and "DESCRIPTION" properties will be selected for
all booked "VEVENTS" components that have an alarm between the two
date-times supplied.
BEGIN:VQUERY
EXPAND:TRUE
QUERY:SELECT UID,SUMMARY,DESCRIPTION FROM VEVENT
WHERE VALARM.TRIGGER >= '20000101T030405Z'
AND VALARM.TRIGGER <= '20001231T235959Z'
AND STATE() = 'BOOKED'
END:VQUERY
6.1.2. UPN Value Type
Value Name: UPN
Purpose: This value type is used to identify values that contain user
principal name of a CU or a group of CUs.
Formal Definition: The value type is defined by the following
notation:
;
upn = "@"
/ [ dot-atom-text ] "@" dot-atom-text
;
; dot-atom-text is defined in RFC 2822 [RFC2822]
;
;
dot-atom-text = ; As defined in [iCAL].
Description: This data type is an identifier that denotes a CU or a
group of CU. A UPN is an RFC 2822-compliant email address
[RFC2822], with exceptions listed below, and in most cases it is
deliverable to the CU. In some cases it is identical to the CU's
well known email address. A CU's UPN MUST never be an e-mail
address that is deliverable to a different person. And there is
no requirement that a person's UPN MUST be their e-mail address.
Royer, et al. Experimental [Page 45]
^L
RFC 4324 Calendar Access Protocol December 2005
A UPN is formatted as a user name followed by "@", followed by a
Realm in the form of a valid and unique DNS domain name. The user
name MUST be unique within the Realm. In its simplest form it
looks like "user@example.com".
In certain cases a UPN will not be RFC 2822-compliant. When
anonymous authentication is used, or anonymous authorization is
being defined, the special UPN "@" will be used. When
authentication MUST be used, but unique identity MUST be obscured,
a UPN of the form @DNS-domain-name may be used. For example,
"@example.com".
Example:
The following is a UPN for a CU:
jdoe@example.com
The following is an example of a UPN that could be for a group of
CU:
staff@example.com
The following is a UPN for an anonymous CU that belongs to a
specific realm. When used as a UPN-FILTER, it applies to all UPNs
in a specific realm:
@example.com
The following is a UPN for an anonymous CU:
@
6.1.3. UPN-FILTER Value
Value Name: UPN-FILTER
Purpose: This value type is used to identify values that contain a
user principal name filter.
Formal Definition: The value type is defined by the following
notation:
;
; NOTE: "CAL-OWNERS(cal-address)"
; and "NOT CAL-OWNERS(cal-address)"
; are both NOT allowed below.
;
Royer, et al. Experimental [Page 46]
^L
RFC 4324 Calendar Access Protocol December 2005
upn-filter = "CAL-OWNERS()" /
"NOT CAL-OWNERS()" /
"*" /
[ "*" / dot-atom-text ] "@" ( "*" / dot-atom-text )
;
; dot-atom-text is defined in RFC 2822
Description: The value is used to match user principal names (UPNs).
For "CAL-OWNERS()" and "NOT CAL-OWNERS()", see Section 8.24.
* Matches all UPNs.
@ Matches the UPN of anonymous CUs
belonging to the null realm
@* Matches the UPN of anonymous CUs
belonging to any non-null realm
@realm Matches the UPN of anonymous CUs
belonging to the specified realm.
*@* Matches the UPN of non-anonymous CUs
belonging to any non-null realm
*@realm Matches the UPN of non-anonymous CUs
belonging to the specified realm
user@realm Matches the UPN of the specified CU
belonging to the specified realm
user@* Not allowed.
user@ Not allowed.
Example: The following are examples of this value type:
DENY:NON CAL-OWNERS()
DENY:@hackers.example.com
DENY:*@hackers.example.com
GRANT:sam@example.com
Royer, et al. Experimental [Page 47]
^L
RFC 4324 Calendar Access Protocol December 2005
7. New Parameters
7.1. ACTION Parameter
Parameter Name: ACTION
Purpose: This parameter indicates the action to be taken when a
timeout occurs.
Value Type: TEXT
Conformance: This property can be specified in the "CMD" property.
When present in a "CMD" property, the "ACTION" parameter specifies
the action to be taken when the command timeout expires.
Formal Definition: The parameter is defined by the following
notation:
action-param = ";" "ACTION" "=" ( "ASK" / "ABORT" )
; If 'action-param' is supplied then
; 'latency-param' MUST be supplied.
Example:
CMD;LATENCY=10;ACTION=ASK:CREATE
7.2. ENABLE Parameter
Parameter Name: ENABLE
Purpose: This parameter indicates whether or not the property should
be ignored. For example, it can indicate that a "TRIGGER"
property in a "VALARM" component should be ignored.
Value Type: BOOLEAN
Conformance: This property can be specified in the "TRIGGER"
properties.
Description: When a non owner sends an [iTIP] "REQUEST" to a calendar
that object might contain a "VALARM" component. The owner may
wish to have local control over their own CUA and when or how
alarms are triggered.
A CUA may add the "ENABLE" parameter to any "TRIGGER" property
before booking the component. If the "ENABLE" parameter is set to
"FALSE", then the alarm will be ignored by the CUA. If set to
Royer, et al. Experimental [Page 48]
^L
RFC 4324 Calendar Access Protocol December 2005
"TRUE", or if the "ENABLE" property is not in the "TRIGGER"
property, the alarm is enabled. This parameter may not be known
by pre-CAP implementations, but this should not be an issue as it
conforms to an 'ianaparam' [iCAL].
Formal Definition: The property is defined by the following notation:
enable-param = "ENABLE" "=" boolean
;
boolean = ; As defined in [iCAL].
Example: The following is an example of this property for a "VAGENDA"
component:
TRIGGER;ENABLE=FALSE;RELATED=END:PT5M
7.3. ID Parameter
Parameter Name: ID
Purpose: When used in a "CMD" component, it provides a unique
identifier.
Value Type: TEXT
Conformance: This parameter can be specified in the "CMD" property.
Description: If more than one command is sent, then the "ID"
parameter is used to uniquely identify the command.
A CUA may add the "ID" parameter to any "CMD" property before
sending the command. There must not be more than one outstanding
command tagged with the same "ID" parameter value.
Formal Definition: The property is defined by the following notation:
id-param = ";" "ID" "=" unique-id
; The text value supplied is a unique value
; shared between the CUA and CS to uniquely
; identify the instance of command in the
; the current CUA session. The value has
; no meaning to other CUAs or other sessions.
;
unique-id = ; text
;
text = ; As defined in [iCAL].
Example: The following is an example of this parameter component:
Royer, et al. Experimental [Page 49]
^L
RFC 4324 Calendar Access Protocol December 2005
CMD;UD=some-unique-value:CREATE
7.4. LATENCY Parameter
Parameter Name: LATENCY
Purpose: This parameter indicates time in seconds for when a timeout
occurs.
Value Type: TEXT
Conformance: This property can be specified in the "CMD" property.
When present in a "CMD" property, the "LATENCY" parameter specifies
the time in seconds when the command timeout expires.
Formal Definition: The parameter is defined by the following
notation:
latency-param = ";" "LATENCY" "=" latency-sec
; The value supplied in the time in seconds.
; If 'latency-param' is supplied then
; 'action-param' MUST be supplied.
;
latency-sec = posint1
; Default is zero (0) meaning no timeout.
Example: The following is an example of this parameter:
CMD;LATENCY=10;ACTION=ASK:CREATE
7.5. LOCAL Parameter
Parameter Name: LOCAL
Purpose: Indicates if the named component should be exported to any
non-organizer calendar.
Value Type: BOOLEAN
Conformance: This parameter can be specified in the "SEQUENCE"
properties in a "VALARM" component.
Description: When a non-owner sends an [iTIP] "REQUEST" to a calendar
that object might contain a "VALARM" component. The owner may
wish to have local control over their own CUA and when or how
alarms are triggered.
Royer, et al. Experimental [Page 50]
^L
RFC 4324 Calendar Access Protocol December 2005
A CUA may add the "LOCAL" parameter to the "SEQUENCE" property
before booking the component. If the "LOCAL" parameter is set to
"TRUE", then the alarm MUST NOT be forwarded to any other
calendar. If set to "FALSE", or if the "LOCAL" parameter is not
in the "SEQUENCE" property, the alarm is global.
Formal Definition: The property is defined by the following notation:
local-param = "LOCAL" "=" boolean
Example: The following is an example of this parameter:
SEQUENCE;LOCAL=TRUE:4
7.6. LOCALIZE Parameter
Parameter Name: LOCALIZE
Purpose: If provided, specifies the desired language for error and
warning messages.
Value Type: TEXT
Conformance: This parameter can be specified in the "CMD" properties.
When the "LOCALIZE" parameter is supplied, its value MUST be one
of the values listed in the initial [BEEP] greeting 'localize'
attribute.
A CUA may add the "LOCALIZE" parameter to the "CMD" property to
specify the language of any error or warning messages.
Formal Definition: The property is defined by the following notation:
localize-param = ";" "LOCALIZE" "=" beep-localize
;
beep-localize = text ; As defined in [BEEP]
; The value supplied MUST be one value from
; the initial [BEEP] greeting 'localize'
; attribute, specifying the locale to use
; for error messages during
; this instance of the command.
Example: The following is an example of this parameter:
CMD;LOCALIZE=fr_CA:CREATE
Royer, et al. Experimental [Page 51]
^L
RFC 4324 Calendar Access Protocol December 2005
7.7. OPTIONS Parameter
Parameter Name: OPTIONS
Purpose: If provided the "OPTIONS" parameter specifies some "CMD"
property-specific options.
Value Type: TEXT
Conformance: This parameter can be specified in the "CMD" properties.
A CUA adds the "OPTIONS" parameter to the "CMD" property when the
command needs extra values.
Formal Definition: The property is defined by the following notation:
option-param = ";" "OPTIONS" "=" cmd-specific
;
cmd-specific = ; The value supplied is dependent on the
; CMD value. See the specific CMDs for the
; correct values to use for each CMD.
Example: The following is an example of this parameter:
CMD;OPTIONS=10:GENERATE-UID
8. New Properties
8.1. ALLOW-CONFLICT Property
Property Name: ALLOW-CONFLICT
Purpose: This property indicates whether or not the calendar and CS
supports component conflicts. That is, whether or not any of the
components in the calendar can overlap.
Value Type: BOOLEAN
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in "VAGENDA" and
"VCALSTORE" component.
Description: This property is used to indicate whether components may
conflict, that is, whether their expanded instances may share the
same time or overlap the same time periods. If it has a value of
Royer, et al. Experimental [Page 52]
^L
RFC 4324 Calendar Access Protocol December 2005
"TRUE", then conflicts are allowed. If "FALSE", the no two
components may conflict.
If "FALSE" in the "VCALSTORE" component, then all "VAGENDA"
component "ALLOW-CONFLICT" property values MUST be "FALSE" in the
CS.
Formal Definition: The property is defined by the following notation:
allow-conflict = "ALLOW-CONFLICT" other-params ":" boolean
CRLF
Example: The following is an example of this property for a "VAGENDA"
component:
ALLOW-CONFLICT:FALSE
8.2. ATT-COUNTER Property
Property Name: ATT-COUNTER
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property MUST be specified in an iCalendar object
that specifies a counter proposal to a group-scheduled calendar
entity. When storing a "METHOD" property with the "COUNTER"
method, there needs to be a way to remember who sent the COUNTER.
The ATT-COUNTER property MUST be added to all "COUNTER" [iTIP]
components by the CUA before storing in a CS.
Description: This property is used to identify the CAL-ADDRESS of the
entity that sent the "COUNTER" [iTIP] object.
Formal Definition: The property is defined by the following notation:
attcounter = "ATT-COUNTER" other-params ":" cal-address CRLF
Examples:
ATT-COUNTER:cap:example.com/Doug
ATT-COUNTER:mailto:Doug@Example.com
Royer, et al. Experimental [Page 53]
^L
RFC 4324 Calendar Access Protocol December 2005
8.3. CALID Property
Property Name: CALID
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in the "VAGENDA"
component.
Description: This property is used to specify a fully-qualified
CALID.
Formal Definition: The property is defined by the following notation:
calid = "CALID" other-params ":" relcalid CRLF
Example:
CALID:cap://cal.example.com/sdfifgty4321
8.4. CALMASTER Property
Property Name: CALMASTER
Purpose: The property specifies an e-mail address of a person
responsible for the calendar store.
Value Type: URI
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: The property can be specified in a "VCALSTORE"
component.
Description: The parameter value SHOULD be a MAILTO URI as defined in
[URL]. It MUST be a contact URI such as a MAILTO URI and not a home
page or file URI that describes how to contact the calmasters.
Formal Definition: The property is defined by the following notation:
calmaster = "CALMASTER" other-params ":" uri CRLF
;
uri = ; IANA registered uri as defined in [iCAL].
Example: The following is an example of this property:
Royer, et al. Experimental [Page 54]
^L
RFC 4324 Calendar Access Protocol December 2005
CALMASTER:mailto:administrator@example.com
8.5. CAP-VERSION Property
Property Name: CAP-VERSION
Purpose: This property specifies the version of CAP supported.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property is specified in the "VREPLY" component
that is sent in response to a "GET-CAPABILITY" command.
Description: This specifies the version of CAP that the endpoint
supports. The list is a comma-separated list of supported RFC
numbers. The list MUST contain at least 4324.
Formal Definition: The property is defined by the following notation:
cap-version = "CAP-VERSION" other-params ":" text CRLF
Example: The following are examples of this property:
CAP-VERSION:4324
8.6. CARID Property
Property Name: CARID
Purpose: This property specifies the identifier for an access right
component.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property MUST be specified once in a "VCAR"
component.
Description: This property is used in the "VCAR" component to specify
an identifier. A "CARID" property value is unique per container.
Formal Definition: The property is defined by the following notation:
Royer, et al. Experimental [Page 55]
^L
RFC 4324 Calendar Access Protocol December 2005
carid = "CARID" other-params ":" text CRLF
Example: The following are examples of this property:
CARID:xyzzy-007
CARID:User Rights
8.7. CAR-LEVEL Property
Property Name: CAR-LEVEL
Purpose: The property specifies the level of VCAR supported.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: The property can be specified in a "VREPLY" component
that is sent in response to a "GET-CAPABILITY" command.
Description: The value is one from a list of "CAR-NONE", "CAR-MIN",
or "CAR-FULL-1". If "CAR-FULL-1" is supplied, then "CAR-MIN" is
also available. A "CAR-MIN" implementation only supported the
"DEFAULT-VCARS" property values listed in the "VCALSTORE"
component, and a "CAR-MIN" implementation does not support the
creation or modification of "VCAR" components from the CUA.
Formal Definition: The property is defined by the following notation:
car-level = "CAR-LEVEL" ":" other-params ":"
car-level-values
car-level-values = ( "CAR-NONE" / "CAR-MIN" / "CAR-FULL-1"
/ other-levels )
other-levels = ; Any name published in an RFC for a
; "CAR-LEVEL" property value.
Example: The following is an example of this property:
CAR-LEVEL:CAR-FULL-1
8.8. COMPONENTS Property
Property Name: COMPONENTS
Royer, et al. Experimental [Page 56]
^L
RFC 4324 Calendar Access Protocol December 2005
Purpose: The property specifies a the list of components supported by
the endpoint.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: The property can be specified in a "VREPLY" component in
response to a "GET-CAPABILITY" command.
Description: A comma-separated list of components that are supported
by the endpoint. A component that is not in the list sent from
the endpoint is not supported by that endpoint. Sending an
unsupported component results in unpredictable results. This
includes any components inside of other components (VALARM for
example). The recommended list is
"VCALSTORE,VCALENDAR,VREPLY,VAGENDA,
VEVENT,VALARM,VTIMEZONE,VJOURNAL,VTODO,VALARM,
DAYLIGHT,STANDARD,VCAR,VRIGHT,VQUERY".
Formal Definition: The property is defined by the following notation:
components = "COMPONENTS" other-params ":" comp-list CRLF
;
; All of these MUST be supplied only once.
;
comp-list-req = "VCALSTORE" "," "VCALENDAR" "," "VTIMEZONE" ","
"VREPLY" "," "VAGENDA" "," "STANDARD" ","
"DAYLIGHT"
; At least one MUST be supplied. The same value
; MUST NOT occur more than once.
;
comp-list-min = ( "," "VEVENT")
/ ( "," "VTODO")
/ ( "," "VJOURNAL" )
; The same value MUST NOT occur
; more than once. If "VCAR" is supplied then
; "VRIGHT" must be supplied.
;
comp-list-opt = ( "," "VFREEBUSY" ) / ( "," "VALARM" )
/ ( "," "VCAR" ) / ( "," "VRIGHT" )
/ ( "," "VQUERY") / ( "," x-comp )
/ ( "," iana-comp )
;
comp-list = comp-list-req 1*3comp-list-min *(comp-list-opt)
Example: The following is an example of this property:
Royer, et al. Experimental [Page 57]
^L
RFC 4324 Calendar Access Protocol December 2005
COMPONENTS:VCALSTORE,VCALENDAR,VREPLY,VAGENDA,
VEVENT,VALARM,VTIMEZONE,VJOURNAL,VTODO,
DAYLIGHT,STANDARD,VFREEBUSY,VCAR,VRIGHT,VQUERY
8.9. CSID Property
Property Name: CSID
Purpose: The property specifies a globally unique identifier for the
calendar store.
Value Type: URI
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: The property can be specified in a "VCALSTORE"
component.
Description: The identifier MUST be globally unique. Each CS needs
its own unique identifier. The "CSID" property is the official
unique identifier for the CS. If the BEEP 'serverName' attribute
was supplied in the BEEP 'start' message, then the CSID will be
mapped to the virtual host name supplied, and the host name part
of the CSID MUST be the same as the 'serverName' value. This
allows one CS implementation to service multiple virtual hosts.
CS's are not required to support virtual hosting. If a CS does
not support virtual hosting, then it must ignore the BEEP
'serverName' attribute.
Formal Definition: The property is defined by the following notation:
csid = "CSID" other-params ":" capurl CRLF
Example: The following is an example of this property:
CSID:cap://calendar.example.com
8.10. DECREED Property
Property Name: DECREED
Purpose: This property specifies if an access right calendar
component is decreed or not.
Value Type: BOOLEAN
Royer, et al. Experimental [Page 58]
^L
RFC 4324 Calendar Access Protocol December 2005
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property MAY be specified once in a "VCAR"
component.
Description: This property is used in the "VCAR" component to specify
whether the component is decreed or not. If the "DECREED"
property value is "TRUE" then the CUA will be unable to change the
contents of the "VCAR" component and any attempt will fail with an
error.
Formal Definition: The property is defined by the following notation:
decreed = "DECREED" other-params ":" boolean CRLF
Example: The following is an example of this property:
DECREED:TRUE
8.11. DEFAULT-CHARSET Property
Property Name: DEFAULT-CHARSET
Purpose: This property indicates the default charset.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in "VAGENDA" and
"VCALSTORE" calendar component.
Description: In a "VAGENDA" component this property is used to
indicate the charset of calendar. If not specified, the default
is the first value in the "VCALSTORE" components "DEFAULT-CHARSET"
property value list. The value MUST be an IANA registered
character set as defined in [CHARREG].
In a "VCALSTORE" component it is a comma-separated list of charsets
supported by the CS. The first entry is the default entry for all
newly created "VAGENDA" components. The "UTF-8" value MUST be in
the "VCALSTORE" component "DEFAULT-CHARSET" property list. All
compliant
CAP implementations (CS and CUA) MUST support at least the "UTF-8"
charset.
Royer, et al. Experimental [Page 59]
^L
RFC 4324 Calendar Access Protocol December 2005
If a charset name contains a comma (,), that comma must be
backslash-escaped in the value.
Formal Definition: The property is defined by the following notation:
default-charset = "DEFAULT-CHARSET" other-params ":" text
*( "," text) CRLF
Example: The following is an example of this property for a "VAGENDA"
component:
DEFAULT-CHARSET:Shift_JIS,UTF-8
8.12. DEFAULT-LOCALE Property
Property Name: DEFAULT-LOCALE
Purpose: This property specifies the default language for text
values.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in "VAGENDA" and
"VCALSTORE" components.
Description: In a "VAGENDA" component, the "DEFAULT-LOCALE" property
is used to indicate the locale of the calendar. The full locale
SHOULD be used. The default and minimum locale is POSIX (aka the
'C' locale).
In a "VCALSTORE" component, it is a comma-separated list of
locales supported by the CS. The first value in the list is the
default for all newly created VAGENDAs. "POSIX" MUST be in the
list.
Formal Definition: The property is defined by the following notation:
default-locale = "DEFAULT-LOCALE" other-params ":" language
*( "," language) CRLF
;
language = ; Text identifying a locale, as defined in [CHARPOL]
Example: The following is an example of this property:
DEFAULT-LOCALE:en-US.iso-8859-1,POSIX
Royer, et al. Experimental [Page 60]
^L
RFC 4324 Calendar Access Protocol December 2005
8.13. DEFAULT-TZID Property
Property Name: DEFAULT-TZID
Purpose: This property specifies the text value that specifies the
time zones.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property may be specified once in a "VAGENDA" and
"VCALSTORE" components.
Description: A multi-valued property that lists the known time zones.
The first is the default. Here "TZID" property values are the
same as the "TZID" property defined in [iCAL].
If used in a "VCALSTORE" component, it is a comma-separated list
of TZIDs known to the CS. The entry is used as the default TZID
list for all newly created calendars. The list MUST contain at
least "UTC". A "VCALSTORE" components MUST contain one
"VTIMEZONE" component for each value in the "DEFAULT-TZID"
property value.
If used in a "VAGENDA" component, it is a comma-separated list of
"TZID" property values naming the time zones known to the
calendar. The first time zone in the list is the default and is
used as the localtime for objects that contain a date or date-time
value without a time zone. All "VAGENDA" components MUST have one
"VTIMEZONE" component contained for each value in the "DEFAULT-
TZID" property value.
If a "TZID" property value contains a comma (,), the comma must be
backslash-escaped.
Formal Definition: This property is defined by the following
notation:
default-tzid = "DEFAULT-TZID" other-params
":" [tzidprefix] text
*("," [tzidprefix] text) CRLF
;
txidprefix = ; As defined in [iCAL].
Example: The following is an example of this property:
Royer, et al. Experimental [Page 61]
^L
RFC 4324 Calendar Access Protocol December 2005
DEFAULT-TZID:US/Mountain,UTC
8.14. DEFAULT-VCARS Property
Property Name: DEFAULT-VCARS
Purpose: This property is used to specify the "CARID" property ids of
the default "VCAR" components for newly created "VAGENDA"
components.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property MUST be specified in "VCALSTORE" calendar
component and MUST at least specify the following values:
"READBUSYTIMEINFO", "REQUESTONLY", "UPDATEPARTSTATUS", and
"DEFAULTOWNER".
Description: This property is used in the "VCALSTORE" component to
specify the "CARID" value of the "VCAR" components that MUST be
copied into now "VAGENDA" components at creation time by the CS.
All "DEFAULT-VCAR" values must have "VCARS" components stored in
the "VCALSTORE".
Formal Definition: The property is defined by the following notation:
defautl-vcars = "DEFAULT-VCARS" other-params ":" text
*( "," text ) CRLF
Example: The following is an example of this property:
DEFAULT-VCARS:READBUSYTIMEINFO,REQUESTONLY,
UPDATEPARTSTATUS,DEFAULTOWNER
8.15. DENY Property
Property Name: DENY
Purpose: This property identifies the UPN(s) being denied access in
the "VRIGHT" component.
Value Type: UPN-FILTER
Property Parameters: Non-standard property parameters can be
specified on this property.
Royer, et al. Experimental [Page 62]
^L
RFC 4324 Calendar Access Protocol December 2005
Conformance: This property can be specified in "VRIGHT" components.
Description: This property is used in the "VRIGHT" component to
define the CU or UG being denied access.
Formal Definition: The property is defined by the following notation:
deny = "DENY" other-params ":" upn-filter CRLF
Example: The following are examples of this property:
DENY:*
DENY:bob@example.com
8.16. EXPAND property
Property Name: EXPAND
Purpose: This property is used to notify the CS whether to expand any
component with recurrence rules into multiple instances, in a
query reply.
Value Type: BOOLEAN
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in "VQUERY" components.
Description: If a CUA wishes to see all of the instances of a
recurring component, the CUA sets EXPAND=TRUE in the "VQUERY"
component. If not specified, the default is "FALSE". Note that
if the CS has its "RECUR-EXPAND" CS property value set to "FALSE",
then the "EXPAND" property will be ignored and the result will be
as if the "EXPAND" value was set to "FALSE". The results will be
bounded by any date range or other limits in the query.
Formal Definition: The property is defined by the following notation:
expand = "EXPAND" other-params ":" ("TRUE" / "FALSE") CRLF
Example: The following are examples of this property:
EXPAND:FALSE
EXPAND:TRUE
Royer, et al. Experimental [Page 63]
^L
RFC 4324 Calendar Access Protocol December 2005
8.17. GRANT Property
Property Name: GRANT
Purpose: This property identifies the UPN(s) being granted access in
the "VRIGHT" component.
Value Type: UPN-FILTER
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in "VRIGHT" calendar
components.
Description: This property is used in the "VRIGHT" component to
specify the CU or UG being granted access.
Formal Definition: The property is defined by the following notation:
grant = "GRANT" other-params ":" upn-filter CRLF
Example: The following are examples of this property:
GRANT:*
GRANT:bob@example.com
8.18. ITIP-VERSION Property
Property Name: ITIP-VERSION
Purpose: This property specifies the version of ITIP supported.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property is specified in the "VREPLY" component
that is sent in response to a "GET-CAPABILITY" command.
Description: This specifies the version of ITIP that the endpoint
supports. The list is a comma-separated list of supported RFC
numbers. The list MUST contain at least 2446, which is [iTIP]
Formal Definition: The property is defined by the following notation:
Royer, et al. Experimental [Page 64]
^L
RFC 4324 Calendar Access Protocol December 2005
itip-version = "ITIP-VERSION" other-params ":" text CRLF
Example: The following are examples of this property:
ITIP-VERSION:2446
8.19. MAX-COMP-SIZE Property
Property Name: MAX-COMP-SIZE
Purpose: This property specifies the largest size of any object
accepted.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property is specified in the "VREPLY" component
that is sent in response to a "GET-CAPABILITY" command.
Description: A positive integer value that specifies the size of the
largest iCalendar object that can be accepted in octets. Objects
larger than this will be rejected. A value of zero (0) means no
limit. This is also the maximum value of any [BEEP] payload that
will be accepted or sent.
Formal Definition: The property is defined by the following notation:
max-comp-size = "MAX-COMP-SIZE" other-params ":" posint0 CRLF
Example: The following are examples of this property:
MAX-COMP-SIZE:1024
8.20. MAXDATE Property
Property Name: MAXDATE
Purpose: This property specifies the date/time in the future, beyond
which the CS or CUA cannot represent.
Value Type: DATE-TIME
Property Parameters: Non-standard property parameters can be
specified on this property.
Royer, et al. Experimental [Page 65]
^L
RFC 4324 Calendar Access Protocol December 2005
Conformance: The property can be specified in the "VCALSTORE"
component.
Description: The date and time MUST be a UTC value and end with 'Z'.
Formal Definition: The property is defined by the following notation:
maxdate = "MAXDATE" other-params ":" date-time CRLF
Example: The following is an example of this property:
MAXDATE:20990101T000000Z
8.21. MINDATE Property
Property Name: MINDATE
Purpose: This property specifies the date/time in the past, prior to
which the server cannot represent.
Value Type: DATE-TIME
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: The property can be specified in the "VCALSTORE"
component.
Description: The date and time MUST be a UTC value and end with 'Z'.
Formal Definition: The property is defined by the following notation:
mindate = "MINDATE" other-params ":" date-time CRLF
date-time = ; As defined in [iCAL].
Example: The following is an example of this property:
MINDATE:19710101T000000Z
8.22. MULTIPART Property
Property Name: MULTIPART
Purpose: This property provides a comma-separated list of supported
MIME multipart types supported by the sender.
Royer, et al. Experimental [Page 66]
^L
RFC 4324 Calendar Access Protocol December 2005
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property is specified in the "VREPLY" component
that is sent in response to a "GET-CAPABILITY" command.
Description: This property is used in the in the "GET-CAPABILITY"
command reply to indicate the MIME multipart types supported. A
CS and CUA SHOULD support all registered MIME multipart types.
Formal Definition: The property is defined by the following notation:
multipart = "MULTIPART" other-params ":" text *( "," text) CRLF
Example: The following is an example of this property:
MULTIPART:related,alternate,mixed
8.23. NAME Property
Property Name: NAME
Purpose: This property provides a localizable display name for a
component.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in a component.
Description: This property is used in the component to specify a
localizable display name. If more than one "NAME" properties are
in a component, then they MUST have unique "LANG" parameters. If
the "LANG" parameter is not supplied, then it defaults to the
"VAGENDA" component's "DEFAULT-LOCALE" first value. If the
component is a "VAGENDA", then the default value is the "VAGENDA"s
component's "DEFAULT-LOCALE" first value. A "VCALSTORE"
component's "DEFAULT-LOCALE" first value is the default if the
component is stored at the "VCALSTORE" level.
Formal Definition: The property is defined by the following notation:
Royer, et al. Experimental [Page 67]
^L
RFC 4324 Calendar Access Protocol December 2005
name = "NAME" nameparam ":" text CRLF
;
nameparam = other-params [ ";" languageparam ] other-params
;
languageparam = ; As defined in [iCAL].
Example: The following is an example of this property:
NAME:Restrict Guests From Creating VALARMs On VEVENTs
8.24. OWNER Property
Property Name: OWNER
Purpose: The property specifies an owner of the component.
Value Type: UPN
Property Parameters: Non-standard, alternate text representation and
language property parameters can be specified on this property.
Conformance: The property MUST be specified in a "VAGENDA" component.
Description: A multi-instanced property indicating the calendar
owner.
Formal Definition: The property is defined by the following notation:
owner = "OWNER" other-params ":" upn CRLF
Example: The following is an example of this property:
OWNER:jsmith@example.com
OWNER:jdough@example.com
8.25. PERMISSION Property
Property Name: PERMISSION
Purpose: This property defines a permission that is granted or denied
in a "VRIGHT" component.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in "VRIGHT" components.
Royer, et al. Experimental [Page 68]
^L
RFC 4324 Calendar Access Protocol December 2005
Description: This property is used in the "VRIGHT" component to
define a permission that is granted or denied.
Formal Definition: The property is defined by the following notation:
permission = "PERMISSION" other-params ":" permvalue CRLF
;
permvalue = ( "SEARCH" / "CREATE" / "DELETE"
/ "MODIFY" / "MOVE" / all
/ iana-cmd / x-cmd )
;
all = "*"
;
iana-cmd = ; Any command registered by IANA directly or
; included in an RFC that may be applied as
; a command.
;
x-cmd = ; Any experimental command that starts with
; "x-" or "X-".
Example: The following is an example of this property:
PERMISSION:SEARCH
8.26. QUERY property
Property Name: QUERY
Purpose: Specifies the query for the component.
Value Type: CAL-QUERY
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in "VQUERY" components.
Description: A "QUERY" is used to specify the "CAL-QUERY" (Section
6.1.1 for the query.
Formal Definition: The property is defined by the following notation:
query = "QUERY" other-params ":" cal-query CRLF
Example: The following is an example of this property:
QUERY:SELECT * FROM VEVENT
Royer, et al. Experimental [Page 69]
^L
RFC 4324 Calendar Access Protocol December 2005
8.27. QUERYID property
Property Name: QUERYID
Purpose: Specifies a unique ID for a query in the targeted container.
Value Type: TEXT
Property Parameters: Non-standard property parameters are specified
on this property.
Conformance: This property can be specified in "VQUERY" components.
Description: A "QUERYID" property is used to specify the unique id
for a query. A "QUERYID" property value is unique per container.
Formal Definition: The property is defined by the following notation:
queryid = "QUERYID" other-params ":" text CRLF
Example: The following are examples of this property:
QUERYID:Any Text String
QUERYID:fetchUnProcessed
8.28. QUERY-LEVEL Property
Property Name: QUERY-LEVEL
Purpose: This property specifies the level of query supported.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: The property can be specified in the "VREPLY" component
in response to a "GET-CAPABILITY" command.
Description: Indicates level of query support. CAL-QL-NONE is for
CS's that allow ITIP methods only to be deposited and nothing
else.
Formal Definition: The property is defined by the following notation:
query-level = "QUERY-LEVEL" other-params
":" ( "CAL-QL-1" / "CAL-QL-NONE") CRLF
Royer, et al. Experimental [Page 70]
^L
RFC 4324 Calendar Access Protocol December 2005
Example: The following is an example of this property:
QUERY-LEVEL:CAL-QL-1
8.29. RECUR-ACCEPTED Property
Property Name: RECUR-ACCEPTED
Purpose: This property specifies if the endpoint supports recurring
instances.
Value Type: BOOLEAN
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: The property can be specified in the "VREPLY" component
in response to a "GET-CAPABILITY" command.
Description: Indicates if recurrence rules are supported. If "FALSE"
then the endpoint cannot process any kind of recurring rules.
Formal Definition: The property is defined by the following notation:
recur-accepted = "RECUR-ACCEPTED" other-params ":" boolean CRLF
Example: The following is an example of this property:
RECUR-ACCEPTED:TRUE
RECUR-ACCEPTED:FALSE
8.30. RECUR-LIMIT Property
Property Name: RECUR-LIMIT
Purpose: This property specifies the maximum number of instances the
endpoint will expand instances at query or storage time.
Value Type: INTEGER
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: The property can be specified in the "VREPLY" component
in response to a "GET-CAPABILITY" command.
Description: For implementations that have the "STORES-EXPANDED"
value set to "TRUE", this value specifies the maximum number of
Royer, et al. Experimental [Page 71]
^L
RFC 4324 Calendar Access Protocol December 2005
instances that will be stored and fetched. For all
implementations, this is the maximum number of instances that will
be returned when the "EXPAND" parameter is specified as "TRUE" and
the results contain an infinite or large number of recurring
instances.
Formal Definition: The property is defined by the following notation:
recur-limit = "RECUR-LIMIT" other-params ":" posint1 CRLF
Example: The following is an example of this property:
RECUR-LIMIT:1000
8.31. RECUR-EXPAND Property
Property Name: RECUR-EXPAND
Purpose: This property specifies if the endpoint can expand
recurrences into multiple objects.
Value Type: BOOLEAN
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: The property can be specified in the "VREPLY" component
in response to a "GET-CAPABILITY" command.
Description: If "TRUE", then the endpoint can expand an object into
multiple instances as defined by its recurrence rules when the
"EXPAND" property is supplied. If "FALSE", then the endpoint
ignores the "EXPAND" property.
Formal Definition: The property is defined by the following notation:
recur-expand = "RECUR-EXPAND" other-params ":" boolean CRLF
Example: The following is an example of this property:
RECUR-EXPAND:TRUE
RECUR-EXPAND:FALSE
8.32. RESTRICTION Property
Property Name: RESTRICTION
Royer, et al. Experimental [Page 72]
^L
RFC 4324 Calendar Access Protocol December 2005
Purpose: This property defines restrictions on the result value of
new or existing components.
Value Type: CAL-QUERY
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in "VRIGHT" components,
but only when the "PERMISSION" property is set to "CREATE",
"MODIFY", or "*" property value.
Description: This property is used in the "VRIGHT" component to
define restrictions on the components that can be written (i.e.,
by using the "CREATE" or "MOVE" commands) as well as on the values
that may take existent calendar store properties, calendar
properties, components, and properties (i.e., by using the
"MODIFY" command). Accepted values MUST match any specified
"RESTRICTION" property values.
Formal Definition: The property is defined by the following notation:
restriction = "RESTRICTION" other-params ":" cal-query CRLF
Example: The following are examples of this property:
RESTRICTION:SELECT * FROM VCALENDAR WHERE METHOD = 'REQUEST'
RESTRICTION:SELECT * FROM VEVENT WHERE
SELF() IN ORGANIZER
RESTRICTION:SELECT * FROM VEVENT WHERE 'BUSINESS' IN
CATEGORIES
8.33. SCOPE Property
Property Name: SCOPE
Purpose: This property identifies the objects in the CS to which the
access rights apply.
Value Type: CAL-QUERY
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in "VRIGHT" components.
Royer, et al. Experimental [Page 73]
^L
RFC 4324 Calendar Access Protocol December 2005
Description: This property is used in the "VRIGHT" component to
define the set of objects, subject to the access right being
defined.
Formal Definition: The property is defined by the following notation:
scope = "SCOPE" other-params ":" cal-query CRLF
Example: The following is an example of this property:
SCOPE:SELECT DTSTART,DTEND FROM VEVENT WHERE CLASS = 'PUBLIC'
8.34. STORES-EXPANDED Property
Property Name: STORES-EXPANDED
Purpose: This property specifies if the sending endpoint expands
recurrence rules prior to storing them into the CS.
Value Type: BOOLEAN
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in a "VREPLY" component
in response to a "GET-CAPABILITY" command.
Description: If the value is "TRUE", then the endpoint expands
recurrence rules and stores the results into the CS. If this is
"TRUE", then the "RECUR-LIMIT" property is significant because an
infinitely-recurring appointment will store no more than "RECUR-
LIMIT" property values into the CS and all other instances will be
lost.
Formal Definition: The property is specified by the following
notation:
stores-expanded = "STORES-EXPANDED" other-params ":" boolean
CRLF
The following is an example of this property:
STORES-EXPANDED:TRUE
STORES-EXPANDED:FALSE
8.35. TARGET Property
Property Name: TARGET
Royer, et al. Experimental [Page 74]
^L
RFC 4324 Calendar Access Protocol December 2005
Purpose: This property defines the container that the issued command
will act upon. Its value is a capurl, as defined in Section 5.
Value Type: URI
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in a command component.
Description: This property value is used to specify the container
that the command will effect. When used in a command, the command
will be performed on the container that has a capurl matching the
value.
Formal Definition: The property is specified by the following
notation:
target = "TARGET" other-params ":" ( capurl / relcalid ) CRLF
Example: The following is an example of this property:
TARGET:cap://mycal.example.com
TARGET:SomeRelCalid
8.36. TRANSP Property
Property Name: TRANSP
Purpose: This property defines whether a component is transparent or
not to busy-time searches. This is a modification to [iCAL]
"TRANSP" property, in that it adds some values.
Value Type: TEXT
Property Parameters: Non-standard property parameters can be
specified on this property.
Conformance: This property can be specified in a component.
Description: Time Transparency is the characteristic of an object
that determines whether it appears to consume time on a calendar.
Objects that consume actual time for the individual or resource
associated with the calendar SHOULD be recorded as "OPAQUE",
allowing them to be detected by free-busy time searches. Other
objects, which do not take up the individual's (or resource's)
time SHOULD be recorded as "TRANSPARENT", making them invisible to
free/busy time searches.
Royer, et al. Experimental [Page 75]
^L
RFC 4324 Calendar Access Protocol December 2005
Formal Definition: The property is specified by the following
notation:
transp = "TRANSP" other-params ":" transvalue CRLF
;
transvalue = "OPAQUE" ;Blocks or opaque on busy time searches.
/ "TRANSPARENT"
; Transparent on busy time searches.
/ "TRANSPARENT-NOCONFLICT"
; Transparent on busy time searches,
; and no other OPAQUE or OPAQUE-
; NOCONFLICT objects can overlap it.
;
/ "OPAQUE-NOCONFLICT"
; Opaque on busy time searches, and
; no other OPAQUE or OPAQUE-NOCONFLICT
; objects can overlap it.
;
; Default value is OPAQUE
The following is an example of this property for an object that is
opaque or blocks on free/busy time searches, and no other object
can overlap it:
TRANSP:OPAQUE-NOCONFLICT
9. New Components
9.1. VAGENDA Component
Component Name: VAGENDA
Purpose: Provide a grouping of properties that defines an agenda.
Formal Definition: There are two formats of the "VAGENDA" component.
(1) When it is being created, and (2) how it exists in the
"VCALSTORE" component.
A "VAGENDA" component in a "VCALSTORE" component is defined by the
following notes and ABNF notation:
CALSCALE - The value MUST be from the "VCALSTORE" "CALSCALE"
property list. The default is the first entry in the
VCALSTORE CALSCALE list.
CREATED - The timestamp of the calendar's create date. This
Royer, et al. Experimental [Page 76]
^L
RFC 4324 Calendar Access Protocol December 2005
is a READ ONLY property in a "VAGENDA".
LAST-MODIFIED - The timestamp of any change to the "VAGENDA"
properties or when any component was last created, modified,
or deleted.
agenda = "BEGIN" ":" "VAGENDA" CRLF
agendaprop
*(icalobject) ; as defined in [iCAL]
"END" ":" "VAGENDA" CRLF
agendaprop = *(
; The following MUST occur exactly once.
;
allow-conflict / relcalid / calscale / created
/ default-charset / default-locale
/ default-tzid / last-mod
;
; The following MUST occur at least once.
; and the value MUST NOT be empty.
;
/ owner
;
; The following are optional,
; and MAY occur more than once.
;
/ name / related-to / other-props / x-comp
)
icalobject = ; As defined in [iCAL].
;
created = ; As defined in [iCAL].
;
related-to = ; As defined in [iCAL].
When creating a VAGENDA, use the following notation:
agendac = "BEGIN" ":" "VAGENDA" CRLF
agendacprop
*(icalobject) ; as defined in [iCAL].
"END" ":" "VAGENDA" CRLF
agendacprop = *(
; The following MUST occur exactly once.
;
allow-conflict / relcalid / calscale
/ default-charset / default-locale
/ default-tzid
Royer, et al. Experimental [Page 77]
^L
RFC 4324 Calendar Access Protocol December 2005
;
; The following MUST occur at least once.
; and the value MUST NOT be empty.
;
/ owner
;
; The following are optional,
; and MAY occur more than once.
;
/ name / related-to / other-props / x-comp
)
To fetch all of the properties from the targeted "VAGENDA" component
but do not fetch any components, use:
SELECT * FROM VAGENDA
To fetch all of the properties from the targeted VAGENDA and all of
the contained components, use the special '*.*' value:
SELECT *.* FROM VAGENDA
9.2. VCALSTORE Component
Component Name: VCALSTORE
Purpose: Provide a grouping of properties that defines a calendar
store.
Formal Definition: A "VCALSTORE" component is defined by the
following table and ABNF notation. The creation of a "VCALSTORE"
component is an administrative task and not part of the CAP
protocol.
The following are notes to some of the properties in the
"VCALSTORE" component.
CALSCALE - A comma-separated list of CALSCALEs supported by
this CS. All "VAGENDA" component calendar CALSCALE
properties MUST be from this list. This list MUST contain
at least "GREGORIAN". The default for newly created
"VAGENDA" components is the first entry.
RELATED-TO - This is a multiple-instance property. There MUST
be a "RELATED-TO" property for each of the "VAGENDA"
components contained in the "VCALSTORE" component, each with
the "RELTYPE" parameter value set to "CHILD". Other
"RELATED-TO" properties may be included.
Royer, et al. Experimental [Page 78]
^L
RFC 4324 Calendar Access Protocol December 2005
CREATED - The timestamp of the CS creation time. This is a
READ ONLY property.
CSID - The CSID of this calendar store. This MUST NOT be
empty. How this property is set in the VCALSTORE is an
administrative or implementation-specific issue and is not
covered in CAP. This is a READ ONLY property. A suggested
value is the fully-qualified host name or a fully-qualified
virtual host name supported by the system.
LAST-MODIFIED - The timestamp when the Properties of the
"VCALSTORE" component were last updated or calendars were
created or deleted. This is a READ ONLY PROPERTY.
calstorec = "BEGIN" ":" "VCALSTORE" CRLF
calstoreprop
*(vagendac)
"END" ":" "VCALSTORE" CRLF
;
calstoreprop = *(
; the following MUST occur exactly once
;
allow-conflict / calscale / calmaster
/ created / csid / default-charset
/ default-locale / default-vcars
/ default-tzid / last-mod / maxdate / mindate
;
; the following are optional,
; and MAY occur more than once
;
/ name / related-to / other-props / x-comp
)
;
vagendac = ; As defined in [iCAL].
;
last-mod = ; As defined in [iCAL].
To fetch all of the properties from the targeted VCALSTORE and not
fetch the calendars that it contains, use:
SELECT * FROM VCALSTORE
To fetch all of the properties from the targeted "VCALSTORE"
component and all of the contained calendars and all of those
calendars' contained properties and components, use the special '*.*'
value:
Royer, et al. Experimental [Page 79]
^L
RFC 4324 Calendar Access Protocol December 2005
SELECT *.* FROM VCALSTORE
9.3. VCAR Component
Component Name: VCAR
Purpose: Provide a grouping of calendar access rights.
Formal Definition: A "VCAR" component is defined by the following
notation:
carc = "BEGIN" ":" "VCAR" CRLF
carprop 1*rightc
"END" ":" "VCAR" CRLF
;
carprop = 1*(
;
; 'carid' is REQUIRED,
; but MUST NOT occur more than once
;
carid /
;
; the following are OPTIONAL,
; and MAY occur more than once
;
name / decreed / other-props
)
Description: A "VCAR" component is a grouping of properties, and
"VRIGHT" components, that represents access rights granted or
denied to UPNs.
The "CARID" property specifies the local identifier for the "VCAR"
component. The "NAME" property specifies a localizable display
name.
Example: In the following example, the UPN "foo@example.com" is given
search access to the "DTSTART" and "DTEND" VEVENT properties. No
other access is specified:
Royer, et al. Experimental [Page 80]
^L
RFC 4324 Calendar Access Protocol December 2005
BEGIN:VCAR
CARID:View Start and End Times
NAME:View Start and End Times
BEGIN:VRIGHT
GRANT:foo@example.com
PERMISSION:SEARCH
SCOPE:SELECT DTSTART,DTEND FROM VEVENT
END:VRIGHT
END:VCAR
In this example, all UPNs are given search access to "DTSTART" and
"DTEND" properties of VEVENT components. "All CUs and UGs" are
specified by the UPN value "*". Note that this enumerated UPN
value is not in quotes:
BEGIN:VCAR
CARID:ViewStartEnd2
NAME:View Start and End Times 2
BEGIN:VRIGHT
GRANT:*
PERMISSION:SEARCH
SCOPE:SELECT DTSTART,DTEND FROM VEVENT
END:VRIGHT
END:VCAR
In these examples, full calendar access rights are given to the
CAL-OWNERS(), and a hypothetical administrator is given access
rights to specify calendar access rights. If no other rights are
specified, only these two UPNs can specify calendar access rights:
BEGIN:VCAR
CARID:some-id-3
NAME:Only OWNER or ADMIN Settable VCARs
BEGIN:VRIGHT
GRANT:CAL-OWNERS()
PERMISSION:*
SCOPE:SELECT * FROM VAGENDA
END:VRIGHT
BEGIN:VRIGHT
GRANT:cal-admin@example.com
PERMISSION:*
SCOPE:SELECT * FROM VCAR
RESTRICTION:SELECT * FROM VCAR
END:VRIGHT
END:VCAR
In this example, rights to write, search, modify or delete
calendar access are denied to all UPNs. This example would
Royer, et al. Experimental [Page 81]
^L
RFC 4324 Calendar Access Protocol December 2005
disable providing different access rights to the calendar store or
calendar. This calendar access right should be specified with
great care, as it removes the ability to change calendar access;
even for the owner or administrator. It could be used by small
devices that do not support changing any VCAR:
BEGIN:VCAR
CARID:VeryRestrictiveVCAR-2
NAME:No CAR At All
BEGIN:VRIGHT
DENY:*
PERMISSION:*
SCOPE:SELECT * FROM VCAR
END:VRIGHT
END:VCAR
9.4. VRIGHT Component
Component Name: "VRIGHT"
Purpose: Provide a grouping of properties that describe an access
right (granted or denied).
Formal Definition: A "VRIGHT" component is defined by the following
notation:
rightc = "BEGIN" ":" "VRIGHT" CRLF
rightprop
"END" ":" "VRIGHT" CRLF
;
rightprop = 2*(
;
; either 'grant' or 'deny' MUST
; occur at least once
; and MAY occur more than once
;
grant / deny /
;
; 'permission' MUST occur at least once
; and MAY occur more than once
;
permission /
;
; the following are optional,
; and MAY occur more than once
;
scope / restriction / other-props
)
Royer, et al. Experimental [Page 82]
^L
RFC 4324 Calendar Access Protocol December 2005
Description: A "VRIGHT" component is a grouping of calendar access
right properties.
The "GRANT" property specifies the UPN that is being granted
access. The "DENY" property specifies the UPN that is being
denied access. The "PERMISSION" property specifies the actual
permission being set. The "SCOPE" property identifies the
calendar store properties, calendar properties, components, or
properties to which the access right applies. The "RESTRICTION"
property specifies restrictions on commands and results. If the
command does not match the restrictions, or if the results of the
command do not match the restrictions, then it is an access
violation.
9.5. VREPLY Component
Component Name: "VREPLY"
Purpose: Provide a grouping of arbitrary properties and components
that are the data set result from an issued command.
Formal Definition: A "VREPLY" component is defined by the following
notation:
replyc = "BEGIN" ":" "VREPLY" CRLF
any-prop-or-comp
"END" ":" "VREPLY" CRLF
;
any-prop-or-comp = ; Zero or more iana or experimental
; properties and components, in any order.
Description: Provide a grouping of arbitrary properties and
components that are the data set result from an issued command.
A query can return a predictable set of arbitrary properties and
components. This component is used by query and other commands to
return data that does not fit into any other component. It may
contain any valid property or component, even if they are not
registered.
9.6. VQUERY Component
Component Name: VQUERY
Purpose: A component describes a set of objects to be acted upon.
Royer, et al. Experimental [Page 83]
^L
RFC 4324 Calendar Access Protocol December 2005
Formal Definition: A "VQUERY" component is defined by the following
notation:
queryc = "BEGIN" ":" "VQUERY" CRLF
queryprop
"END" ":" "VCAR" CRLF
;
queryprop = 1*(
;
; 'queryid' is OPTIONAL but MUST NOT occur
; more than once. If the "TARGET" property
; is supplied then the "QUERYID" property
; MUST be supplied.
;
queryid / target
;
; 'expand' is OPTIONAL but MUST NOT occur
; more than once.
;
expand
;
; the following are OPTIONAL, and MAY occur
; more than once
;
/ name / other-props
;
; the following MUST occur at least once if
; queryid is not supplied.
;
/ query
)
Description: A "VQUERY" contains properties that describe which
properties and components the CS is requested to act upon.
The "QUERYID" property specifies the local identifier for a
"VQUERY" component.
For a search, if the "TARGET" property is supplied in a "VQUERY"
component, then the CS is to search for the query in the CALID
supplied by the "TARGET" property value.
For a create, the "TARGET" property MUST NOT be supplied because
the destination container is already supplied in the "TARGET"
property of the "VCALENDAR" component.
Examples: see Section 6.1.1.
Royer, et al. Experimental [Page 84]
^L
RFC 4324 Calendar Access Protocol December 2005
10. Commands and Responses
CAP commands and responses are described in this section.
10.1. CAP Commands (CMD)
All commands are sent using the CMD property.
Property Name: CMD
Purpose: This property defines the command to be sent.
Value Type: TEXT
Property Parameters: Non-standard, id, localize, latency, action or
options.
Conformance: This property is the method used to specify the commands
to a CS; it can exist in any object sent to the CS.
Description: All of the commands to the CS are supplied in this
property. The "OPTIONS" parameter is overloaded and its meaning
is dependent on the CMD value supplied.
Formal Definition: The property is defined by the following
notation:
cmd = "CMD" (
abort-cmd
/ continue-cmd
/ create-cmd
/ delete-cmd
/ generate-uid-cmd
/ get-capability-cmd
/ identify-cmd
/ modify-cmd
/ move-cmd
/ reply-cmd
/ search-cmd
/ set-locale-cmd
/ iana-cmd
/ x-cmd
) CRLF
;
option-value = "OPTION" "=" paramtext
;
paramtext ; As defined in [iCAL].
Royer, et al. Experimental [Page 85]
^L
RFC 4324 Calendar Access Protocol December 2005
Calendaring commands allow a CUA to directly manipulate a calendar.
Calendar access rights can be granted or denied for any commands.
10.1.1. Bounded Latency
A CAP command can have an associated maximum latency time by
specifying the "LATENCY" parameter. If the command is unable to be
completed in the specified amount of time (as specified by the
"LATENCY" parameter value with an "ACTION" parameter set to the "ASK"
value), then a "TIMEOUT" command MUST be sent on the same channel".
The reply MUST be a an "ABORT" or a "CONTINUE" command. If the CUA
initiated the original command, then the CS would issue the "TIMEOUT"
command and the CUA would then have to issue an "ABORT" or "CONTINUE"
command. If the CS initiated the original command then the CUA would
have to issue the "TIMEOUT" and the CS would send the "ABORT" or
"CONTINUE".
Upon receiving an "ABORT" command, the command must then be
terminated. Only the "ABORT", "TIMEOUT", "REPLY, and "CONTINUE"
commands cannot be aborted. The "ABORT", "TIMEOUT", and "REPLY"
commands MUST NOT have latency set.
Upon receiving a "CONTINUE" command the work continues as if it had
not been delayed or stopped. Note that a new latency time MAY be
included in a "CONTINUE" command indicating to continue the original
command until the "LATENCY" parameter value expires or the results of
the original command can be returned.
Both the "LATENCY" parameter and the "ACTION" parameter MUST be
supplied to any "CMD" property, or nether can be added to the "CMD"
property. The "LATENCY" parameter MUST be set to the maximum latency
time in seconds. The "ACTION" parameter accepts the following
values: "ASK" and "ABORT" parameters.
If the maximum latency time is exceeded and the "ACTION" parameter is
set to the "ASK" value, then "TIMEOUT" command MUST be sent.
Otherwise, if the "ACTION" parameter is set to the "ABORT" value,
then the command MUST be terminated and return a REQUEST-STATUS code
of 2.0.3 for the original command.
If a CS can both start sending the reply to a command and guarantee
that all of the results can be sent from a command (short of
something like network or power failure) prior to the "LATENCY"
timeout value, then the "LATENCY" time has not expired.
Example:
Royer, et al. Experimental [Page 86]
^L
RFC 4324 Calendar Access Protocol December 2005
In this example the initiator asks for the listeners capabilities.
I: Content-Type: text/calendar
I:
I: BEGIN:VCALENDAR
I: VERSION:2.0
I: PRODID:The CUA's PRODID
I: CMD;ID=xyz12346;LATENCY=3;ACTION=ask:GET-CAPABILITY
I: END:VCALENDAR
# After 3 seconds
L: Content-Type: text/calendar
L:
L: BEGIN:VCALENDAR
L: PRODID:-//someone's prodid
L: VERSION:2.0
L: CMD;ID=xyz12346:TIMEOUT
L: END:VCALENDAR
In order to continue and give the CS more time, the CUA would issue a
"CONTINUE" command:
I: Content-Type: text/calendar
I:
I: BEGIN:VCALENDAR
I: VERSION:2.0
I: PRODID:-//someone's prodid
I: CMD;ID=xyz12346;LATENCY=3;ACTION=ask:CONTINUE
I: END:VCALENDAR
L: Content-Type: text/calendar
L:
L: BEGIN:VCALENDAR
L: VERSION:2.0
L: PRODID:-//someone's prodid
L: CMD;ID=xyz12346:REPLY
L: BEGIN:VREPLY
L: REQUEST-STATUS:2.0.3;Continued for 3 more seconds
L: END:VREPLY
L: END:VCALENDAR
Here the "2.0.3" status is returned because it is not an error, it is
a progress status sent in reply to the "CONTINUE" command.
To abort the command and not wait any further, issue an "ABORT"
command:
Royer, et al. Experimental [Page 87]
^L
RFC 4324 Calendar Access Protocol December 2005
I: Content-Type: text/calendar
I:
I: BEGIN:VCALENDAR
I: VERSION:2.0
I: PRODID:-//someone's prodid
I: CMD;ID=xyz12346:ABORT
I: END:VCALENDAR
# Which would result in a 2.0.3 reply.
L: Content-Type: text/calendar
L:
L: BEGIN:VCALENDAR
L: VERSION:2.0
L: PRODID:-//someone's prodid
L: CMD;ID=xyz12346:REPLY
L: BEGIN:VREPLY
L: REQUEST-STATUS:2.0.3;Aborted As Requested.
L: END:VREPLY
L: END:VCALENDAR
If the "ACTION" value had been set to "ABORT", then the listner would
send a "7.0" error on timeout in the reply to the command that
initiated the command that timed out.
10.2. ABORT Command
CMD: ABORT
Purpose: The "ABORT" command is sent to request that the named or the
only in-process command be aborted. Latency MUST not be supplied
with the "ABORT" command.
Formal Definition: An "ABORT" command is defined by the following
notation:
Royer, et al. Experimental [Page 88]
^L
RFC 4324 Calendar Access Protocol December 2005
abort-cmd = abortparam ":" "ABORT"
;
abortparam = *(
;
; the following are optional,
; but MUST NOT occur more than once
;
id-param
/ localize-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params
)
The REPLY of any "ABORT" command is:
abort-reply = "BEGIN" ":" "VCALENDAR" CRLF
calprops
abort-vreply
"END" ":" "VCALENDAR" CRLF
;
abort-vreply = "BEGIN" ":" "VREPLY" CRLF
rstatus
other-props
"END" ":" "VREPLY" CRLF
10.3. CONTINUE Command
CMD: CONTINUE
Purpose: The "CONTINUE" command is only sent after a "TIMEOUT"
command has been received to inform the other end of the session
to resume working on a command.
Formal Definition: A "CONTINUE" command is defined by the following
notation:
continue-cmd = continueparam ":" "CONTINUE"
;
continueparam = *(
;
; the following are optional,
; but MUST NOT occur more than once
;
id-param
/ localize-param
Royer, et al. Experimental [Page 89]
^L
RFC 4324 Calendar Access Protocol December 2005
/ latency-param
;
; the following MUST occur exactly once and only
; when the latency-param has been supplied and
; MUST NOT be supplied if the latency-param is
; not supplied.
;
/ action-param
;
; the following are optional,
; and MAY occur more than once
;
/ other-params
)
The REPLY of any "CONTINUE" command is:
continue-reply = "BEGIN" ":" "VCALENDAR" CRLF
calprops
continue-vreply
"END" ":" "VCALENDAR" CRLF
;
continue-vreply = "BEGIN" ":" "VREPLY" CRLF
rstatus
other-props
"END" ":" "VREPLY" CRLF
10.4. CREATE Command
CMD: CREATE
Purpose: The "CREATE" command is used to create one or more
iCalendar objects in the store in the "BOOKED" or "UNPROCESSED"
state.
A CUA MAY send a "CREATE" command to a CS. The "CREATE" command
MUST be implemented by all CSs.
The CS MUST NOT send a "CREATE" command to any CUA.
Formal Definition: A "CREATE" command is defined by the following
notation and the hierarchy restrictions, as defined in Section
3.2:
create-cmd = createparam ":" "CREATE"
;
createparam = *(
;
Royer, et al. Experimental [Page 90]
^L
RFC 4324 Calendar Access Protocol December 2005
; the following are optional,
; but MUST NOT occur more than once
;
id-param
/ localize-param
/ latency-param
;
; the following MUST occur exactly once and only
; when the latency-param has been supplied and
; MUST NOT be supplied if the latency-param is
; not supplied.
;
/ action-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params
)
Response:
One iCalendar object per TARGET property MUST be returned.
The REPLY of any "CREATE" command is limited to the restriction
tables defined in [iTIP] for iTIP objects, in addition to this
ABNF:
Royer, et al. Experimental [Page 91]
^L
RFC 4324 Calendar Access Protocol December 2005
create-reply = "BEGIN" ":" "VCALENDAR" CRLF
creply-props
1*(create-vreply)
"END" ":" "VCALENDAR" CRLF
;
create-vreply = "BEGIN" ":" "VREPLY" CRLF
created-id
rstatus
other-props
"END" ":" "VREPLY" CRLF
;
; Where the id is appropriate for the
; type of object created:
;
; VAGENDA = relcalid
; VALARM = sequence
; VCAR = carid
; VEVENT, VFREEBUSY, VJOURNAL, VTODO = uid
; VQUERY = queryid
; VTIMEZONE = tzid
; x-comp = x-id
;
created-id = ( relcalid / carid / uid / queryid /
tzid / sequence / x-id)
;
tzid = ; As defined in [iCAL].
;
sequence = ; As defined in [iCAL].
;
uid = ; As defined in [iCAL].
;
x-id = ; An ID for an x-component.
;
creply-props = 4*(
; These are REQUIRED and MUST NOT occur
; more than once.
;
prodid /version / target / reply-cmd
;
; These are optional, and may occur more
; than once.
;
other-props )
For a "CREATE" command, the "TARGET" property specifies the
containers where the components will be created.
Royer, et al. Experimental [Page 92]
^L
RFC 4324 Calendar Access Protocol December 2005
If the iCalendar object being created does not have a "METHOD"
property, then its state is "BOOKED" and it is not an [iTIP]
scheduling object. Use the "DELETE" command to set the state of
an object to the "DELETED" state (tagged for deletion). A CUA
cannot use the "CREATE" command to create an object in the
"DELETED" state.
If the intention is to book an [iTIP] object, then the "METHOD"
property MUST NOT be supplied. Otherwise, any [iTIP] object MUST
have a valid [iTIP] "METHOD" property value and it is a scheduling
request being deposited into the CS with its state set to
"UNPROCESSED".
Format Definition: ABNF for a "CREATE" object is:
create-object = "BEGIN" ":" "VCALENDAR" CRLF
; If 'calprops' contain the "METHOD" property
; then this 'create-object' component MUST
; conform to [iTIP] restrictions.
;
; calprops MUST include 'create-cmd'
;
calprops
other-props
1*(create-comp)
"END" ":" "VCALENDAR" CRLF
; NOTE: The 'VCALSTORE' component is not included in
; 'create-comp' as it is out of scope for CAP to create
; a new CS.
;
create-comp = agendac / carc / queryc
/ timezonec / freebusyc
/ eventc / todoc / journalc
/ iana-comp / x-comp
;
freebusyc = ; As defined in [iCAL].
;
eventc = ; As defined in [iCAL].
;
journalc = ; As defined in [iCAL].
;
timezonec = ; As defined in [iCAL].
;
todoc = ; As defined in [iCAL].
In the following example, two new top level "VAGENDA" components are
created. Note that the "CSID" value of the server is
Royer, et al. Experimental [Page 93]
^L
RFC 4324 Calendar Access Protocol December 2005
cal.example.com, which is where the new "VAGENDA" components are
going to be created.
C: Content-Type: text/calendar
C:
C: BEGIN:VCALENDAR
C: PRODID:-//someone's prodid
C: VERSION:2.0
C: CMD;ID=creation01:CREATE
C: TARGET:cal.example.com
C: BEGIN:VAGENDA <- data for 1st new calendar
C: CALID:relcalz1
C: NAME;LANGUAGE=en_US:Bill's Soccer Team
C: OWNER:bill
C: CALMASTER:mailto:bill@example.com
C: TZID:US/Pacific
C: END:VAGENDA
C: BEGIN:VAGENDA <- data for 2nd new calendar
C: CALID:relcalz2
C: NAME;LANGUAGE=EN-us:Mary's personal calendar
C: OWNER:mary
C: CALMASTER:mailto:mary@example.com
C: TZID:US/Pacific
C: END:VAGENDA
C: END:VCALENDAR
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: VERSION:2.0
S: PRODID:-//someone's prodid
S: CMD;ID=creation01:REPLY
S: TARGET:cal.example.com
S: BEGIN:VREPLY <- Reply for 1st calendar create
S: CALID:relcalz1
S: REQUEST-STATUS:2.0
S: END:REPLY
S: BEGIN:VREPLY <- Reply for 2nd calendar create
S: CALID:relcalz2
S: REQUEST-STATUS:2.0
S: END:VREPLY
S: END:VCALENDAR
To create a new component in multiple containers, simply name all
of the containers in the "TARGET" in the create command. A new
"VEVENT" component is created in two TARGET components. In this
example, the "VEVENT" component is one new [iTIP] "REQUEST" to be
Royer, et al. Experimental [Page 94]
^L
RFC 4324 Calendar Access Protocol December 2005
stored in two calendars. The results would be iCalendar objects
that conform to the [iTIP] replies as defined in [iTIP].
This example shows two [iTIP] "VEVENT" components being created in
each of the two supplied "TARGET" properties. As it contains the
"METHOD" property, they will be stored in the "UNPROCESSED" state:
C: Content-Type: text/calendar
C:
C: BEGIN:VCALENDAR
C: VERSION:2.0
C: PRODID:-//someone's prodid
C: CMD;ID=creation02:CREATE
C: METHOD:REQUEST
C: TARGET:relcalz1
C: TARGET:relcalz2
C: BEGIN:VEVENT
C: DTSTART:20030307T180000Z
C: UID:FirstInThisExample-1
C: DTEND:20030307T190000Z
C: SUMMARY:Important Meeting
C: END:VEVENT
C: BEGIN:VEVENT
C: DTSTART:20040307T180000Z
C: UID:SecondInThisExample-2
C: DTEND:20040307T190000Z
C: SUMMARY:Important Meeting
C: END:VEVENT
C: END:VCALENDAR
The CS sends the "VREPLY" commands in separate MIME objects, one
per supplied "TARGET" property value.
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: VERSION:2.0
S: PRODID:-//someone's prodid
S: CMD;ID=creation02:REPLY
S: TARGET:relcalz1 <- 1st TARGET listed.
S: BEGIN:REPLY <- Reply for 1st VEVENT create in 1st TARGET.
S: UID:FirstInThisExample-1
S: REQUEST-STATUS:2.0
S: END:VREPLY
S: BEGIN:REPLY <- Reply for 2nd VEVENT crate in 1st TARGET.
S: UID:SecondInThisExample-2
S: REQUEST-STATUS:2.0
S: END:VREPLY
Royer, et al. Experimental [Page 95]
^L
RFC 4324 Calendar Access Protocol December 2005
S: END:VCALENDAR
And the second reply for the 2nd TARGET:
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: VERSION:2.0
S: PRODID:-//someone's prodid
S: CMD;ID=creation02:REPLY
S: TARGET:relcalz2 <- 2nd TARGET listed
S: BEGIN:REPLY <- Reply for 1st VEVENT create in 2nd TARGET.
S: UID:FirstInThisExample-1
S: REQUEST-STATUS:2.0
S: END:VREPLY
S: BEGIN:REPLY <- Reply for 2nd VEVENT crate in 2nd TARGET.
S: UID:SecondInThisExample-2
S: REQUEST-STATUS:2.0
S: END:VREPLY
S: END:VCALENDAR
10.5. DELETE Command
CMD: DELETE
Purpose: The "DELETE" command physically removes the QUERY result
from the store or marks it for deletion.
A CUA MAY send a "DELETE" command to a CS. The "DELETE" command
MUST be implemented by all CSs.
The CS MUST NOT send a "DELETE" command to any CUA.
Formal Definition: A "DELETE" command is defined by the following
notation:
delete-cmd = deleteparam ":" "DELETE"
;
deleteparam = *(
;
; the following are optional,
; but MUST NOT occur more than once
;
id-param
/ localize-param
/ latency-param
/ option-param "MARK"
;
Royer, et al. Experimental [Page 96]
^L
RFC 4324 Calendar Access Protocol December 2005
; The following MUST occur exactly once and
; only when the latency-param has been supplied.
; It MUST NOT be supplied if the latency-param
; is not supplied.
;
/ action-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params
)
The "DELETE" command is used to delete calendars or components.
The included "VQUERY" component(s) specifies the container(s) to
delete.
To mark a component for delete without physically removing it,
include the "OPTIONS" parameter with its value set to the "MARK"
value in order to alter its state to "DELETED".
When components are deleted, only the top-most component
"REQUEST-STATUS" properties are returned. No "REQUEST-STATUS"
properties are returned for components inside of the selected
components. There MUST be one "VREPLY" component returned for
each object that is deleted or marked for delete. Note that if no
"VREPLY" components are returned, then nothing matched and nothing
was deleted.
Restriction Table for the "REPLY" command for any "DELETE"
command.
delete-reply = "BEGIN" ":" "VCALENDAR" CRLF
calprops ; MUST include 'reply-cmd'
*(delete-vreply)
"END" ":" "VCALENDAR" CRLF
;
delete-vreply = "BEGIN" ":" "VREPLY" CRLF
deleted-id
rstatus
"END" ":" "VREPLY" CRLF
;
; Where the id is appropriate for the
; type of object deleted:
;
; VAGENDA = relcalid
; VCAR = carid
; VEVENT, VFREEBUSY, VJOURNAL, VTODO = uid
Royer, et al. Experimental [Page 97]
^L
RFC 4324 Calendar Access Protocol December 2005
; VQUERY = queryid
; ALARM = sequence
; VTIMEZONE = tzid
; x-comp = x-id
; An instance = uid recurid
;
deleted-id = ( relcalid / carid / uid / uid recurid
/ queryid / tzid / sequence / x-id )
Example: to delete a "VEVENT" component with "UID" value of
"abcd12345" from the calendar "relcalid-22" from the current CS:
C: Content-Type: text/calendar
C:
C: BEGIN:VCALENDAR
C: TARGET:relcalid-22
C: CMD;ID:"random but unique per CUA":DELETE
C: BEGIN:VQUERY
C: QUERY:SELECT VEVENT FROM VAGENDA WHERE UID = 'abcd12345'
C: END:VQUERY
C: END:VCALENDAR
S: BEGIN:VCALENDAR
S: TARGET:relcalid-22
S: CMD;ID:"random but unique per CUA":REPLY
S: BEGIN:VREPLY
S: UID:abcd12345
S: REQUEST-STATUS:3.0
S: END:VREPLY
S: END:VCALENDAR
One or more iCalendar objects will be returned that contain
"REQUEST-STATUS" properties for the deleted components. More than
one component could have been deleted. Any booked component and
any number of unprocessed [iTIP] scheduling components that
matched the QUERY value in the above example will be returned.
Each unique "METHOD" property value that was deleted from the
store MUST be in a separate iCalendar object. This is because
only one "METHOD" property is allowed in a single "VCALENDAR"
BEGIN/END block.
10.6. GENERATE-UID Command
CMD: GENERATE-UID
Purpose: The "GENERATE-UID" command returns one or more unique
identifiers that MUST be globally unique.
Royer, et al. Experimental [Page 98]
^L
RFC 4324 Calendar Access Protocol December 2005
The "GENERATE-UID" command MAY be sent to any CS. The "GENERATE-
UID" command MUST be implemented by all CSs.
The "GENERATE-UID" command MUST NOT be sent to a CUA.
Formal Definition: A "GENERATE-UID" command is defined by the
following notation:
generate-uid-cmd = genuidparam ":" "GENERATE-UID"
;
genuidparam = *(
;
; The following are optional,
; but MUST NOT occur more than once.
;
id-param
/ localize-param
/ latency-param
;
; The following MUST occur exactly once and
; only when the latency-param has been supplied.
; It MUST NOT be supplied if the latency-param
; is not supplied.
;
/ action-param
;
; The following is optional,
; and MAY occur more than once.
;
/ other-params
;
; The following MUST be supplied exactly once.
; The value specifies the number of UIDs to
; be returned.
;
/ option-param posint1
)
Response:
gen-reply = "BEGIN" ":" "VCALENDAR" CRLF
calprops ; Which MUST include 'reply-cmd'
1*(gen-vreply)
"END" ":" "VCALENDAR" CRLF
gen-vreply = "BEGIN" ":" "VREPLY" CRLF
1*(uid)
rstatus
Royer, et al. Experimental [Page 99]
^L
RFC 4324 Calendar Access Protocol December 2005
"END" ":" "VREPLY" CRLF
{%%%IS THIS RIGHT%%%?]
Example:
C: BEGIN:VCALENDAR
C: VERSION:2.0
C: PRODID:-//someone's prodid
C: CMD;ID=unique-per-cua-124;OPTIONS=5:GENERATE-UID
C: END:VCALENDAR
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: VERSION:2.0
S: PRODID:-//someone's prodid
S: CMD;ID=unique-per-cua-124:REPLY
S: BEGIN:VREPLY
S: UID:20011121T120000Z-12340@cal.example.com
S: UID:20011121T120000Z-12341@cal.example.com
S: UID:20011121T120000Z-12342@cal.example.com
S: UID:20011121T120000Z-12343@cal.example.com
S: UID:20011121T120000Z-12344@cal.example.com
S: REQUEST-STATUS:2.0
S: END:VREPLY
S: END:VCALENDAR
10.7. GET-CAPABILITY Command
CMD: GET-CAPABILITY
Purpose: The "GET-CAPABILITY" command returns the capabilities of the
other end point of the session.
A CUA MUST send a "GET-CAPABILITY" command to a CS after the
initial connection. A CS MUST send a "GET-CAPABILITY" command to
a CUA after the initial connection. The "GET-CAPABILITY" command
and reply MUST be implemented by all CSs and CUAs.
Formal Definition: A "GET-CAPABILITY" command is defined by the
following notation:
get-capability-cmd = capabilityparam ":" "GET-CAPABILITY"
capabilityparam = *(
; the following are optional,
; but MUST NOT occur more than once
Royer, et al. Experimental [Page 100]
^L
RFC 4324 Calendar Access Protocol December 2005
;
id-param / localize-param / latency-param
;
; the following MUST occur exactly once and only
; when the latency-param has been supplied and
; MUST NOT be supplied if the latency-param is
; not supplied.
;
/ action-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params
)
Response:
The "GET-CAPABILITY" command returns information about the
implementation at the other end of the session. The values
returned may differ depending on current user identify and the
security level of the connection.
Client implementations SHOULD NOT require any capability element
beyond those defined in this specification or future RFC
publications. They MAY ignore any nonstandard, experimental
capability elements. The "GET-CAPABILITY" reply may return
different results, depending on the UPN and if the UPN is
authenticated.
When sending a reply to a "GET-CAPABILITY" command, all of these
MUST be supplied. The following properties are returned in
response to a "GET-CAPABILITY" command:
cap-vreply = "BEGIN" ":" "VCALENDAR" CRLF
; The following properties may be in any order.
;
rodid
version
reply-cmd
other-props
"BEGIN" ":" "VREPLY" CRLF
; The following properties may be in any order.
;
cap-version
car-level
components
Royer, et al. Experimental [Page 101]
^L
RFC 4324 Calendar Access Protocol December 2005
stores-expanded
maxdate
mindate
itip-version
max-comp-size
multipart
query-level
recur-accepted
recur-expand
recur-limit
other-props
"END" ":" "VREPLY" CRLF
"END" ":" "VCALENDAR" CRLF
Example:
I: Content-Type: text/calendar
I:
I: BEGIN:VCALENDAR
I: VERSION:2.0
I: PRODID:-//someone's prodid
I: CMD;ID=unique-per-cua-125:GET-CAPABILITY
I: END:VCALENDAR
L: Content-Type: text/calendar
L:
L: BEGIN:VCALENDAR
L: VERSION:2.0
L: PRODID:-//someone's prodid
L: CMD;ID=unique-per-cua-125:REPLY
L: BEGIN:VREPLY
L: CAP-VERSION:1.0
L: PRODID:The CS prodid
L: QUERY-LEVEL:CAL-QL-1
L: CAR-LEVEL:CAR-FULL-1
L: MAXDATE:99991231T235959Z
L: MINDATE:00000101T000000Z
L: MAX-COMPONENT-SIZE:0
L: COMPONENTS:VCALENDAR,VTODO,VJOURNAL,VEVENT,VCAR,
L: VALARM,VFREEBUSY,VTIMEZONE,STANDARD,DAYLIGHT,VREPLY
L: ITIP-VERSION:2446
L: RECUR-ACCEPTED:TRUE
Royer, et al. Experimental [Page 102]
^L
RFC 4324 Calendar Access Protocol December 2005
L: RECUR-EXPAND:TRUE
L: RECUR-LIMIT:0
L: STORES-EXPANDED:FALSE
L: X-INET-PRIVATE-COMMANDS:1.0
L: END:VREPLY
L: END:VCALENDAR
10.8. IDENTIFY Command
CMD: IDENTIFY
Purpose: The "IDENTIFY" command allows the CUA to set a new identity
to be used for calendar access.
A CUA MAY send an "IDENTIFY" command to a CS. The "IDENTIFY"
command MUST be implemented by all CSs. A CS implementation MAY
reject all "IDENTIFY" commands.
The CS MUST NOT send an "IDENTIFY" command to any CUA.
Formal Definition: An "IDENTIFY" command is defined by the following
notation:
identify-cmd = identifyparam ":" "IDENTIFY"
;
identifyparam = *(
;
; the following are optional,
; but MUST NOT occur more than once
;
id-param
/ localize-param
/ latency-param
;
; the following MUST occur exactly once and only
; when the latency-param has been supplied and
; MUST NOT be supplied if the latency-param is
; not supplied.
;
/ action-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params
;
; The value is the UPN of the requested
; identity. If option is not supplied it is
Royer, et al. Experimental [Page 103]
^L
RFC 4324 Calendar Access Protocol December 2005
; a request to return to the original
; authenticated identity.
;
/ option-param upn
)
Response:
A "REQUEST-STATUS" property wrapped in a "VREPLY" component with
only one of the following request-status codes:
2.0 Successful.
6.4 Identity not permitted. VCAR restriction.
The CS determines, through an internal mechanism, if the credentials
supplied at authentication permit the operation as the selected
identity. If they do, the session assumes the new identity;
otherwise, a security error is returned.
Example:
C: Content-Type: text/calendar
C:
C: BEGIN:VCALENDAR
C: VERSION:2.0
C: PRODID:-//someone's prodid
C: CMD;ID=unique-per-cua-999;OPTIONS=newUserId:IDENTIFY
C: END:VCALENDAR
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: VERSION:2.0
S: PRODID:-//someone's prodid
S: BEGIN:VREPLY
S: REQUEST-STATUS:2.0;Request Approved
S: END:VREPLY
S: END:VCALENDAR
Or if denied:
Royer, et al. Experimental [Page 104]
^L
RFC 4324 Calendar Access Protocol December 2005
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: PRODID:-//someone's prodid
S: VERSION:2.0
S: BEGIN:VREPLY
S: REQUEST-STATUS:6.4;Request Denied
S: END:VREPLY
S: END:VCALENDAR
For the CUA to return to its original authenticated identity, the
OPTIONS parameter is omitted:
C: Content-Type: text/calendar
C:
C: BEGIN:VCALENDAR
C: VERSION:2.0
C: PRODID:-//someone's prodid
C: CMD;ID=unique-per-cua-995:IDENTIFY
C: END:VCALENDAR
The CS may accept (2.0) or deny (6.4) the request to return to the
original identity.
If a CS considers the "IDENTIFY" command an attempt to violate
security, the CS MAY terminate the [BEEP] session without any further
notice to the CUA after sending the "REQUEST-STATUS" 6.4 reply.
10.9. MODIFY Command
CMD: MODIFY
Purpose: The "MODIFY" command is used to modify existing components.
A CUA MAY send a "MODIFY" command to a CS. The "MODIFY" command
MUST be implemented by all CSs.
The CS MUST NOT send a "MODIFY" command to any CUA.
Formal Definition: A "MODIFY" command is defined by the following
notation:
modify-cmd = modifyparam ":" "MODIFY"
;
modifyparam = *(
;
; the following are optional,
; but MUST NOT occur more than once
Royer, et al. Experimental [Page 105]
^L
RFC 4324 Calendar Access Protocol December 2005
;
id-param
/ localize-param
/ latency-param
;
; the following MUST occur exactly once and only
; when the latency-param has been supplied and
; MUST NOT be supplied if the latency-param is
; not supplied.
;
/ action-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params
)
The "MODIFY" command is used to modify existing components. The
TARGET property specifies the calendars that contain the
components that are going to be modified.
The format of the request is three components inside of
"VCALENDAR" component:
BEGIN:VCALENDAR
BEGIN:VQUERY
END:VQUERY
BEGIN:XXX
END:XXX
BEGIN:XXX
END:XXX
END:VCALENDAR
The "VQUERY" component selects the components that are to be
modified.
The "XXX" above is a named component type (VEVENT, VTODO, ...).
Both the old and new components MUST be of the same type.
The old-values is a component and the contents of that component
are going to change and may contain information that helps
uniquely identify the original component (SEQUENCE in the example
below). If the CS cannot find a component that matches the QUERY
and does not have at least all of the OLD-VALUES, then a 6.1 error
is returned.
Royer, et al. Experimental [Page 106]
^L
RFC 4324 Calendar Access Protocol December 2005
The new-values is a component of the same type as old-values and
new-values contains the new data for each selected component. Any
data that is in old-values and not in new-values is deleted from
the selected component. Any values in new-values that was not in
old-values is added to the component.
In this example, the "VEVENT" component with a "UID" property
value of 'unique-58' has the "LOCATION" property and "LAST-
MODIFIED" properties changed, the "VALARM" component with the
"SEQUENCE" property with a value of "3" has its "TRIGGER" property
disabled, the "X-LOCAL" property is removed from the "VEVENT"
component, and a "COMMENT" property is added.
Because "SEQUENCE" property is used to locate the "VALARM"
component in this example, both the old-values and the new-values
contain the "SEQUENCE" property with a value of "3". If the
"SEQUENCE" property were to be left out of new-values, it would
have been deleted.
Example:
C: Content-Type: text/calendar
C:
C: BEGIN:VCALENDAR
C: VERSION:2.0
C: PRODID:-//someone's prodid
C: TARGET:my-cal
C: CMD:ID=unique-mod:MODIFY
C: BEGIN:VQUERY <- Query to select data set.
C: QUERY:SELECT * FROM VEVENT WHERE UID = 'unique-58'
C: END:VQUERY
C: BEGIN:VEVENT <- Start of old data.
C: LOCATION:building 3
C: LAST-MODIFIED:20020101T123456Z
C: X-LOCAL:some private stuff
C: BEGIN:VALARM
C: SEQUENCE:3
C: TRIGGER;RELATED=END:PT5M
C: END:VALARM
C: END:VEVENT <- End of old data.
C: BEGIN:VEVENT <- Start of new data.
C: LOCATION:building 4
C: LAST-MODIFIED:20020202T010203Z
C: COMMENT:Ignore global trigger.
C: BEGIN:VALARM
C: SEQUENCE:3
C: TRIGGER;ENABLE=FALSE:RELATED=END:PT5M
C: END:VALARM
Royer, et al. Experimental [Page 107]
^L
RFC 4324 Calendar Access Protocol December 2005
C: END:VEVENT <- End of new data.
C: END:VCALENDAR
The "X-LOCAL" property was not supplied in the new-values, so it
was deleted. The "LOCATION" property value was altered, as was
the "LAST-MODIFIED" value. The "VALARM" component with a
"SEQUENCE" property value of "3" had its "TRIGGER" property
disabled, and the "SEQUENCE" property value did not change so it
was not effected. The "COMMENT" property was added.
When it comes to inline ATTACHMENTs, the CUA only needs to
uniquely identify the contents of the ATTACHMENT value in the
old-values in order to delete them. When the CS compares the
attachment data, it is compared in its binary form. The
ATTACHMENT value supplied by the CUA MUST be valid encoded
information.
For example, to delete the same huge inline attachment from every
VEVENT in 'my-cal' that has an "ATTACH" property value with the
old-values:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//someone's prodid
TARGET:my-cal
CMD:MODIFY
BEGIN:VQUERY
QUERY:SELECT ATTACH FROM VEVENT
END:VQUERY
BEGIN:VEVENT
ATTACH;FMTTYPE=image/basic;ENCODING=BASE64;VALUE=BINARY:
MIICajCCAdOgAwIBAgICbeUwDQYJKoZIhvcNAQEEBQAwdzELMAkGA1U
EBhMCVVMxLDAqBgNVBAoTI05ldHNjYXBlIENvbW11bmljYXRpb25zIE
...< remainder of attachment data NOT supplied >....
END:VEVENT
BEGIN:VEVENT
END:VEVENT
END:VCALENDAR
Here the new-values is empty, so everything in the old-values is
deleted.
Furthermore, the following additional restrictions apply:
1. One cannot change the "UID" property of a component.
Royer, et al. Experimental [Page 108]
^L
RFC 4324 Calendar Access Protocol December 2005
2. If a contained component is changed inside of a selected
component, and that contained component has multiple instances,
then old-values MUST contain information that uniquely
identifies the instance or instances that are changing. It is
valid to change more than one. All contained components that
match old-values will be modified. In the first modify example
above, if "SEQUENCE" properties were to be deleted from both the
old-values and new-values, then all "TRIGGER" properties that
matched the old-values in all "VALARM" components in the
selected "VEVENT" components would be disabled.
3. The result of the modify MUST be a valid iCalendar object.
Response:
A "VCALENDAR" component is returned with one ore more "REQUEST-
STATUS" property values.
If any error occurred:
No component will be changed at all. That is, it will appear just
as it was prior to the modify and the CAP server SHOULD return a
"REQUEST-STATUS" property for each error that occurred. There
MUST be at least one error reported.
If multiple components are selected, then what uniquely identified
the component MUST be returned (UID, QUERYID, ...) if the component
contains a unique identifier. If it does not, sufficient information
to uniquely identify the modified components MUST be returned in the
reply.
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: TARGET:relcalid
S: CMD;ID=delete#1:REPLY
S: BEGIN:VREPLY
S: BEGIN:VEVENT
S: UID:123
S: REQUEST-STATUS:2.0
S: END:VEVENT
S: END:VREPLY
S: END:VCALENDAR
Royer, et al. Experimental [Page 109]
^L
RFC 4324 Calendar Access Protocol December 2005
10.10. MOVE Command
CMD: MOVE
Purpose: The "MOVE" command is used to move components within the CS.
A CUA MAY send a "MOVE" command to a CS. The "MOVE" command MUST
be implemented by all CSs.
The CS MUST NOT send a "MOVE" command to any CUA.
Formal Definition: A "MOVE" command is defined by the following
notation:
move-cmd = moveparam ":" "MOVE"
;
moveparam = *(
;
; the following are optional,
; but MUST NOT occur more than once
;
id-param
/ localize-param
/ latency-param
;
; the following MUST occur exactly once and only
; when the latency-param has been supplied and
; MUST NOT be supplied if the latency-param is
; not supplied.
;
/ action-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params
;
)
Response:
The REQUEST-STATUS in a VCALENDAR object.
The content of each "result" is subject to the result restriction
table defined below.
The access control on the "VAGENDA" component, after it has been
moved to its new location in the calstore, MUST be at least as
Royer, et al. Experimental [Page 110]
^L
RFC 4324 Calendar Access Protocol December 2005
secure as it was prior to the move. If the CS is not able to
ensure the same level of security, a permission-denied "REQUEST-
STATUS" property value MUST be returned, and the "MOVE" command
MUST NOT be performed.
The "TARGET" property value specifies the new location, and the
"VQUERY" component specifies the old location.
Restriction Table for the "REPLY" command of any "MOVE" command.
move-reply = "BEGIN" ":" "VCALENDAR" CRLF
calprops
1*(move-vreply)
"END" ":" "VCALENDAR" CRLF
move-vreply = "BEGIN" ":" "VREPLY" CRLF
move-id
rstatus
"END" ":" "VREPLY" CRLF
; Where the id is appropriate for the
; type of object moved:
;
; VAGENDA = relcalid
; VCAR = carid
; VEVENT, VFREEBUSY, VJOURNAL, VTODO = uid
; VQUERY = queryid
; ALARM = sequence
; An instance = uid recurid
; x-comp = x-id
;
move-id = ( relcalid / carid / uid / uid recurid
/ queryid / tzid / sequence / x-id)
Example: moving the VAGENDA Nellis to Area-51
C: Content-Type: text/calendar
C:
C: BEGIN:VCALENDAR
C: VERSION:2.0
C: PRODID:-//someone's prodid
C: CMD:MOVE
C: TARGET:Area-51
C: BEGIN:VQUERY
C: QUERY: SELECT *.* FROM VAGENDA WHERE CALID='Nellis'
C: END:VQUERY
C: END:VCALENDAR
Royer, et al. Experimental [Page 111]
^L
RFC 4324 Calendar Access Protocol December 2005
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: VERSION:2.0
S: PRODID:-//someone's prodid
S: TARGET:Area-51
S: BEGIN:VREPLY
S: CALID:Nellis
S: REQUEST-STATUS: 2.0
S: END:VREPLY
S: END:VCALENDAR
10.11. REPLY Response to a Command
CMD: REPLY
Purpose: The "REPLY" value to the "CMD" property is used to return
the results of all other commands to the CUA.
A CUA MUST send a "REPLY" command to a CS for any command a CS MAY
send to the CUA. The "REPLY" command MUST be implemented by all
CUAs that support getting the "GET-CAPABILITY" command.
A CS MUST send a "REPLY" command to a CUA for any command a CUA
MAY send to the CS. The "REPLY" command MUST be implemented by
all CSs.
Formal Definition: A "REPLY" command is defined by the following
notation:
reply-cmd = replyparam ":" "REPLY"
;
replyparam = *(
;
; The 'id' parameter value MUST be exactly the
; same as the value sent in the original
; CMD property. If the original CMD did
; not have an 'id' parameter, then the 'id'
; MUST NOT be supplied in the REPLY.
;
id-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params
)
Royer, et al. Experimental [Page 112]
^L
RFC 4324 Calendar Access Protocol December 2005
10.12. SEARCH Command
CMD: SEARCH
Purpose: The "SEARCH" command is used to return selected components
to the CUA.
A CUA MAY send a "SEARCH" command to a CS. The "SEARCH" command
MUST be implemented by all CSs.
The CS MUST NOT send a "SEARCH" command to any CUA.
Formal Definition: A "SEARCH" command is defined by the following
notation:
search-cmd = searchparam ":" "SEARCH"
;
searchparam = *(
;
; the following are optional,
; but MUST NOT occur more than once
;
id-param
/ localize-param
/ latency-param
;
; the following MUST occur exactly once and only
; when the latency-param has been supplied and
; MUST NOT be supplied if the latency-param is
; not supplied.
;
/ action-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params
)
The format of the request is the search command (search-cmd)
followed by one or more (query) "VQUERY" components
Response:
The data in each result set contains one or more iCalendar
components composed of all the selected results enclosed in a
single "VREPLY" component per "QUERY".
Royer, et al. Experimental [Page 113]
^L
RFC 4324 Calendar Access Protocol December 2005
Only "REQUEST-STATUS" property and the properties mentioned in the
"SELECT" clause of the QUERY are included in the components. Each
"VCALENDAR" component is tagged with the "TARGET" property.
Searching for objects
In the example below, objects on March 10,1999 between 080000Z and
190000Z are read. In this case only four properties for each
object are returned. Two calendars are specified. Only booked
(vs. scheduled) entries are to be returned (this example only
selected VEVENT objects are to be returned):
C: Content-Type: text/calendar
C:
C: BEGIN:VCALENDAR
C: VERSION:2.0
C: PRODID:-//someone's prodid
C: CMD:SEARCH
C: TARGET:relcal2
C: TARGET:relcal3
C: BEGIN:VQUERY
C: QUERY:SELECT DTSTART,DTEND,SUMMARY,UID
C: FROM VEVENT
C: WHERE DTEND >= '19990310T080000Z'
C: AND DTSTART <= '19990310T190000Z'
C: AND STATE() = 'BOOKED'
C: END:VQUERY
C: END:VCALENDAR
The return values are subject to VCAR filtering. That is, if the
request contains properties to which the UPN does not have access,
those properties will not appear in the return values. If the UPN
has access to at least one property of the component, but has been
denied access to all properties called out in the request, the
response will contain a single "REQUEST-STATUS" property
indicating the error.
Here the request was successful, however one of the "VEVENT"
components contents were not accessible (4.1).
Royer, et al. Experimental [Page 114]
^L
RFC 4324 Calendar Access Protocol December 2005
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: TARGET:relcalid
S: CMD:REPLY
S: VERSION:2.0
S: PRODID:-//someone's prodid
S: BEGIN:VREPLY
S: BEGIN:VEVENT
S: REQUEST-STATUS:4.1
S: END:VEVENT
S: BEGIN:VEVENT
S: REQUEST-STATUS:2.0
S: UID:123
S: DTEND:19990310T080000Z
S: DSTART:19990310T190000Z
S: SUMMARY: Big meeting
S: END:VEVENT
S: END:VREPLY
S: END:VCALENDAR
If the UPN has no access to any components at all, the response
will simply be an empty data set. The response will look the same
if the particular components do not exist.
S: Content-Type: text/calendar
S:
S: BEGIN:VCALENDAR
S: VERSION:2.0
S: PRODID:-//someone's prodid
S: CMD:REPLY
S: TARGET:ralcalid
S: BEGIN:VREPLY
S: REQUEST-STATUS:2.0
S: END:VREPLY
S: END:VCALENDAR
If there are multiple targets, each iCalendar reply is contained
within its own iCalendar object.
10.12.1. Searching for VFREEBUSY
If a CS sets the "RECUR-EXPAND" property to "TRUE" and contains the
"VFREEBUSY" component in the "COMPONENTS" value in a reply to the
"GET-CAPABILITY" command, then it is the CS's responsibility (and not
the CUA's responsibility) to provide the correct "VFREEBUSY"
information for a calendar.
Royer, et al. Experimental [Page 115]
^L
RFC 4324 Calendar Access Protocol December 2005
If a CUA issues a "CREATE" "VFREEBUSY", such a CS MUST return success
and not store the "VFREEBUSY" component as the results would never be
used.
Such a CS MUST dynamically create the results of a search for
"VFREEBUSY" components at search time when searching for STATE() =
'BOOKED' items.
If a CUA searches for "VFREEBUSY" components with STATE() =
'UNPROCESSED', such a CS MUST return a "VREPLY" with no components.
If a CUA searches for "VFREEBUSY" components without specifying the
STATE, such a CS MUST return the same result as if STATE()='BOOKED'
had been specified.
For CSs that set the "CAPABILITY" "RECUR-EXPAND" property to "FALSE"
and have the "VFREEBUSY" component in the "COMPONENTS" value in the
"CAPABILITY" reply, a CUA MAY store the "VFREEBUSY" information on
the CS. These CSs then MUST return a "VFREEBUSY" component
calculated from the stored components. If no "VFREEBUSY" information
is available for the "TARGET" calendar, then a "VFREEBUSY" with no
blocked out time will be returned with a success code. A CUA sets
the "VFREEBUSY" time on a/those calendars by creating a "VFREEBUSY"
component without a "METHOD" creating a "BOOKED" entry.
If a CS does not set the "VFREEBUSY" value in the "COMPONENTS"
"CAPABILITY" value, the CS does not support the "VFREEBUSY" component
and all creation and searching for a "VFREEBUSY" component MUST fail.
Examples of calendars that may be in this category are public event
calendars that will never require scheduling with other UPNs.
10.13. SET-LOCALE Command
CMD: SET-LOCALE
Purpose: The "SET-LOCALE" command is used to select the locale that
will be used in error codes that are used in the "REQUEST-STATUS"
property.
A CUA MAY send a "SET-LOCALE" command to a CS. The SET-LOCALE
command MUST be implemented by all CSs.
The CS MUST NOT send a "SET-LOCALE" command to any CUA.
Formal Definition: A "SET-LOCALE" command is defined by the following
notation:
setlocale-cmd = setlocaleparam ":" "SET-LOCALE"
Royer, et al. Experimental [Page 116]
^L
RFC 4324 Calendar Access Protocol December 2005
;
setlocaleparam = *(
;
; the following are optional,
; but MUST NOT occur more than once
;
id-param
/ localize-param
/ latency-param
/ setlocale-option
;
; the following MUST occur exactly once and only
; only when the latency-param has been supplied.
; It MUST NOT be supplied if the latency-param
; is not supplied.
;
/ action-param
;
; the following is optional,
; and MAY occur more than once
;
/ other-params )
setlocale-option = option-param newlocale
;
newlocale = ; Any locale supplied in the initial [BEEP]
; "greeting" "localize" parameter and
; and any charset supported by the CS
; and listed in the DEFAULT-CHARSET property
; of the VCALSTORE
Examples:
CMD:OPTIONS=en_US.UTF-8:SET-LOCALE
CMD:OPTIONS=th_TH.ISO8859-11:SET-LOCALE
CMD:OPTIONS=es_MX.ISO8859-1:SET-LOCALE
Restriction Table for the "REPLY" command of any "SET-LOCALE"
command.
setlocale-reply = "BEGIN" ":" "VCALENDAR" CRLF
calprops
1*(setlocale-vreply)
"END" ":" "VCALENDAR" CRLF
setlocale-vreply = "BEGIN" ":" "VREPLY" CRLF
rstatus
"END" ":" "VREPLY" CRLF
Royer, et al. Experimental [Page 117]
^L
RFC 4324 Calendar Access Protocol December 2005
10.14. TIMEOUT Command
CMD: TIMEOUT
Purpose: The "TIMEOUT" command is only sent after a command has been
sent with a latency value set. When received, it means the
command could not be completed in the time allowed.
Formal Definition: A "TIMEOUT" command is defined by the following
notation:
timeout-cmd = timeoutparam ":" "TIMEOUT"
timeoutparam = *(
; the following are optional,
; but MUST NOT occur more than once
id-param
/ localize-param
/ other-params
)
10.15. Response Codes
Numeric response codes are returned using the "REQUEST-STATUS"
property.
The format of these codes is described in [iCAL] and extended in
[iTIP] and [iMIP]. The following describes new codes added to this
set and how existing codes apply to CAP.
At the application layer, response codes are returned as the value of
a "REQUEST-STATUS" property. The value type of this property is
modified from that defined in [iCAL], in order to make the
accompanying "REQUEST-STATUS" property text optional.
Code Description
--------------------------------------------------------------
2.0 Success. The parameters vary with the
operation and are specified.
2.0.3 In response to the client issuing an
"abort" reply, this reply code indicates
that any command currently underway was
successfully aborted.
3.1.4 Capability not supported.
4.1 Calendar store access denied.
Royer, et al. Experimental [Page 118]
^L
RFC 4324 Calendar Access Protocol December 2005
6.1 Container not found.
6.2 Attempt to create or modify an object
that would overlap another object
in either of the following two circumstances:
(a) One of the objects has a TRANSP
property set to OPAQUE-NOCONFLICT or
TRANSPARENT-NOCONFLICT.
(b) The calendar's ALLOW-CONFLICT
property is set to FALSE.
6.3 Bad args.
6.4 Permission denied - VCAR restriction.
A VCAR exists and the CS will not perform
the operation.
7.0 A timeout has occurred. The server was
unable to complete the operation in the
requested time.
8.0 A failure has occurred in the CS
that prevents the operation from
succeeding.
8.1 A query was performed and the query is
too complex for the CS. The operation
was not performed.
8.2 Used to signal that an iCalendar object has
exceeded the server's size limit
8.3 A DATETIME value was too far in the future
to be represented on this Calendar.
8.4 A DATETIME value was too far in the past
to be represented on this Calendar.
8.5 An attempt was made to create a new
object, but the unique UID specified is
already in use.
9.0 An unrecognized command was received.
Or an unsupported command was received.
Royer, et al. Experimental [Page 119]
^L
RFC 4324 Calendar Access Protocol December 2005
10.4 The operation has not been performed
because it would cause the resources
(memory, disk, CPU, etc) to exceed the
allocated quota.
--------------------------------------------------------------
11. Object Registration
This section provides the process for registration of new or modified
properties, parameters, commands, or other modifications, additions,
or deletions to objects.
11.1. Registration of New and Modified Entities
New objects are registered by the publication of an IETF Request for
Comment (RFC). Changes to objects are registered by the publication
of a revision to the RFC in a new RFC.
11.2. Post the Item Definition
The object description MUST be posted to the new object discussion
list: ietf-calendar@imc.org.
11.3. Allow a Comment Period
Discussion on a new object MUST be allowed to take place on the list
for a minimum of two weeks. Consensus MUST be reached on the object
before proceeding to the next step.
11.4. Release a New RFC
The new object will be submitted for publication like any other
Internet Draft requesting RFC status.
12. BEEP and CAP
12.1. BEEP Profile Registration
BEEP replies will be one-to-one (1:1 MSG/RPY) if possible, and one-
to-many (1:many MSG/ANS) when the "TARGET" property value changes.
No more than one "TARGET" property value is allowed per reply.
Profile Identification: specify a [URI] that authoritatively
identifies this profile.
http://iana.org/beep/cap/1.0
Message Exchanged during Channel Creation:
Royer, et al. Experimental [Page 120]
^L
RFC 4324 Calendar Access Protocol December 2005
CUAs SHOULD supply the BEEP "localize" attributes in the BEEP
"greeting" messages.
CSs SHOULD supply the BEEP "localize" attributes in the BEEP
"greeting" messages.
CUAs SHOULD supply the BEEP "serverName" attribute at channel
creation time to the CS, so that, if the CS is performing virtual
hosting, the CS can determine the intended virtual host. CSs that
do not support virtual hosting may ignore the BEEP "serverName"
attribute.
Messages starting one-to-one exchanges:
The initial message, after authentication in each direction, MUST
be a single "text/calendar" object containing a CAP "CAPABILITY"
CMD. It must not be part of a MIME multipart message.
After the initial message, a BEEP "MSG" may contain one or more
MIME objects (at least one of which MUST be "text/calendar"), and
each "text/calendar" MIME object MUST contain a CAP "CMD"
property.
Multiple iCalendar objects may be sent in a single BEEP message
either by representing them as separate MIME text/calendar parts
contained within a MIME multipart/mixed part or by simple
concatenation within a single text/calendar MIME object.
In either case, all iCalendar objects that are transmitted
together must have the same TARGET property.
The sending of multipart MIME entities over BEEP is not permitted
for CAP unless the other endpoint has indicated its ability to
accept them via the appropriate CAPABILITY.
Messages in positive replies:
After the initial message, a BEEP "RPY" may contain one or more
MIME objects (at least one of which MUST be "text/calendar"), and
each "text/calendar" MIME object MUST contain a CAP "CMD"
property. All "text/calendar" MIME objects in a single BEEP "RPY"
messages MUST have the same "TARGET" property value.
Multiple iCalendar objects may be sent in a single BEEP message by
either representing them as separate MIME text/calendar parts
contained within a MIME multipart/mixed part or by simple
concatenation within a single text/calendar MIME object.
Royer, et al. Experimental [Page 121]
^L
RFC 4324 Calendar Access Protocol December 2005
In either case, all iCalendar objects transmitted together must
have the same TARGET property.
Sending multipart MIME entities over BEEP is not permitted for CAP
unless the other endpoint has indicated its ability to accept them
via the appropriate CAPABILITY.
Messages in negative replies:
Will contain any valid "text/calendar" MIME object that contains
CAP "REQUEST-STATUS" property and a CAP "CMD" property with a
property value of "REPLY". And where the CS has determined the
requested operation to be a fatal error. And when the CS has
performed NO operation that effected the contents of any part of
the CS or any calendar controlled by the CS.
Messages in one-to-many exchanges:
After the initial message then a BEEP "MSG" may contain one or
more MIME objects at least one of which MUST be "text/calendar"
and each "text/calendar" MIME object MUST contain a CAP "CMD"
property.
The BEEP "MSG" messages can only contain MIME "multipart" MIME
objects if the other endpoint has received a CAP "CAPABILITY"
indicating the other endpoint supports multipart MIME objects.
This does not prevent the endpoint from sending multiple [iCAL]
'icalobject' objects in a single BEEP "MSG" so long as all of them
have the same "TARGET" property value.
Multiple iCalendar objects may be sent in a single BEEP message by
either representing them as separate MIME text/calendar parts
contained within a MIME multipart/mixed part or by simple
concatenation within a single text/calendar MIME object.
In either case, all iCalendar objects transmitted together must
have the same TARGET property.
The sending of multipart MIME entities over BEEP is not permitted
for CAP unless the other endpoint has indicated its ability to
accept them via the appropriate CAPABILITY.
Message Syntax:
They are CAP "text/calendar" MIME objects as specified in this
memo.
Royer, et al. Experimental [Page 122]
^L
RFC 4324 Calendar Access Protocol December 2005
Message Semantics:
As defined in this memo.
12.2. BEEP Exchange Styles
[BEEP] defines three styles of message exchange:
MSG/ANS,ANS,...,NUL - For one to many exchanges.
MSG/RPY - For one to one exchanges.
MSG/ERR - For requests the cannot be processed due to an error.
A CAP request targeted at more than one container MAY use a one- to-
many exchange with a distinct answer associated with each target. A
CAP request targeted at a single container MAY use a one-to-one
exchange or a one-to-many exchange. "MSG/ERR" MAY only be used when
an error condition prevents the execution of the request on all the
targeted calendars.
12.3. BEEP Connection Details
All CAP communications must be done securely, so the initial greeting
includes the TLS profile.
L: <wait for incoming connection>
I: <open connection>
L: RPY 0 0 . 0 110
L: Content-Type: application/beep+xml
L:
L: <greeting>
L: <profile uri='http://iana.org/beep/TLS' />
L: </greeting>
L: END
I: RPY 0 0 . 0 52
I: Content-Type: application/beep+xml
I:
I: <greeting/>
I: END
At this point, the connection is secure. The TLS profile 'resets'
the connection, so it resends the greetings, advertises the CAP
profiles that are supported, and replies with the profile selected
(only one profile exists at this time):
Royer, et al. Experimental [Page 123]
^L
RFC 4324 Calendar Access Protocol December 2005
L: <wait for incoming connection>
I: <open connection>
L: RPY 0 0 . 0 110
L: Content-Type: application/beep+xml
L:
L: <greeting>
L: <profile uri='http://iana.org/beep/cap/1.0'/>
L: </greeting>
L: END
I: RPY 0 0 . 0 110
I: Content-Type: application/beep+xml
I:
I: <greeting>
I: <profile uri='http://iana.org/beep/cap/1.0'/>
I: </greeting>
I: END
Each channel must be authenticated before work can start, but
starting a channel involves authentication. Any SASL profile may be
included, for example:
<profile uri='http://iana.org/beep/SASL/OTP'/>
<profile uri='http://iana.org/beep/SASL/DIGEST-MD5'/>
<profile uri='http://iana.org/beep/SASL/ANONYMOUS'/>
Example of anonymous channel:
C: <start number='1'>
C: <profile uri='http://iana.org/beep/SASL/ANONYMOUS'/>
C: </start>
S: RPY 0 1 . 221 87
S: Content-Type: application/beep+xml
S:
S: <profile uri='http://iana.org/beep/SASL/ANONYMOUS'/>
S: END
Example of DIGEST-MD5 channel:
C: <start number='1'>
C: <profile uri='http://iana.org/beep/SASL/DIGEST-MD5'/>
C: </start>
S: RPY 0 1 . 221 87
S: Content-Type: application/beep+xml
Royer, et al. Experimental [Page 124]
^L
RFC 4324 Calendar Access Protocol December 2005
S:
S: <profile uri='http://iana.org/beep/SASL/DIGEST-MD5'/>
S: END
Piggybacking the "CAPABILITY" command.
The "CAPABILITY" reply may be included during channel start (see
RFC3080, section 2.3.1.2), as BEEP allows the start command to
include the initial data transfer. This reduces the number of round
trips to initiate a CAP session.
13. IANA Considerations
This memo defines IANA-registered extensions to the attributes
defined by iCalendar, as defined in [iCAL], and [iTIP].
IANA registration proposals for iCalendar and [iTIP] are to be mailed
to the registration agent for the "text/calendar" [MIME] content-
type, <MAILTO: ietf-calendar@imc.org> using the format defined in
section 7 of [iCAL].
The the IANA has registered the profile specified in Section 12.1,
and has selected an IANA-specific URI: http://iana.org/beep/cap/1.0.
14. Security Considerations
Access rights should be granted cautiously. Without careful
planning, it is possible to open up access to a greater degree than
desired.
The "IDENTIFY" command should be carefully implemented. If it is
done incorrectly, UPNs may gain access as other, unintended, UPNs.
The "IDENTIFY" command may not chain; that is, the identity is always
validated against the original UPN and not the new UPN.
Since CAP is a profile of [BEEP], consult [BEEP]'s Section 9 for a
discussion of BEEP-specific security issues.
There are risks of allowing anonymous UPNs to deposit REQUEST and
REFRESH objects (calendar spam and denial-of-service, for example).
Implementations should consider methods to restrict anonymous
requests to within acceptable usages.
CS implementations might consider automatically creating VCARs that
allow CAP ATTENDEEs in booked objects to deposit REFRESH and REPLY
objects for those UIDs if they otherwise do not have access rather
then opening up world access. And they may also consider allowing
COUNTER objects for those ATTENDEEs.
Royer, et al. Experimental [Page 125]
^L
RFC 4324 Calendar Access Protocol December 2005
When an object is booked by a CUA ,the CS reply may wish to include
warning messages to the CUA for ATTENDEEs that have CAP urls that do
not have local UPNs as those ATTENDEES may be unable to REPLY or
REFRESH. Some CSs may wish this to be an error.
Although service provisioning is a policy matter, at a minimum, all
implementations must provide the following tuning profiles:
o for authentication: http://iana.org/beep/SASL/DIGEST-MD5
o for confidentiality: http://iana.org/beep/TLS (using the
TLS_RSA_WITH_3DES_EDE_CBC_SHA cipher)
o for both: http://iana.org/beep/TLS (using the
TLS_RSA_WITH_3DES_EDE_CBC_SHA cipher supporting client-side
certificates)
Royer, et al. Experimental [Page 126]
^L
RFC 4324 Calendar Access Protocol December 2005
Appendix A. Acknowledgements
The following individuals were major contributors to the drafting and
discussion of this memo, and they are greatly appreciated:
Alan Davies, Andrea Campi, Andre Courtemanche, Andrew Davison, Anil
Srivastava, ArentJan Banck, Arnaud Quillaud, Benjamin Sonntag,
Bernard Desruisseaux, Bertrand Guiheneuf, Bob Mahoney, Bob Morgan,
Bruce Kahn, Chris Dudding, Chris Olds, Christopher Apple, Cortlandt
Winters, Craig Johnson, Cyrus Daboo, Damon Chaplin, Dan Hickman, Dan
Kohn, Dan Winship, Darryl Champagne, David C. Thewlis, David Nicol,
David Nusbaum, David West, Derik Stenerson, Eric R. Plamondon, Frank
Dawson, Frank Nitsch, Gary Frederick, Gary McGath, Gilles Fortin,
Graham Gilmore, Greg Barnes, Greg FitzPatrick, Harald Alvestrand,
Harrie Hazewinkel, Helge Hess, Jagan Garimella, Jay Parker, Jim Ray,
Jim Smith, Joerg Reichelt, John Berthels, John Smith, John Stracke,
Jonathan Lennox, JP Rosevear, Karen Chu, Katie Capps Parlante, Kees
Cook, Ken Crawford, Ki Wong, Lars Eggert, Lata Kannan, Lawrence
Greenfield, Libby Miller, Lisa Dusseault, Lyndon Nerenberg, Mark
Davidson, Mark Paterson, Mark Smith, Mark Swanson, Mark Tearle,
Marshall Rose, Martijn van Beers, Martin Jackson, Matthias Laabs, Max
Froumentin, Micah Gorrell, Michael Fair, Mike Higginbottom, Mike
Hixson, Murata Makoto, Natalia Syracuse, Nathaniel Borenstein, Ned
Freed, Olivier Gutknecht, Patrice Lapierre, Patrice Scattolin, Paul
Hoffman, Paul Sharpe, Payod Deshpande, Pekka Pessi, Peter Thompson,
Preston Stephenson, Prometeo Sandino Roman Corral, Ralph Patterson,
Robert Lusardi, Robert Ransdell, Rob Siemborski, Satyanarayana
Vempati, Satya Vempati, Scott Hollenbeck, Seamus Garvey, Shannon
Clark, Shriram Vishwanathan, Steve Coya, Steve Mansour, Steve Miller,
Steve Vinter, Stuart Guthrie, Suchet Singh Khalsa, Ted Hardie, Tim
Hare, Timo Sirainen, Vicky Oliver, Paul Hill, and Yael Shaham-Gafni.
Appendix B. References
Appendix B.1. Normative References
[ABNF] Crocker, D., Ed. and P. Overell, "Augmented BNF for
Syntax Specifications: ABNF", RFC 4234, October 2005.
[BEEP] Rose, M., "The Blocks Extensible Exchange Protocol Core",
RFC 3080, March 2001.
[BEEPTCP] Rose, M., "Mapping the BEEP Core onto TCP", RFC 3081,
March 2001.
[BEEPGUIDE] Rose, M., "BEEP, The Definitive Guide", ISBN 0-596-
00244-0, O'Reilly & Associates, Inc.
Royer, et al. Experimental [Page 127]
^L
RFC 4324 Calendar Access Protocol December 2005
[GUIDE] Mahoney, B., Babics, G., and A. Taler, "Guide to Internet
Calendaring", RFC 3283, June 2002.
[iCAL] Dawson, F. and D. Stenerson, "Internet Calendaring and
Scheduling Core Object Specification (iCalendar)", RFC
2445, November 1998.
[iTIP] Silverberg, S., Mansour, S., Dawson, F., and R. Hopson,
"iCalendar Transport-Independent Interoperability
Protocol (iTIP) Scheduling Events, BusyTime, To-dos and
Journal Entries", RFC 2446, November 1998.
[iMIP] Dawson, F., Mansour, S., and S. Silverberg, "iCalendar
Message-Based Interoperability Protocol (iMIP)", RFC
2447, November 1998.
[MIME] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part One: Format of Internet Message
Bodies", RFC 2045, November 1996.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", RFC 2119, BCP 14, March 1997.
Appendix B.2. Informative References
[CHARREG] Freed, N. and J. Postel, "IANA Charset Registration
Procedures", RFC 2278, January 1998.
[CHARPOL] Alvestrand, H., "IETF Policy on Character Sets and
Languages", RFC 2277, January 1998.
[RFC2822] Resnick, P., Ed., "Internet Message Format", RFC 2822,
April 2001.
[SASL] Myers, J., "Simple Authentication and Security Layer
(SASL)", RFC 2222, October 1997.
[SQL92] "Database Language SQL", ANSI/ISO/IEC 9075: 1992, aka
ANSI X3.135-1992, aka FIPS PUB 127-2
[SQLCOM] ANSI/ISO/IEC 9075:1992/TC-1-1995, Technical corrigendum 1
to ISO/IEC 9075: 1992, also adopted as Amendment 1 to
ANSI X3.135.1992
[URLGUIDE] Masinter, L., Alvestrand, H., Zigmond, D., and R. Petke,
"Guidelines for new URL Schemes", RFC 2718, November
1999.
Royer, et al. Experimental [Page 128]
^L
RFC 4324 Calendar Access Protocol December 2005
[URI] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifiers (URI): Generic Syntax", RFC 3986,
January 2005.
[URL] Berners-Lee, T, Masinter, L., and M. McCahil, "Uniform
Resource Locators (URL)", RFC 1738, December 1994.
[X509CRL] Housley, R., Polk, W., Ford, W., and D. Solo, "Internet
X.509 Public Key Infrastructure Certificate and
Certificate Revocation List (CRL) Profile", RFC 3280,
April 2002.
Royer, et al. Experimental [Page 129]
^L
RFC 4324 Calendar Access Protocol December 2005
Authors' Addresses
Doug Royer
IntelliCal, LLC
267 Kentlands Blvd. #3041
Gaithersburg, MD 20878
US
Phone: +1-866-594-8574
Fax: +1-866-594-8574
EMail: Doug@IntelliCal.com
URI: http://Royer.com
George Babics
Oracle
600 Blvd. de Maisonneuve West
Suite 1900
Montreal, Quebec H3A 3J2
CA
Phone: +1-514-905-8694
EMail: george.babics@oracle.com
Steve Mansour
eBay
2145 Hamilton Avenue
San Jose, CA 95125
USA
Phone: +1-408-376-8817
EMail: smansour@ebay.com
Royer, et al. Experimental [Page 130]
^L
RFC 4324 Calendar Access Protocol December 2005
Full Copyright Statement
Copyright (C) The Internet Society (2005).
This document is subject to the rights, licenses and restrictions
contained in BCP 78, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in BCP 78 and BCP 79.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
http://www.ietf.org/ipr.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at ietf-
ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Royer, et al. Experimental [Page 131]
^L
|