idnits 2.17.1 draft-ietf-morg-list-specialuse-03.txt: Checking boilerplate required by RFC 5378 and the IETF Trust (see https://trustee.ietf.org/license-info): ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/1id-guidelines.txt: ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/checklist : ---------------------------------------------------------------------------- No issues found here. Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the IETF Trust and authors Copyright Line does not match the current year -- The document date (November 8, 2010) is 4910 days in the past. Is this intentional? Checking references for intended status: Proposed Standard ---------------------------------------------------------------------------- (See RFCs 3967 and 4897 for information about using normative references to lower-maturity documents in RFCs) ** Obsolete normative reference: RFC 3501 (Obsoleted by RFC 9051) -- Obsolete informational reference (is this intentional?): RFC 3348 (Obsoleted by RFC 5258) Summary: 1 error (**), 0 flaws (~~), 1 warning (==), 2 comments (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 Message ORGanization Working Group B. Leiba 3 Internet-Draft Huawei Technologies 4 Intended status: Standards Track J. Nicolson 5 Expires: May 12, 2011 Google 6 November 8, 2010 8 IMAP LIST extension for special-use mailboxes 9 draft-ietf-morg-list-specialuse-03 11 Abstract 13 Some IMAP message stores include special-use mailboxes, such as those 14 used to hold draft messages or sent messages. Many mail clients 15 allow users to specify where draft or sent messages should be put, 16 but configuring them requires that the user know which mailboxes the 17 server has set aside for these purposes. This extension adds new 18 mailbox flags that a server MAY include in IMAP LIST command 19 responses to identify special-use mailboxes to the client, easing 20 configuration. 22 Note 24 A revised version of this draft document will be submitted to the RFC 25 editor as a Proposed Standard for the Internet Community. Discussion 26 and suggestions for improvement are requested, and should be sent to 27 morg@ietf.org. 29 Status of this Memo 31 This Internet-Draft is submitted in full conformance with the 32 provisions of BCP 78 and BCP 79. 34 Internet-Drafts are working documents of the Internet Engineering 35 Task Force (IETF). Note that other groups may also distribute 36 working documents as Internet-Drafts. The list of current Internet- 37 Drafts is at http://datatracker.ietf.org/drafts/current/. 39 Internet-Drafts are draft documents valid for a maximum of six months 40 and may be updated, replaced, or obsoleted by other documents at any 41 time. It is inappropriate to use Internet-Drafts as reference 42 material or to cite them other than as "work in progress." 44 This Internet-Draft will expire on May 12, 2011. 46 Copyright Notice 48 Copyright (c) 2010 IETF Trust and the persons identified as the 49 document authors. All rights reserved. 51 This document is subject to BCP 78 and the IETF Trust's Legal 52 Provisions Relating to IETF Documents 53 (http://trustee.ietf.org/license-info) in effect on the date of 54 publication of this document. Please review these documents 55 carefully, as they describe your rights and restrictions with respect 56 to this document. Code Components extracted from this document must 57 include Simplified BSD License text as described in Section 4.e of 58 the Trust Legal Provisions and are provided without warranty as 59 described in the Simplified BSD License. 61 Table of Contents 63 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 64 1.1. Conventions used in this document . . . . . . . . . . . . . 3 66 2. New mailbox flags identifying special-use mailboxes . . . . 3 68 3. Extension to IMAP CREATE command to set special-use flags . 5 70 4. IMAP METADATA entry for special-use flags . . . . . . . . . 6 72 5. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 6 73 5.1. Example of an IMAP LIST command . . . . . . . . . . . . . . 6 74 5.2. Example of an extended IMAP LIST command . . . . . . . . . . 7 75 5.3. Example of an IMAP CREATE command . . . . . . . . . . . . . 7 76 5.4. Example of using IMAP METADATA to manipulate special-use 77 flags . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 79 6. Formal Syntax . . . . . . . . . . . . . . . . . . . . . . . 8 81 7. Security Considerations . . . . . . . . . . . . . . . . . . 9 83 8. IANA Considerations . . . . . . . . . . . . . . . . . . . . 9 84 8.1. Registration of USEFLAG IMAP response code . . . . . . . . . 9 85 8.2. Registration of CREATE-SPECIAL-USE IMAP capability . . . . . 9 86 8.3. Registration of SPECIAL-USE IMAP capability . . . . . . . . 10 87 8.4. Registration of SPECIAL-USE selection option . . . . . . . . 10 88 8.5. Registration of SPECIAL-USE return option . . . . . . . . . 10 89 8.6. Registration of SPECIAL-USE metadata . . . . . . . . . . . . 10 91 9. References . . . . . . . . . . . . . . . . . . . . . . . . . 11 92 9.1. Normative References . . . . . . . . . . . . . . . . . . . . 11 93 9.2. Informative References . . . . . . . . . . . . . . . . . . . 11 95 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . 11 97 1. Introduction 99 Some IMAP message stores include special-use mailboxes, such as those 100 used to hold draft messages or sent messages. Many mail clients 101 allow users to specify where draft or sent messages should be put, 102 but configuring them requires that the user know which mailboxes the 103 server has set aside for these purposes. This extension adds new 104 mailbox flags that a server MAY include in IMAP LIST command 105 responses to identify special-use mailboxes to the client, easing 106 configuration. 108 In addition, this extension adds an OPTIONAL parameter on the IMAP 109 CREATE command, allowing a client to assign a special use to a 110 mailbox when it is created. Servers MAY choose to support this part 111 of the extension, but are not required to. 113 1.1. Conventions used in this document 115 In examples, "C:" indicates lines sent by a client that is connected 116 to a server. "S:" indicates lines sent by the server to the client. 118 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 119 "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this 120 document are to be interpreted as described in RFC 2119 [RFC2119]. 122 2. New mailbox flags identifying special-use mailboxes 124 An IMAP server that supports this extension MAY include any or all of 125 the following flags in responses to the non-extended IMAP LIST 126 command. The new flags are included along with existing flags, such 127 as "\Marked" and "\Noselect". A given mailbox may have none, one, or 128 more than one of these flags. In some cases, a special use is advice 129 to a client about what to put in that mailbox. In other cases, it's 130 advice to a client about what to expect to find there. There is no 131 capability string related to the support of special-use flags on the 132 non-extended LIST command. 134 For the extended list command [RFC5258], this extension adds a new 135 capability string, a new selection option, and a new return option, 136 all called "SPECIAL-USE". Supporting implementations MUST include 137 the "SPECIAL-USE" capability string in response to an IMAP CAPABILITY 138 command. If the client specifies the "SPECIAL-USE" selection option, 139 the LIST command MUST return only those mailboxes that have a 140 special-use flag set. If the client specifies the "SPECIAL-USE" 141 return option, the LIST command MUST return the new special-use flags 142 on those mailboxes that have them set. The "SPECIAL-USE" return 143 option is implied by the "SPECIAL-USE" selection option. The 144 extended LIST command MAY return SPECIAL-USE flags even if the client 145 does not specify the return option. 147 The new flags defined here are as follows: 149 \Drafts 150 This mailbox is used to hold draft messages -- typically, 151 messages that are being composed but have not yet been sent. In 152 some server implementations, this might be a virtual mailbox, 153 containing messages from other mailboxes that are marked with 154 the "\Draft" message flag. Alternatively, this might just be 155 advice that a client put drafts here. 157 \Flagged 158 This mailbox presents all messages marked in some way as 159 "important". When this special use is supported, it is likely 160 to represent a virtual mailbox collecting messages (from other 161 mailboxes) that are marked with the "\Flagged" message flag. 163 \Junk 164 This mailbox is where messages deemed to be junk mail are held. 165 Some server implementations might put messages here 166 automatically. Alternatively, this might just be advice to a 167 client-side spam filter. 169 \Sent 170 This mailbox is used to hold copies of messages that have been 171 sent. Some server implementations might put messages here 172 automatically. Alternatively, this might just be advice that a 173 client save sent messages here. 175 \Trash 176 This mailbox is used to hold messages that have been deleted, or 177 marked for deletion. In some server implementations, this might 178 be a virtual mailbox, containing messages from other mailboxes 179 that are marked with the "\Deleted" message flag. 180 Alternatively, this might just be advice that a client that 181 chooses not to use the IMAP "\Deleted" model should use this as 182 its trash location. In server implementations that strictly 183 expect the IMAP "\Deleted" model, this special use is likely not 184 to be supported. 186 \All 187 This mailbox presents all messages in the user's message store. 188 Implementations MAY omit some messages, such as, perhaps, those 189 in \Trash and \Junk. When this special use is supported, it is 190 almost certain to represent a virtual mailbox. 192 \Archive 193 This mailbox is used to archive messages. The meaning of an 194 "archival" mailbox is server-dependent; typically, it will be 195 used to get messages out of the inbox, or otherwise keep them 196 out of the user's way, while still making them accessible. 198 All of the above flags are OPTIONAL, and any given server or message 199 store may support any combination of the flags, or none at all. In 200 some server or message store implementations it might be possible for 201 multiple mailboxes to have the same special-use flag. 203 3. Extension to IMAP CREATE command to set special-use flags 205 As an OPTIONAL feature, a server MAY allow clients to designate a 206 mailbox, at creation, as having one or more special uses. This 207 extension defines the "USE" parameter to the IMAP CREATE command for 208 that purpose (using the syntax defined in RFC 4466 section 2.2 209 [RFC4466]). The new OPTIONAL "USE" parameter is followed by a 210 parenthesized list of zero or more special-use flags, as defined 211 above. 213 In some server implementations, some special uses may imply automatic 214 action by the server. For example, creation of a "\Junk" mailbox 215 might cause the server to start placing messages that have been 216 evaluated as spam into the mailbox. 218 In some server implementations, some special uses may result in a 219 mailbox with unusual characteristics or side effects. For example, 220 creation of an "\All" mailbox might cause the server to create a 221 virtual mailbox, rather than a standard one, and that mailbox might 222 behave in unexpected ways (COPY into it might fail, for example). 224 Servers MAY allow the creation of a special-use mailbox even if one 225 so designated already exists, having the effect of moving the special 226 use from the old mailbox to the new one. Alternatively, servers MAY 227 refuse the creation, considering the designation to be a conflict. 229 If the server can not create a mailbox with the designated special 230 use defined, for whatever reason, it MUST NOT create the mailbox, and 231 MUST respond to the CREATE command with a tagged NO response. If the 232 reason for the failure is related to the special-use flag (the 233 specified special use is not supported or cannot be assigned to the 234 specified mailbox), the server SHOULD include the new "USEFLAG" 235 response code in the tagged response (see Section 5.3 for an 236 example). 238 An IMAP server that supports this OPTIONAL feature will advertise the 239 CREATE-SPECIAL-USE capability string. Clients MUST NOT use the "USE" 240 parameter unless the server advertises the capability. Note that 241 this capability string is different from the SPECIAL-USE string 242 defined above, and a server that supports both functions MUST 243 advertise both capability strings. 245 4. IMAP METADATA entry for special-use flags 247 If a server supports this extension and the METADATA extension 248 [RFC5464], it SHOULD tie the special-use flags for a mailbox to its 249 metadata entry "/shared/specialuse". The value of /shared/specialuse 250 is either NIL (if there are no special-use flags for that mailbox) or 251 a space-separated list of special-use flags, presented the same way 252 they would be presented in the LIST command response. 254 Such a server MAY allow the setting of special-use flags through the 255 METADATA mechanisms, thereby allowing clients to change the special 256 uses of existing mailboxes. These changes might have side effects, 257 as the server automatically adjusts the special uses accordingly, 258 just as it might do with CREATE USE, above. See Section 5.4 for an 259 example. 261 A server that supports this MUST check the validity of changes to the 262 special-use flags that are done through the metadata. It MUST NOT 263 allow a client to set invalid or unsupported flags, nor to create 264 conflicting or otherwise invalid situations. 266 5. Examples 268 5.1. Example of an IMAP LIST command 270 This example shows an IMAP LIST response from a server that supports 271 this extension. Note that not all of the flags are used. This 272 server also supports the Child Mailbox extension [RFC3348]. 274 C: t1 LIST "" "%" 275 S: * LIST (\Marked \HasNoChildren) "/" Inbox 276 S: * LIST (\HasNoChildren) "/" ToDo 277 S: * LIST (\HasChildren) "/" Projects 278 S: * LIST (\Sent \HasNoChildren) "/" SentMail 279 S: * LIST (\Marked \Drafts \HasNoChildren) "/" MyDrafts 280 S: * LIST (\Trash \HasNoChildren) "/" Trash 281 S: t1 OK done 283 5.2. Example of an extended IMAP LIST command 285 This example shows an IMAP LIST response from a server that supports 286 this extension. The client uses the extended IMAP LIST command. 288 C: t1 CAPABILITY 289 S: * CAPABILITY IMAP4rev1 SPECIAL-USE 290 S: t1 OK done 292 C: t2 LIST "" "%" RETURN (SPECIAL-USE) 293 S: * LIST (\Marked) "/" Inbox 294 S: * LIST () "/" ToDo 295 S: * LIST () "/" Projects 296 S: * LIST (\Sent) "/" SentMail 297 S: * LIST (\Marked \Drafts) "/" MyDrafts 298 S: * LIST (\Trash) "/" Trash 299 S: t2 OK done 301 Here, the client also includes the "SPECIAL-USE" selection option for 302 the same list. The "SPECIAL-USE" return option could also have been 303 specified, but it is unnecessary, as it is implied by the selection 304 option. Note that in this case, mailboxes that do not have a 305 special-use flag are not listed. 307 C: t3 LIST (SPECIAL-USE) "" "%" 308 S: * LIST (\Sent) "/" SentMail 309 S: * LIST (\Marked \Drafts) "/" MyDrafts 310 S: * LIST (\Trash) "/" Trash 311 S: t3 OK done 313 5.3. Example of an IMAP CREATE command 315 This example shows an IMAP CREATE command that might be used to 316 create a mailbox designated to hold draft and sent messages. It also 317 attempts to create a mailbox that will contain all the user's 318 messages, but the server does not support that special use for this 319 user's message store. 321 C: t1 CAPABILITY 322 S: * CAPABILITY IMAP4rev1 CREATE-SPECIAL-USE 323 S: t1 OK done 325 C: t2 CREATE MySpecial (USE (\Drafts \Sent)) 326 S: t2 OK MySpecial created 328 C: t3 CREATE Everything (USE (\All)) 329 S: t3 NO [USEFLAG] \All not supported 331 5.4. Example of using IMAP METADATA to manipulate special-use flags 333 This example shows how IMAP METADATA can be used to manipulate 334 special-use flags, if the operation is supported on the server. 336 ==> Starting point: 337 C: t1 LIST "" "%" RETURN (SPECIAL-USE) 338 S: * LIST (\Sent) "/" SentMail 339 S: * LIST (\Drafts) "/" MyDrafts 340 S: * LIST () "/" SavedDrafts 341 S: * LIST (\Trash) "/" Trash 342 S: t1 OK done 344 ==> Demonstrate the connection: 345 C: t2 GETMETADATA "MyDrafts" /shared/specialuse 346 S: * METADATA "MyDrafts" (/shared/specialuse "\Drafts") 347 S: t2 OK done 349 ==> Set new use for SavedDrafts; MyDrafts changes automatically: 350 C: t3 SETMETADATA "SavedDrafts" (/shared/specialuse "\Drafts") 351 S: * METADATA "MyDrafts" (/shared/specialuse NIL) 352 S: t3 OK SETMETADATA complete 354 ==> Remove special use for SentMail: 355 C: t4 SETMETADATA "SentMail" (/shared/specialuse NIL) 356 S: t4 OK SETMETADATA complete 358 ==> Check the results: 359 C: t5 LIST "" "%" RETURN (SPECIAL-USE) 360 S: * LIST () "/" SentMail 361 S: * LIST () "/" MyDrafts 362 S: * LIST (\Drafts) "/" SavedDrafts 363 S: * LIST (\Trash) "/" Trash 364 S: t5 OK done 366 6. Formal Syntax 368 The following syntax specification uses the augmented Backus-Naur 369 Form (BNF) as described in [RFC5234]. 371 create-param =/ "USE" SP "(" [use-flag *(SP use-flag)] ")" 372 ; Extends "create-param" from RFC 4466 [RFC4466] 374 mbx-list-oflag =/ use-flag 375 ; Extends "mbx-list-oflag" from IMAP base [RFC3501] 377 list-select-independent-opt =/ "SPECIAL-USE" 378 ; Extends "list-select-independent-opt" from 379 ; LIST-extended [RFC5258] 381 return-option =/ "SPECIAL-USE" 382 ; Extends "return-option" from 383 ; LIST-extended [RFC5258] 385 resp-text-code =/ "USEFLAG" 386 ; Extends "resp-text-code" from 387 ; IMAP [RFC5258] 389 use-flag = "\All" / "\Archive" / "\Drafts" / "\Flagged" / 390 "\Junk" / "\Sent" / "\Trash" / use-flag-ext 392 use-flag-ext = "\" atom 393 ; Reserved for future extensions. Clients 394 ; MUST ignore list flags they do not understand 395 ; Server implementations MUST NOT generate 396 ; extension flags except as defined by 397 ; future standards-track revisions of or 398 ; extensions to this specification. 400 7. Security Considerations 402 LIST response: There are no security issues with conveying special- 403 use information to a client. 405 CREATE command "USE" parameter: In some server implementations, some 406 special uses may imply automatic action by the server. For example, 407 creation of a "\Junk" mailbox might cause the server to start placing 408 messages that have been evaluated as spam into the mailbox. Server 409 implementors SHOULD consider the consequences of allowing a user (or 410 client program) to designate the target of such automatic action. 412 8. IANA Considerations 414 8.1. Registration of USEFLAG IMAP response code 416 This document defines a new IMAP response code. IANA is asked to add 417 "USEFLAG" to the IMAP Response Codes registry. 419 8.2. Registration of CREATE-SPECIAL-USE IMAP capability 421 This document defines a new IMAP capability. IANA is asked to add 422 "CREATE-SPECIAL-USE" to the IMAP 4 Capabilities registry. 424 8.3. Registration of SPECIAL-USE IMAP capability 426 This document defines a new IMAP capability. IANA is asked to add 427 "SPECIAL-USE" to the IMAP 4 Capabilities registry. 429 8.4. Registration of SPECIAL-USE selection option 431 This document defines a new IMAP4 List Extended selection option. 432 IANA is asked to add "SPECIAL-USE" to the IMAP4 List Extended 433 registry, as follows: 435 To: iana@iana.org 436 Subject: Registration of LIST-EXTENDED selection option SPECIAL-USE 437 LIST-EXTENDED option name: SPECIAL-USE 438 LIST-EXTENDED option type: SELECTION 439 Implied return option(s): SPECIAL-USE 440 LIST-EXTENDED option description: Limit the list to special-use 441 mailboxes only 442 Published specification: [[this RFC]] 443 Security considerations: none 444 Intended usage: COMMON 445 Person and email address to contact for further information: Authors' 446 Addresses at the end of [[this RFC]] 447 Owner/Change controller: iesg@ietf.org 449 8.5. Registration of SPECIAL-USE return option 451 This document defines a new IMAP4 List Extended return option. IANA 452 is asked to add "SPECIAL-USE" to the IMAP4 List Extended registry, as 453 follows: 455 To: iana@iana.org 456 Subject: Registration of LIST-EXTENDED return option SPECIAL-USE 457 LIST-EXTENDED option name: SPECIAL-USE 458 LIST-EXTENDED option type: RETURN 459 LIST-EXTENDED option description: Request special-use mailbox 460 information 461 Published specification: [[this RFC]] 462 Security considerations: none 463 Intended usage: COMMON 464 Person and email address to contact for further information: Authors' 465 Addresses at the end of [[this RFC]] 466 Owner/Change controller: iesg@ietf.org 468 8.6. Registration of SPECIAL-USE metadata 470 This document defines a new IMAP METADATA entry. IANA is asked to 471 add the following to the IMAP METADATA Mailbox Entry registry: 473 To: iana@iana.org 474 Subject: IMAP METADATA Entry Registration 475 Type: Mailbox 476 Name: /shared/specialuse 477 Description: Defines any special-use features of a mailbox. See the 478 reference specification for details of its use. 479 Content-type: text/plain; charset=us-ascii 480 RFC Number: [[this RFC]] 481 Contact: MORG mailing list mailto:morg@ietf.org 483 9. References 485 9.1. Normative References 487 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 488 Requirement Levels", BCP 14, RFC 2119, March 1997. 490 [RFC3501] Crispin, M., "INTERNET MESSAGE ACCESS PROTOCOL - VERSION 491 4rev1", RFC 3501, March 2003. 493 [RFC4466] Melnikov, A. and C. Daboo, "Collected Extensions to IMAP4 494 ABNF", RFC 4466, April 2006. 496 [RFC5234] Crocker, D. and P. Overell, "Augmented BNF for Syntax 497 Specifications: ABNF", STD 68, RFC 5234, January 2008. 499 [RFC5258] Leiba, B. and A. Melnikov, "Internet Message Access 500 Protocol version 4 - LIST Command Extensions", RFC 5258, 501 June 2008. 503 [RFC5464] Daboo, C., "The IMAP METADATA Extension", RFC 5464, 504 February 2009. 506 9.2. Informative References 508 [RFC3348] Gahrns, M. and R. Cheng, "The Internet Message Action 509 Protocol (IMAP4) Child Mailbox Extension", RFC 3348, 510 July 2002. 512 Authors' Addresses 514 Barry Leiba 515 Huawei Technologies 517 Phone: +1 646 827 0648 518 Email: barryleiba@computer.org 519 URI: http://internetmessagingtechnology.org/ 521 Jamie Nicolson 522 Google 524 Email: nicolson@google.com