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
  
     | 
    
      <pre>Internet Engineering Task Force (IETF)                          C. Daboo
Request for Comments: 7953                                         Apple
Updates: <a href="./rfc4791">4791</a>, <a href="./rfc5545">5545</a>, <a href="./rfc6638">6638</a>                                    M. Douglass
Category: Standards Track                            Spherical Cow Group
ISSN: 2070-1721                                              August 2016
                         <span class="h1">Calendar Availability</span>
Abstract
   This document specifies a new iCalendar (<a href="./rfc5545">RFC 5545</a>) component that
   allows the publication of available and unavailable time periods
   associated with a calendar user.  This component can be used in
   standard iCalendar free-busy lookups, including the iCalendar
   Transport-independent Interoperability Protocol (iTIP; <a href="./rfc5546">RFC 5546</a>)
   free-busy requests, to generate repeating blocks of available or busy
   time with exceptions as needed.
   This document also defines extensions to the Calendaring Extensions
   to WebDAV (CalDAV) calendar access protocol (<a href="./rfc4791">RFC 4791</a>) and the
   associated scheduling protocol (<a href="./rfc6638">RFC 6638</a>) to specify how this new
   calendar component can be used when evaluating free-busy time.
Status of This Memo
   This is an Internet Standards Track document.
   This document is a product of the Internet Engineering Task Force
   (IETF).  It represents the consensus of the IETF community.  It has
   received public review and has been approved for publication by the
   Internet Engineering Steering Group (IESG).  Further information on
   Internet Standards is available in <a href="./rfc7841#section-2">Section 2 of RFC 7841</a>.
   Information about the current status of this document, any errata,
   and how to provide feedback on it may be obtained at
   <a href="http://www.rfc-editor.org/info/rfc7953">http://www.rfc-editor.org/info/rfc7953</a>.
<span class="grey">Daboo & Douglass             Standards Track                    [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
Copyright Notice
   Copyright (c) 2016 IETF Trust and the persons identified as the
   document authors.  All rights reserved.
   This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.
Table of Contents
   <a href="#section-1">1</a>.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   <a href="#page-3">3</a>
   <a href="#section-2">2</a>.  Conventions Used in This Document . . . . . . . . . . . . . .   <a href="#page-3">3</a>
   <a href="#section-3">3</a>.  iCalendar Extensions  . . . . . . . . . . . . . . . . . . . .   <a href="#page-4">4</a>
     <a href="#section-3.1">3.1</a>.  VAVAILABILITY Component . . . . . . . . . . . . . . . . .   <a href="#page-4">4</a>
     <a href="#section-3.2">3.2</a>.  Busy Time Type  . . . . . . . . . . . . . . . . . . . . .  <a href="#page-10">10</a>
   <a href="#section-4">4</a>.  Combining VAVAILABILITY Components  . . . . . . . . . . . . .  <a href="#page-10">10</a>
   <a href="#section-5">5</a>.  Calculating Free-Busy Time  . . . . . . . . . . . . . . . . .  <a href="#page-12">12</a>
     <a href="#section-5.1">5.1</a>.  Examples  . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-13">13</a>
   <a href="#section-6">6</a>.  Use with iTIP . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-15">15</a>
   <a href="#section-7">7</a>.  CalDAV Extensions . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-15">15</a>
     <a href="#section-7.1">7.1</a>.  CalDAV Requirements Overview  . . . . . . . . . . . . . .  <a href="#page-15">15</a>
     <a href="#section-7.2">7.2</a>.  New Features in CalDAV  . . . . . . . . . . . . . . . . .  <a href="#page-16">16</a>
   <a href="#section-8">8</a>.  Security Considerations . . . . . . . . . . . . . . . . . . .  <a href="#page-19">19</a>
   <a href="#section-9">9</a>.  Privacy Considerations  . . . . . . . . . . . . . . . . . . .  <a href="#page-19">19</a>
   <a href="#section-10">10</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . .  <a href="#page-20">20</a>
     <a href="#section-10.1">10.1</a>.  Component Registrations  . . . . . . . . . . . . . . . .  <a href="#page-20">20</a>
     <a href="#section-10.2">10.2</a>.  Property Registrations . . . . . . . . . . . . . . . . .  <a href="#page-20">20</a>
   <a href="#section-11">11</a>. Normative References  . . . . . . . . . . . . . . . . . . . .  <a href="#page-20">20</a>
   <a href="#appendix-A">Appendix A</a>.  Example Calendar #1  . . . . . . . . . . . . . . . .  <a href="#page-22">22</a>
   <a href="#appendix-B">Appendix B</a>.  Example Calendar #2  . . . . . . . . . . . . . . . .  <a href="#page-23">23</a>
   Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-24">24</a>
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-24">24</a>
<span class="grey">Daboo & Douglass             Standards Track                    [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>.  Introduction</span>
   Calendar users often have regular periods of time when they are
   either available to be scheduled or always unavailable.  For example,
   an office worker will often wish only to appear free to their work
   colleagues during normal 'office hours' (e.g., Monday through Friday,
   9 am through 5 pm).  Or, a university professor might only be
   available to students during a set period of time (e.g., Thursday
   afternoons, 2 pm through 5 pm during term time only).  Ideally, users
   ought be able to specify such periods directly via their calendar
   user agent and have them automatically considered as part of the
   normal free-busy lookup for that user.  In addition, it ought be
   possible to present different periods of available time depending on
   which user is making the request.
   iCalendar [<a href="./rfc5545" title=""Internet Calendaring and Scheduling Core Object Specification (iCalendar)"">RFC5545</a>] defines a "VFREEBUSY" component that can be used
   to represent fixed busy time periods, but it does not provide a way
   to specify a repeating period of available or unavailable time.
   Since repeating patterns are often the case, "VFREEBUSY" components
   are not sufficient to solve this problem.
   This specification defines a new type of iCalendar component that can
   be used to publish user availability.
   CalDAV [<a href="./rfc4791" title=""Calendaring Extensions to WebDAV (CalDAV)"">RFC4791</a>] provides a way for calendar users to access and
   manage calendar data and exchange this data via scheduling
   operations.  As part of this, the CalDAV calendar-access [<a href="./rfc4791" title=""Calendaring Extensions to WebDAV (CalDAV)"">RFC4791</a>]
   feature provides a CALDAV:free-busy-query REPORT that returns free-
   busy information for a calendar collection or hierarchy of calendar
   collections.  Also, the CalDAV calendar-auto-schedule [<a href="./rfc6638" title=""Scheduling Extensions to CalDAV"">RFC6638</a>]
   feature allows free-busy information for a calendar user to be
   determined.  Both of these operations involve examining user
   calendars for events that 'block time', with the blocked out periods
   being returned in a "VFREEBUSY" component.
   This specification extends the CalDAV calendar-access and CalDAV
   calendar-auto-schedule features to allow the new iCalendar
   availability components to be stored and manipulated and to allow
   free-busy lookups to use the information from any such components, if
   present.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>.  Conventions Used in This Document</span>
   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
   "OPTIONAL" in this document are to be interpreted as described in
   [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="grey">Daboo & Douglass             Standards Track                    [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
   When XML element types in the namespaces "DAV:" and
   "urn:ietf:params:xml:ns:caldav" are referenced in this document
   outside of the context of an XML fragment, the string "DAV:" and
   "CALDAV:" will be prefixed to the element type names respectively.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>.  iCalendar Extensions</span>
   This specification adds a new "VAVAILABILITY" calendar component to
   iCalendar.  The "VAVAILABILITY" component is itself a container for
   new "AVAILABLE" subcomponents.
   The purpose of the "VAVAILABILITY" calendar component is to provide a
   grouping of available time information over a specific range of time.
   Within that, there are specific time ranges that are marked as
   available via a set of "AVAILABLE" calendar subcomponents.  Together
   these can be used to specify available time that can repeat over set
   periods of time, and which can vary over time.
   An illustration of how "VAVAILABILITY" and "AVAILABLE" components
   work is shown below.
                         Time Range
   <=========================================================>
      +-------------------------------------------------+
      |              VAVAILABILITY                      |
      +-------------------------------------------------+
         +------------+       +------------+
         | AVAILABLE  |       | AVAILABLE  |
         +------------+       +------------+
      <->              <----->              <-----------> Busy Time
   The overall time range is shown at the top.  A "VAVAILABILITY"
   component spans part of the range.  The time range covered by the
   "VAVAILABILITY" component is considered to be busy, except for the
   ranges covered by the "AVAILABLE" components within the
   "VAVAILABILITY" component.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>.  VAVAILABILITY Component</span>
   Component Name:  VAVAILABILITY
   Purpose:  Provide a grouping of component properties and
      subcomponents that describe the availability associated with a
      calendar user.
<span class="grey">Daboo & Douglass             Standards Track                    [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
   Format Definition:  A "VAVAILABILITY" calendar component is defined
      by the following notation:
   availabilityc  = "BEGIN" ":" "VAVAILABILITY" CRLF
                   availabilityprop *availablec
                   "END" ":" "VAVAILABILITY" CRLF
   availabilityprop  = *(
                    ;
                    ; the following are REQUIRED
                    ; but MUST NOT occur more than once
                    ;
                    dtstamp / uid
                    ;
                    ; the following are OPTIONAL
                    ; but MUST NOT occur more than once
                    ;
                    busytype / class / created / description /
                    dtstart / last-mod / location / organizer /
                    priority /seq / summary / url /
                    ;
                    ; Either 'dtend' or 'duration' MAY appear
                    ; in an 'availableprop', but 'dtend' and
                    ; 'duration' MUST NOT occur in the same
                    ; 'availabilityprop'.
                    ; 'duration' MUST NOT be present if
                    ; 'dtstart' is not present
                    ;
                    dtend / duration /
                    ;
                    ; the following are OPTIONAL
                    ; and MAY occur more than once
                    ;
                    categories / comment / contact /
                    x-prop / iana-prop
                    ;
                    )
   availablec  = "BEGIN" ":" "AVAILABLE" CRLF
                availableprop
                "END" ":" "AVAILABLE" CRLF
<span class="grey">Daboo & Douglass             Standards Track                    [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
   availableprop  = *(
                 ;
                 ; the following are REQUIRED
                 ; but MUST NOT occur more than once
                 ;
                 dtstamp / dtstart / uid /
                 ;
                 ; Either 'dtend' or 'duration' MAY appear in
                 ; an 'availableprop', but 'dtend' and
                 ; 'duration' MUST NOT occur in the same
                 ; 'availableprop'.
                 ;
                 dtend / duration /
                 ;
                 ; the following are OPTIONAL
                 ; but MUST NOT occur more than once
                 ;
                 created / description / last-mod /
                 location / recurid / rrule / summary /
                 ;
                 ; the following are OPTIONAL
                 ; and MAY occur more than once
                 ;
                 categories / comment / contact / exdate /
                 rdate / x-prop / iana-prop
                 ;
                 )
   Description:  A "VAVAILABILITY" component indicates a period of time
      within which availability information is provided.  A
      "VAVAILABILITY" component can specify a start time and an end time
      or duration.  If "DTSTART" is not present, then the start time is
      unbounded.  If "DTEND" or "DURATION" are not present, then the end
      time is unbounded.  Within the specified time period, availability
      defaults to a free-busy type of "BUSY-UNAVAILABLE" (see
      <a href="#section-3.2">Section 3.2</a>), except for any time periods corresponding to
      "AVAILABLE" subcomponents.
      "AVAILABLE" subcomponents are used to indicate periods of free
      time within the time range of the enclosing "VAVAILABILITY"
      component.  "AVAILABLE" subcomponents MAY include recurrence
      properties to specify recurring periods of time, which can be
      overridden using normal iCalendar recurrence behavior (i.e., use
      of the "RECURRENCE-ID" property).
<span class="grey">Daboo & Douglass             Standards Track                    [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
      If specified, the "DTSTART" and "DTEND" properties in
      "VAVAILABILITY" components and "AVAILABLE" subcomponents MUST be
      "DATE-TIME" values specified as either the date with UTC time or
      the date with local time and a time zone reference.
      The iCalendar object containing the "VAVAILABILITY" component MUST
      contain appropriate "VTIMEZONE" components corresponding to each
      unique "TZID" parameter value used in any DATE-TIME properties in
      all components, unless [<a href="./rfc7809" title=""Calendaring Extensions to WebDAV (CalDAV): Time Zones by Reference"">RFC7809</a>] is in effect.
      When used to publish available time, the "ORGANIZER" property
      specifies the calendar user associated with the published
      available time.
      If the "PRIORITY" property is specified in "VAVAILABILITY"
      components, it is used to determine how that component is combined
      with other "VAVAILABILITY" components.  See <a href="#section-4">Section 4</a>.
      Other calendar properties MAY be specified in "VAVAILABILITY" or
      "AVAILABLE" components and are considered attributes of the marked
      block of time.  Their usage is application specific.  For example,
      the "LOCATION" property might be used to indicate that a person is
      available in one location for part of the week and a different
      location for another part of the week (but see <a href="#section-9">Section 9</a> for when
      it is appropriate to add additional data like this).
   Example:  The following is an example of a "VAVAILABILITY" calendar
      component used to represent the availability of a user, always
      available Monday through Friday, 9:00 am to 5:00 pm in the
      America/Montreal time zone:
   BEGIN:VAVAILABILITY
   ORGANIZER:mailto:bernard@example.com
   UID:0428C7D2-688E-4D2E-AC52-CD112E2469DF
   DTSTAMP:20111005T133225Z
   BEGIN:AVAILABLE
   UID:34EDA59B-6BB1-4E94-A66C-64999089C0AF
   SUMMARY:Monday to Friday from 9:00 to 17:00
   DTSTART;TZID=America/Montreal:20111002T090000
   DTEND;TZID=America/Montreal:20111002T170000
   RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
   END:AVAILABLE
   END:VAVAILABILITY
<span class="grey">Daboo & Douglass             Standards Track                    [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
      The following is an example of a "VAVAILABILITY" calendar
      component used to represent the availability of a user available
      Monday through Thursday, 9:00 am to 5:00 pm, at the main office,
      and Friday, 9:00 am to 12:00 pm, in the branch office in the
      America/Montreal time zone between October 2nd and December 2nd
      2011:
   BEGIN:VAVAILABILITY
   ORGANIZER:mailto:bernard@example.com
   UID:84D0F948-7FC6-4C1D-BBF3-BA9827B424B5
   DTSTAMP:20111005T133225Z
   DTSTART;TZID=America/Montreal:20111002T000000
   DTEND;TZID=America/Montreal:20111202T000000
   BEGIN:AVAILABLE
   UID:7B33093A-7F98-4EED-B381-A5652530F04D
   SUMMARY:Monday to Thursday from 9:00 to 17:00
   DTSTART;TZID=America/Montreal:20111002T090000
   DTEND;TZID=America/Montreal:20111002T170000
   RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH
   LOCATION:Main Office
   END:AVAILABLE
   BEGIN:AVAILABLE
   UID:DF39DC9E-D8C3-492F-9101-0434E8FC1896
   SUMMARY:Friday from 9:00 to 12:00
   DTSTART;TZID=America/Montreal:20111006T090000
   DTEND;TZID=America/Montreal:20111006T120000
   RRULE:FREQ=WEEKLY
   LOCATION:Branch Office
   END:AVAILABLE
   END:VAVAILABILITY
      The following is an example of three "VAVAILABILITY" calendar
      components used to represent the availability of a traveling
      worker: Monday through Friday, 9:00 am to 5:00 pm each day.
      However, for three weeks the calendar user is working in Montreal,
      then one week in Denver, then back to Montreal.  Note that each
      overall period is covered by separate "VAVAILABILITY" components.
      The last of these has no DTEND so it continues on "forever".  This
      example shows one way "blocks" of available time can be
      represented.  See <a href="#section-4">Section 4</a> for another approach using priorities.
<span class="grey">Daboo & Douglass             Standards Track                    [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
   BEGIN:VAVAILABILITY
   ORGANIZER:mailto:bernard@example.com
   UID:BE082249-7BDD-4FE0-BDBA-DE6598C32FC9
   DTSTAMP:20111005T133225Z
   DTSTART;TZID=America/Montreal:20111002T000000
   DTEND;TZID=America/Montreal:20111023T030000
   BEGIN:AVAILABLE
   UID:54602321-CEDB-4620-9099-757583263981
   SUMMARY:Monday to Friday from 9:00 to 17:00
   DTSTART;TZID=America/Montreal:20111002T090000
   DTEND;TZID=America/Montreal:20111002T170000
   RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
   LOCATION:Montreal
   END:AVAILABLE
   END:VAVAILABILITY
   BEGIN:VAVAILABILITY
   ORGANIZER:mailto:bernard@example.com
   UID:A1FF55E3-555C-433A-8548-BF4864B5621E
   DTSTAMP:20111005T133225Z
   DTSTART;TZID=America/Denver:20111023T000000
   DTEND;TZID=America/Denver:20111030T000000
   BEGIN:AVAILABLE
   UID:57DD4AAF-3835-46B5-8A39-B3B253157F01
   SUMMARY:Monday to Friday from 9:00 to 17:00
   DTSTART;TZID=America/Denver:20111023T090000
   DTEND;TZID=America/Denver:20111023T170000
   RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
   LOCATION:Denver
   END:AVAILABLE
   END:VAVAILABILITY
   BEGIN:VAVAILABILITY
   ORGANIZER:mailto:bernard@example.com
   UID:1852F9E1-E0AA-4572-B4C4-ED1680A4DA40
   DTSTAMP:20111005T133225Z
   DTSTART;TZID=America/Montreal:20111030T030000
   BEGIN:AVAILABLE
   UID:D27C421F-16C2-4ECB-8352-C45CA352C72A
   SUMMARY:Monday to Friday from 9:00 to 17:00
   DTSTART;TZID=America/Montreal:20111030T090000
   DTEND;TZID=America/Montreal:20111030T170000
   RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
   LOCATION:Montreal
   END:AVAILABLE
   END:VAVAILABILITY
<span class="grey">Daboo & Douglass             Standards Track                    [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>.  Busy Time Type</span>
   Property Name:  BUSYTYPE
   Purpose:  This property specifies the default busy time type.
   Value Type:  TEXT
   Property Parameters:  IANA and nonstandard property parameters can be
      specified on this property.
   Conformance:  This property can be specified within "VAVAILABILITY"
      calendar components.
   Format Definition:  This property is defined by the following
      notation:
   busytype      = "BUSYTYPE" busytypeparam ":" busytypevalue CRLF
   busytypeparam = *(";" other-param)
   busytypevalue = "BUSY" / "BUSY-UNAVAILABLE" /
                   "BUSY-TENTATIVE" / iana-token / x-name
                  ; Default is "BUSY-UNAVAILABLE".
   Description:  This property is used to specify the default busy time
      type.  The values correspond to those used by the "FBTYPE"
      parameter used on a "FREEBUSY" property, with the exception that
      the "FREE" value is not used in this property.  If not specified
      on a component that allows this property, the default is "BUSY-
      UNAVAILABLE".
   Example:  The following is an example of this property:
   BUSYTYPE:BUSY
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>.  Combining VAVAILABILITY Components</span>
   The "VAVAILABILITY" component allows a calendar user to describe
   their availability over extended periods of time through the use of
   recurrence patterns.  This availability might be relatively constant
   from year to year.
   However, there is usually some degree of irregularity, as people take
   vacations or perhaps spend a few weeks at a different office.  For
   that period of time there is a need to redefine their availability.
   Rather than modify their existing availability, the "PRIORITY"
   property allows new "VAVAILABILITY" components to override others of
<span class="grey">Daboo & Douglass             Standards Track                   [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
   lower ordinal priority.  Note that iCalendar [<a href="./rfc5545" title=""Internet Calendaring and Scheduling Core Object Specification (iCalendar)"">RFC5545</a>] defines the
   "PRIORITY" property such that a value of 0 is undefined, 1 is the
   highest priority, and 9 is the lowest.
   When combining "VAVAILABILITY" components, an absence of a "PRIORITY"
   property or a value of 0 implies the lowest level of priority.  When
   two or more VAVAILABILITY components overlap, and they have the same
   PRIORITY value, the overlapping busy time type is determined by the
   following order: BUSY > BUSY-UNAVAILABLE > BUSY-TENTATIVE.  That is,
   if one component has a BUSYTYPE set to BUSY and the other has
   BUSYTYPE set to BUSY-UNAVAILABLE, then the effective busy time type
   over the time range that they overlap would be BUSY.  It is up to the
   creator of such components to ensure that combining them produces a
   consistent and expected result.
   To calculate the available time, order the intersecting
   "VAVAILABILITY" components by priority (the lowest to highest
   "PRIORITY" values are 0, 9, 8, 7, 6, 5, 4, 3, 2, 1).
   Step through the resulting list of "VAVAILABILITY" components.  For
   each, the time range covered by the "VAVAILABILITY" component is set
   to busy and then portions of it defined by the "AVAILABLE" components
   in the "VAVAILABILITY" component are set to free.
   Note that, if any "VAVAILABILITY" component completely covers the
   date range of interest, then any lower priority "VAVAILABILITY"
   components can be ignored.
   Typically, a calendar user's "default" availability (e.g., business
   hours of Monday through Friday, 9:00 am to 5:00 pm) would use the
   lowest level of priority: zero.  Any overrides to the "default" would
   use higher levels as needed.  To avoid having to keep readjusting the
   "PRIORITY" property value when an override has to be "inserted"
   between two existing components, priority values SHOULD be "spaced
   out" over the full range of values.  The table below illustrates this
   via an example.  The first row shows the priority range from low to
   high, the second row shows the corresponding "PRIORITY" property
   value, and the third row shows which "VAVAILABILITY" component has
   that priority.  The "default" availability is created with priority
   zero (shown as {a} in the table), then the first override created
   with priority 5 (shown as {b} in the table), a subsequent
   availability can be inserted between the two by using priority 7
   (shown as {c} in the table), and another, taking precedence over all
   existing ones, with priority 3 (shown as {d} in the table).  As seen
   in the table, additional "slots" are open for more "VAVAILABILITY"
   components to be added with other priorities if needed.
<span class="grey">Daboo & Douglass             Standards Track                   [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
            +-----+----+----+-----+----+-----+----+-----+----+------+
            | Low |    |    |     |    |     |    |     |    | High |
            +-----+----+----+-----+----+-----+----+-----+----+------+
            |  0  | 9  | 8  |  7  | 6  |  5  | 4  |  3  | 2  |  1   |
            +-----+----+----+-----+----+-----+----+-----+----+------+
            | {a} |    |    | {c} |    | {b} |    | {d} |    |      |
            +-----+----+----+-----+----+-----+----+-----+----+------+
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>.  Calculating Free-Busy Time</span>
   This section describes how free-busy time information for a calendar
   user is calculated in the presence of "VAVAILABILITY" calendar
   components.
   An iCalendar "VFREEBUSY" component is used to convey "rolled-up"
   free-busy time information for a calendar user.  This can be
   generated as the result of an iTIP [<a href="./rfc5546" title=""iCalendar Transport-Independent Interoperability Protocol (iTIP)"">RFC5546</a>] free-busy request or
   through some other mechanism (e.g., a CalDAV calendar-access
   CALDAV:free-busy-query REPORT).
   When one or more "VAVAILABILITY" components are present and intersect
   the time range for the free-busy request, first the available time is
   calculated, as outlined in <a href="#section-4">Section 4</a>.  Once that is done, regular
   "VEVENT" and "VFREEBUSY" components can be "overlaid" in the usual
   way to block out time.
   An example procedure for this is as follows:
   1.  Initially mark the entire period of the free-busy request as
       free.
   2.  For each "VAVAILABILITY" component ordered by PRIORITY (lowest to
       highest):
       A.  Determine if the "VAVAILABILITY" intersects the time range of
           the free-busy request.  If not, ignore it.
       B.  Determine if the "VAVAILABILITY" is completely overridden by
           a higher priority component.  If so, ignore it.
       C.  For the time period covered by the "VAVAILABILITY" component,
           mark time in the free-busy request result set as busy, using
           the busy time type derived from the "BUSYTYPE" property in
           the "VAVAILABILITY" component.
       D.  Append the "VAVAILABILITY" component to a list of components
           for further processing in step 3, if it has not been ignored.
<span class="grey">Daboo & Douglass             Standards Track                   [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
   3.  For each "VAVAILABILITY" component in the list resulting from
       step 2, in order from the first item to the last item:
       A.  For each "AVAILABLE" component in the "VAVAILABILITY"
           component:
           i.    Expand all recurring instances, taking into account
                 overridden instances, ignoring instances or parts of
                 instances that fall outside of the free-busy request
                 time range or the time period specified by the
                 "VAVAILABILITY" component.
           ii.   For each instance, mark the corresponding time in the
                 free-busy request result set as free.
   4.  For each "VEVENT" or "VFREEBUSY" component, apply normal free-
       busy processing within the free-busy request time range.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>.  Examples</span>
   In the examples below, a table is used to represent time slots for
   the period of a free-busy request.  Each time slot is two hours long.
   The column header represents the hours from midnight local time.
   Each row below the column headers represents a step in the free-busy
   result set determination, following the procedure outlined above.
   Each cell in the rows below the column header contains a single
   character that represents the free-busy type for the corresponding
   time period at the end of the process step represented by the row.
   The characters in the row are:
   F  Represents "FREE" time in that slot.
   B  Represents "BUSY" time in that slot.
   U  Represents "BUSY-UNAVAILABLE" time in that slot.
   T  Represents "BUSY-TENTATIVE" time in that slot.
   I  Represents data to be ignored in that slot (as per step 2.B
      above).
<span class="h4"><a class="selflink" id="section-5.1.1" href="#section-5.1.1">5.1.1</a>.  Simple Example</span>
   <a href="#appendix-A">Appendix A</a> shows the user's calendar.  This includes one
   "VAVAILABILITY" component giving available time within the requested
   time range of 8:00 am to 6:00 pm, together with one "VEVENT"
   component representing a two hour meeting starting at 12:00 pm.
<span class="grey">Daboo & Douglass             Standards Track                   [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
   A free-busy request for Monday, 6th November 2011, midnight to
   midnight in the America/Montreal time zone would be calculated as
   follows using the steps described above.
   +------+----+----+----+----+----+----+----+----+----+----+----+----+
   | Step | 0  | 2  | 4  | 6  | 8  | 10 | 12 | 14 | 16 | 18 | 20 | 22 |
   +------+----+----+----+----+----+----+----+----+----+----+----+----+
   | 1.   | F  | F  | F  | F  | F  | F  | F  | F  | F  | F  | F  | F  |
   | 2.   | U  | U  | U  | U  | U  | U  | U  | U  | U  | U  | U  | U  |
   | 3.   | U  | U  | U  | U  | F  | F  | F  | F  | F  | U  | U  | U  |
   | 4.   | U  | U  | U  | U  | F  | F  | B  | F  | F  | U  | U  | U  |
   +------+----+----+----+----+----+----+----+----+----+----+----+----+
<span class="h4"><a class="selflink" id="section-5.1.2" href="#section-5.1.2">5.1.2</a>.  Further Example</span>
   <a href="#appendix-B">Appendix B</a> shows another way to represent the availability of the
   traveling worker shown above.  Here we represent their base
   availability of Monday through Friday, 8:00 am to 6:00 pm each day
   with a "VAVAILABILITY" with default "PRIORITY" (there is no "DTEND"
   property so that this availability is unbounded).  For the week the
   calendar user is working in Denver (October 23rd through October
   30th), we represent their availability with a "VAVAILABILITY"
   component with priority 1, which overrides the base availability.
   There is also a two hour meeting starting at 12:00 pm (in the
   America/Denver time zone).
   A free-busy request for Monday, 24th October 2011, midnight to
   midnight in the America/Montreal time zone, would be calculated as
   follows using the steps described above.  Note that there is a two
   hour offset in the in the available time, compared to the previous
   example, due to the two hour difference between the time zone of the
   free-busy request and the time zone of the user's availability and
   meeting. "2.P0" shows the base availability, and "2.P1" shows the
   higher priority availability. "3.P1" only shows the higher priority
   availability contributing to the overall free-busy since the default
   availability is ignored (as per step 2.B described above).
   +------+----+----+----+----+----+----+----+----+----+----+----+----+
   | Step | 0  | 2  | 4  | 6  | 8  | 10 | 12 | 14 | 16 | 18 | 20 | 22 |
   +------+----+----+----+----+----+----+----+----+----+----+----+----+
   | 1.   | F  | F  | F  | F  | F  | F  | F  | F  | F  | F  | F  | F  |
   | 2.P0 | I  | I  | I  | I  | I  | I  | I  | I  | I  | I  | I  | I  |
   | 2.P1 | U  | U  | U  | U  | U  | U  | U  | U  | U  | U  | U  | U  |
   | 3.P1 | U  | U  | U  | U  | U  | F  | F  | F  | F  | F  | U  | U  |
   | 4.   | U  | U  | U  | U  | U  | F  | F  | B  | F  | F  | U  | U  |
   +------+----+----+----+----+----+----+----+----+----+----+----+----+
<span class="grey">Daboo & Douglass             Standards Track                   [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>.  Use with iTIP</span>
   This specification does not define how "VAVAILABILITY" components are
   used in scheduling messages sent using the iTIP [<a href="./rfc5546" title=""iCalendar Transport-Independent Interoperability Protocol (iTIP)"">RFC5546</a>] protocol.
   It is expected that future specifications will define how iTIP
   scheduling can make use of "VAVAILABILITY" components.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>.  CalDAV Extensions</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>.  CalDAV Requirements Overview</span>
   This section lists what functionality is required of a CalDAV server,
   which supports "VAVAILABILITY" components in stored calendar data.  A
   server:
   o  MUST advertise support for "VAVAILABILITY" components in
      CALDAV:supported-calendar-component-set properties on calendars
      that allow storing of such components;
   o  MUST support CALDAV:free-busy-query REPORTs that aggregate the
      information in any "VAVAILABILITY" components in the calendar
      collections targeted by the request;
   o  MUST support "VAVAILABILITY" components stored in a
      CALDAV:calendar-availability Web Distributed Authoring and
      Versioning (WebDAV) property on a CalDAV scheduling Inbox
      collection, if the CalDAV calendar-auto-schedule feature is
      supported;
   o  MUST support iTIP [<a href="./rfc5546" title=""iCalendar Transport-Independent Interoperability Protocol (iTIP)"">RFC5546</a>] free-busy requests that aggregate the
      information in any "VAVAILABILITY" components in calendar
      collections that contribute to free-busy, or in any
      "VAVAILABILITY" components stored in the CALDAV:calendar-
      availability property on the CalDAV scheduling Inbox collection of
      the calendar user targeted by the iTIP free-busy request, if the
      CalDAV calendar-auto-schedule feature is available.
   Processing of "VAVAILABILITY" components MUST conform to all the
   requirements CalDAV imposes on calendar object resources (see
   <a href="./rfc4791#section-4.1">Section 4.1 of [RFC4791]</a>).
<span class="grey">Daboo & Douglass             Standards Track                   [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>.  New Features in CalDAV</span>
<span class="h4"><a class="selflink" id="section-7.2.1" href="#section-7.2.1">7.2.1</a>.  Calendar Availability Support</span>
   A server supporting the features described in this document MUST
   include "calendar-availability" as a field in the DAV response header
   from an OPTIONS request.  A value of "calendar-availability" in the
   DAV response header indicates to clients that the server supports all
   the requirements specified in this document.
<span class="h5"><a class="selflink" id="section-7.2.1.1" href="#section-7.2.1.1">7.2.1.1</a>.  Example: Using OPTIONS for the Discovery of Calendar</span>
<span class="h5">          Availability Support</span>
   >> Request <<
   OPTIONS /home/bernard/calendars/ HTTP/1.1
   Host: cal.example.com
   >> Response <<
   HTTP/1.1 200 OK
   Allow: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, COPY, MOVE
   Allow: PROPFIND, PROPPATCH, LOCK, UNLOCK, REPORT, ACL
   DAV: 1, 2, 3, access-control, calendar-access,
    calendar-availability
   Date: Fri, 11 Nov 2005 09:32:12 GMT
   Content-Length: 0
   In this example, the OPTIONS method returns the value "calendar-
   availability" in the DAV response header to indicate that the
   collection "/home/bernard/calendars/" supports the new features
   defined in this specification.
<span class="h4"><a class="selflink" id="section-7.2.2" href="#section-7.2.2">7.2.2</a>.  CalDAV Time Range Queries</span>
   <a href="./rfc4791#section-9.9">Section 9.9 of [RFC4791]</a> describes how to specify time ranges to
   limit the set of calendar components returned by the server.  This
   specification extends [<a href="./rfc4791" title=""Calendaring Extensions to WebDAV (CalDAV)"">RFC4791</a>] to describe how to apply time range
   filtering to "VAVAILABILITY" components.
   A "VAVAILABILITY" component is said to overlap a given time range if
   the condition for the corresponding component state specified in the
   table below is satisfied.  The conditions depend on the presence of
   the "DTSTART", "DTEND", and "DURATION" properties in the
   "VAVAILABILITY" component.  Note that, as specified above, the
   "DTEND" value MUST be a "DATE-TIME" value equal to or after the
   "DTSTART" value, if specified.
<span class="grey">Daboo & Douglass             Standards Track                   [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
       +------------------------------------------------------------+
       | VAVAILABILITY has the DTSTART property?                    |
       |   +--------------------------------------------------------+
       |   | VAVAILABILITY has the DTEND property?                  |
       |   |   +----------------------------------------------------+
       |   |   | VAVAILABILITY has the DURATION property?           |
       |   |   |   +------------------------------------------------+
       |   |   |   | Condition to evaluate                          |
       +---+---+---+------------------------------------------------+
       | Y | Y | N | (start < DTEND  AND  end > DTSTART)            |
       +---+---+---+------------------------------------------------+
       | Y | N | Y | (start < DTSTART+DURATION  AND  end > DTSTART) |
       +---+---+---+------------------------------------------------+
       | Y | N | N | (end > DTSTART)                                |
       +---+---+---+------------------------------------------------+
       | N | Y | N | (start < DTEND)                                |
       +---+---+---+------------------------------------------------+
       | N | N | * | TRUE                                           |
       +---+---+---+------------------------------------------------+
<span class="h4"><a class="selflink" id="section-7.2.3" href="#section-7.2.3">7.2.3</a>.  CALDAV:free-busy-query REPORT</span>
   A CALDAV:free-busy-query REPORT can be executed on a calendar
   collection that contains iCalendar "VAVAILABILITY" components.  When
   that occurs, the server MUST aggregate the information in any
   "VAVAILABILITY" components when generating the free-busy response, as
   described in <a href="#section-5">Section 5</a>.
<span class="h4"><a class="selflink" id="section-7.2.4" href="#section-7.2.4">7.2.4</a>.  CALDAV:calendar-availability Property</span>
   Name:  calendar-availability
   Namespace:  urn:ietf:params:xml:ns:caldav
   Purpose:  Defines a "VAVAILABILITY" component that will be used in
      calculating free-busy time when an iTIP free-busy request is
      targeted at the calendar user who owns the Inbox.
   Conformance:  This property MAY be protected and SHOULD NOT be
      returned by a PROPFIND DAV:allprop request.  Support for this
      property is REQUIRED.  The value of this property MUST be a valid
      iCalendar object containing only one "VAVAILABILITY" component,
      and optionally, "VTIMEZONE" components - other iCalendar
      components MUST NOT be present.  "VTIMEZONE" components SHOULD NOT
      be present if [<a href="./rfc7809" title=""Calendaring Extensions to WebDAV (CalDAV): Time Zones by Reference"">RFC7809</a>] is in effect.  For more complex
      availability scenarios, clients can store multiple "VAVAILABILITY"
      components in the calendar user's calendar collections.
<span class="grey">Daboo & Douglass             Standards Track                   [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
   Description:  This property allows a user to specify their
      availability by including an "VAVAILABILITY" component in the
      value of this property.  If present, the server MUST use this
      "VAVAILABILITY" component when determining free-busy information
      as part of an iTIP free-busy request being handled by the server.
   Definition:
   <!ELEMENT calendar-availability (#PCDATA) >
   ; Data value MUST be an iCalendar object containing
   ; "VAVAILABILITY" or "VTIMEZONE" components.
   Example:
   <C:calendar-availability xmlns:D="DAV:"
   xmlns:C="urn:ietf:params:xml:ns:caldav"
   >BEGIN:VCALENDAR
   CALSCALE:GREGORIAN
   PRODID:-//example.com//iCalendar 2.0//EN
   VERSION:2.0
   BEGIN:VAVAILABILITY
   UID:9BADC1F6-0FC4-44BF-AC3D-993BEC8C962A
   DTSTAMP:20111005T133225Z
   DTSTART;TZID=America/Montreal:20111002T000000
   BEGIN:AVAILABLE
   UID:6C9F69C3-BDA8-424E-B2CB-7012E796DDF7
   SUMMARY:Monday to Friday from 9:00 to 18:00
   DTSTART;TZID=America/Montreal:20111002T090000
   DTEND;TZID=America/Montreal:20111002T180000
   RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
   END:AVAILABLE
   END:VAVAILABILITY
   END:VCALENDAR
   </C:calendar-availability>
<span class="h4"><a class="selflink" id="section-7.2.5" href="#section-7.2.5">7.2.5</a>.  iTIP Free-Busy Requests</span>
   The CalDAV calendar-auto-schedule feature (see <a href="./rfc6638#section-5">Section 5 of
   [RFC6638]</a>) includes a mechanism for free-busy information to be
   requested via the CalDAV protocol.  Any "VAVAILABILITY" components in
   any calendar collections targeted during such a request MUST be
   included as part of the calculation of the overall free-busy
   information.  In addition, the "VAVAILABILITY" component specified in
   the CALDAV:calendar-availability property on the owner's Inbox MUST
   also be included in the free-busy calculation.  Processing of all
   such "VAVAILABILITY" components is done as per <a href="#section-5">Section 5</a>.
<span class="grey">Daboo & Douglass             Standards Track                   [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>.  Security Considerations</span>
   Calculation of availability information, particularly with multiple
   overlapping time ranges, can be complex, and CalDAV servers MUST
   limit the complexity of such data stored by a client.
   An attacker able to "inject" availability information into a calendar
   user's calendar data could ensure that the user never appears free
   for meetings or appears free at inappropriate times.  Calendar
   systems MUST ensure that availability information for a calendar user
   can only be modified by authorized users.
   Security considerations in [<a href="./rfc5545" title=""Internet Calendaring and Scheduling Core Object Specification (iCalendar)"">RFC5545</a>], [<a href="./rfc5546" title=""iCalendar Transport-Independent Interoperability Protocol (iTIP)"">RFC5546</a>], [<a href="./rfc4791" title=""Calendaring Extensions to WebDAV (CalDAV)"">RFC4791</a>],
   [<a href="./rfc6638" title=""Scheduling Extensions to CalDAV"">RFC6638</a>], and [<a href="./rfc7809" title=""Calendaring Extensions to WebDAV (CalDAV): Time Zones by Reference"">RFC7809</a>] MUST also be adhered to.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>.  Privacy Considerations</span>
   Free-busy and availability information can be used by attackers to
   infer the whereabouts or overall level of "activity" of the
   corresponding calendar user.  Any calendar system that allows a user
   to expose their free-busy and availability information MUST limit
   access to that information to only authorized users.
   When "VAVAILABILITY" components are sent to or shared with other
   calendar users, care has to be taken not to expose more information
   than is needed by each recipient.  For example, a business owner will
   likely not want their customers to know where they might be or what
   they might be doing, but family members might be willing to expose
   such information to each other.  Thus, calendaring systems allowing
   "VAVAILABILITY" components to be sent or shared to other calendar
   users MUST provide a way for nonessential properties to be removed
   (e.g., "SUMMARY", "LOCATION", and "DESCRIPTION").
   iCalendar "VFREEBUSY" information generated from "VAVAILABILITY"
   components MUST NOT include information other than busy or free time
   periods.  In particular, user specified property values such as
   "SUMMARY", "LOCATION", and "DESCRIPTION" MUST NOT be copied into the
   free-busy result data.
   Privacy considerations in [<a href="./rfc5545" title=""Internet Calendaring and Scheduling Core Object Specification (iCalendar)"">RFC5545</a>], [<a href="./rfc5546" title=""iCalendar Transport-Independent Interoperability Protocol (iTIP)"">RFC5546</a>], [<a href="./rfc4791" title=""Calendaring Extensions to WebDAV (CalDAV)"">RFC4791</a>], [<a href="./rfc6638" title=""Scheduling Extensions to CalDAV"">RFC6638</a>],
   and [<a href="./rfc7809" title=""Calendaring Extensions to WebDAV (CalDAV): Time Zones by Reference"">RFC7809</a>] MUST also be adhered to.
<span class="grey">Daboo & Douglass             Standards Track                   [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>.  IANA Considerations</span>
<span class="h3"><a class="selflink" id="section-10.1" href="#section-10.1">10.1</a>.  Component Registrations</span>
   This document defines the following new iCalendar components, which
   have been added to the registry defined in <a href="./rfc5545#section-8.3.1">Section 8.3.1 of
   [RFC5545]</a>:
           +---------------+---------+------------------------+
           | Component     | Status  | Reference              |
           +---------------+---------+------------------------+
           | VAVAILABILITY | Current | <a href="./rfc7953#section-3.1">RFC 7953, Section 3.1</a>  |
           | AVAILABLE     | Current | <a href="./rfc7953#section-3.1">RFC 7953, Section 3.1</a>  |
           +---------------+---------+------------------------+
<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>.  Property Registrations</span>
   This documents defines the following new iCalendar properties, which
   have been added to the registry defined in <a href="./rfc5545#section-8.3.2">Section 8.3.2 of
   [RFC5545]</a>:
              +----------+---------+------------------------+
              | Property | Status  | Reference              |
              +----------+---------+------------------------+
              | BUSYTYPE | Current | <a href="./rfc7953#section-3.2">RFC 7953, Section 3.2</a>  |
              +----------+---------+------------------------+
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>.  Normative References</span>
   [<a id="ref-RFC2119">RFC2119</a>]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
              DOI 10.17487/RFC2119, March 1997,
              <<a href="http://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
   [<a id="ref-RFC4791">RFC4791</a>]  Daboo, C., Desruisseaux, B., and L. Dusseault,
              "Calendaring Extensions to WebDAV (CalDAV)", <a href="./rfc4791">RFC 4791</a>,
              DOI 10.17487/RFC4791, March 2007,
              <<a href="http://www.rfc-editor.org/info/rfc4791">http://www.rfc-editor.org/info/rfc4791</a>>.
   [<a id="ref-RFC5545">RFC5545</a>]  Desruisseaux, B., Ed., "Internet Calendaring and
              Scheduling Core Object Specification (iCalendar)",
              <a href="./rfc5545">RFC 5545</a>, DOI 10.17487/RFC5545, September 2009,
              <<a href="http://www.rfc-editor.org/info/rfc5545">http://www.rfc-editor.org/info/rfc5545</a>>.
   [<a id="ref-RFC5546">RFC5546</a>]  Daboo, C., Ed., "iCalendar Transport-Independent
              Interoperability Protocol (iTIP)", <a href="./rfc5546">RFC 5546</a>,
              DOI 10.17487/RFC5546, December 2009,
              <<a href="http://www.rfc-editor.org/info/rfc5546">http://www.rfc-editor.org/info/rfc5546</a>>.
<span class="grey">Daboo & Douglass             Standards Track                   [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
   [<a id="ref-RFC6638">RFC6638</a>]  Daboo, C. and B. Desruisseaux, "Scheduling Extensions to
              CalDAV", <a href="./rfc6638">RFC 6638</a>, DOI 10.17487/RFC6638, June 2012,
              <<a href="http://www.rfc-editor.org/info/rfc6638">http://www.rfc-editor.org/info/rfc6638</a>>.
   [<a id="ref-RFC7809">RFC7809</a>]  Daboo, C., "Calendaring Extensions to WebDAV (CalDAV):
              Time Zones by Reference", <a href="./rfc7809">RFC 7809</a>, DOI 10.17487/RFC7809,
              March 2016, <<a href="http://www.rfc-editor.org/info/rfc7809">http://www.rfc-editor.org/info/rfc7809</a>>.
<span class="grey">Daboo & Douglass             Standards Track                   [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>.  Example Calendar #1</span>
   BEGIN:VCALENDAR
   CALSCALE:GREGORIAN
   PRODID:-//example.com//iCalendar 2.0//EN
   VERSION:2.0
   BEGIN:VEVENT
   DTSTAMP:20111113T044111Z
   DTSTART;TZID=America/Montreal:20111106T120000
   DURATION:PT2H
   SUMMARY:Meeting
   UID:768CB0C2-8642-43F7-A6C4-F8BB04B829B4
   END:VEVENT
   BEGIN:VAVAILABILITY
   UID:452DFCA7-3203-4A3D-9A9A-99753A383B41
   DTSTAMP:20111005T133225Z
   DTSTART;TZID=America/Montreal:20111002T000000
   BEGIN:AVAILABLE
   UID:466D5C68-5C4A-4078-AF5D-9C55EA9145D7
   SUMMARY:Monday to Friday from 8:00 to 18:00
   DTSTART;TZID=America/Montreal:20111002T080000
   DTEND;TZID=America/Montreal:20111002T180000
   RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
   END:AVAILABLE
   END:VAVAILABILITY
   END:VCALENDAR
<span class="grey">Daboo & Douglass             Standards Track                   [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
<span class="h2"><a class="selflink" id="appendix-B" href="#appendix-B">Appendix B</a>.  Example Calendar #2</span>
   BEGIN:VCALENDAR
   CALSCALE:GREGORIAN
   PRODID:-//example.com//iCalendar 2.0//EN
   VERSION:2.0
   BEGIN:VEVENT
   DTSTAMP:20111113T044111Z
   DTSTART;TZID=America/Denver:20111106T120000
   DURATION:PT2H
   SUMMARY:Lunch meeting in Denver
   UID:2346C09A-42BF-439E-916C-FC83AF869171
   END:VEVENT
   BEGIN:VAVAILABILITY
   ORGANIZER:mailto:bernard@example.com
   UID:627A87FA-E5F1-43C0-B3B1-567DA10F2A83
   DTSTAMP:20111005T133225Z
   DTSTART;TZID=America/Montreal:20111002T000000
   BEGIN:AVAILABLE
   UID:A833E850-892B-43F6-98B6-C15A6BFC5D27
   SUMMARY:Monday to Friday from 9:00 to 17:00
   DTSTART;TZID=America/Montreal:20111002T080000
   DTEND;TZID=America/Montreal:20111002T180000
   RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
   LOCATION:Montreal
   END:AVAILABLE
   END:VAVAILABILITY
   BEGIN:VAVAILABILITY
   ORGANIZER:mailto:bernard@example.com
   UID:F01411E3-38B8-4490-8A1F-0CCEC57A0943
   DTSTAMP:20111005T133225Z
   DTSTART;TZID=America/Denver:20111023T000000
   DTEND;TZID=America/Denver:20111030T000000
   PRIORITY:1
   BEGIN:AVAILABLE
   UID:A35AA091-3846-48ED-96F6-881E8A0D0A93
   SUMMARY:Monday to Friday from 9:00 to 17:00
   DTSTART;TZID=America/Denver:20111023T080000
   DTEND;TZID=America/Denver:20111023T180000
   RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
   LOCATION:Denver
   END:AVAILABLE
   END:VAVAILABILITY
   END:VCALENDAR
<span class="grey">Daboo & Douglass             Standards Track                   [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc7953">RFC 7953</a>                  Calendar Availability              August 2016</span>
Acknowledgements
   Thanks to the following for providing feedback: Toby Considine,
   Bernard Desruisseaux, Alexey Melnikov, Daniel Migault, Ken Murchison,
   Evert Pot, and Dave Thewlis.  This specification came about via
   discussions at the Calendaring and Scheduling Consortium.
Authors' Addresses
   Cyrus Daboo
   Apple Inc.
   1 Infinite Loop
   Cupertino, CA  95014
   United States of America
   Email: cyrus@daboo.name
   URI:   <a href="http://www.apple.com/">http://www.apple.com/</a>
   Michael Douglass
   Spherical Cow Group
   226 3rd Street
   Troy, NY  12180
   United States of America
   Email: mdouglass@sphericalcowgroup.com
   URI:   <a href="http://sphericalcowgroup.com">http://sphericalcowgroup.com</a>
Daboo & Douglass             Standards Track                   [Page 24]
</pre>
 
     |