summaryrefslogtreecommitdiff
path: root/imap/docs/rfc/rfc5788.txt
blob: fe0de7097e056d5da3de1c11fe4825cd418310f5 (plain)
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






Internet Engineering Task Force (IETF)                       A. Melnikov
Request for Comments: 5788                                   D. Cridland
Category: Standards Track                                  Isode Limited
ISSN: 2070-1721                                               March 2010


                         IMAP4 Keyword Registry

Abstract

   The aim of this document is to establish a new IANA registry for IMAP
   keywords and to define a procedure for keyword registration, in order
   to improve interoperability between different IMAP clients.

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 Section 2 of RFC 5741.

   Information about the current status of this document, any errata,
   and how to provide feedback on it may be obtained at
   http://www.rfc-editor.org/info/rfc5788.

Copyright Notice

   Copyright (c) 2010 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) 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.









Melnikov & Cridland          Standards Track                    [Page 1]

RFC 5788                 IMAP4 Keyword Registry               March 2010


Table of Contents

   1. Introduction ....................................................2
   2. Conventions Used in This Document ...............................2
   3. IANA Considerations .............................................3
      3.1. Review Guidelines for the Designated Expert Reviewer .......4
      3.2. Comments on IMAP Keywords' Registrations ...................5
      3.3. Change Control .............................................5
      3.4. Initial Registrations ......................................6
           3.4.1. $MDNSent IMAP Keyword Registration ..................6
           3.4.2. $Forwarded IMAP Keyword Registration ................7
           3.4.3. $SubmitPending IMAP Keyword Registration ............8
           3.4.4. $Submitted IMAP Keyword Registration ................9
   4. Security Considerations ........................................10
   5. Acknowledgements ...............................................10
   6. References .....................................................10
      6.1. Normative References ......................................10
      6.2. Informative References ....................................11

1.  Introduction

   IMAP keywords [RFC3501] are boolean named flags that can be used by
   clients to annotate messages in an IMAP mailbox.  Although IMAP
   keywords are an optional feature of IMAP, the majority of IMAP
   servers can store arbitrary keywords.  Many mainstream IMAP clients
   use a limited set of specific keywords, and some can manage (create,
   edit, display) arbitrary IMAP keywords.

   Over the years, some IMAP keywords have become de-facto standards,
   with some specific semantics associated with them.  In some cases,
   different client implementors decided to define and use keywords with
   different names, but the same semantics.  Some server implementors
   decided to map such keywords automatically in order to improve cross-
   client interoperability.

   In other cases, the same keywords have been used with different
   semantics, thus causing interoperability problems.

   This document attempts to prevent further incompatible uses of IMAP
   keywords by establishing an "IMAP Keywords" registry and allocating a
   special prefix for standardized keywords.

2.  Conventions Used in This Document

   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 RFC 2119 [Kwds].




Melnikov & Cridland          Standards Track                    [Page 2]

RFC 5788                 IMAP4 Keyword Registry               March 2010


3.  IANA Considerations

   IANA has established a new registry for IMAP keywords.

   Registration of an IMAP keyword is requested by filling in the
   following template and following the instructions on the IANA pages
   for the registry to submit it to IANA:

   Subject:    Registration of IMAP keyword X

   IMAP keyword name:

   Purpose (description):

   Private or Shared on a server:  (One of PRIVATE, SHARED, or BOTH.
                                   PRIVATE means that each different
                                   user has a distinct copy of the
                                   keyword.  SHARED means that all
                                   different users see the same value of
                                   the keyword.  BOTH means that an IMAP
                                   server can have the keyword as either
                                   private or shared.)

   Is it an advisory keyword or may it cause an automatic action:

   When/by whom the keyword is set/cleared:

   Related keywords:  (for example, "mutually exclusive with keywords Y
                      and Z")

   Related IMAP capabilities:

   Security considerations:

   Published specification (recommended):

   Person & email address to contact for further information:

   Intended usage:  (One of COMMON, LIMITED USE, or DEPRECATED (i.e.,
                    not recommended for use))

   Owner/Change controller:  (MUST be "IESG" for any "common use"
                             keyword registration specified in an IETF
                             Review document.  See definition of "common
                             use" below in this section.  When the
                             Owner/Change controller is not a
                             Standardization Organization, the
                             registration request MUST make it clear if



Melnikov & Cridland          Standards Track                    [Page 3]

RFC 5788                 IMAP4 Keyword Registry               March 2010


                             the registration is controlled by a
                             company, or the individual performing the
                             registration.)

   Note:       (Any other information that the author deems interesting
               may be added here, for example, if the keyword(s) is
               supported by existing clients.)

   Registration of an IMAP keyword requires Expert Review [RFC5226].
   Registration of any IMAP keyword is initiated by posting a
   registration request to the Message Organization WG mailing list
   <morg@ietf.org> (or its replacement as chosen by the responsible
   Application Area Director) and CCing IANA (<iana@iana.org>).  After
   allowing for at least two weeks for community input on the designated
   mailing list, the expert will determine the appropriateness of the
   registration request and either approve or disapprove the request
   with notice to the requestor, the mailing list, and IANA.  Any
   refusal must come with a clear explanation.

   The IESG appoints one or more Expert Reviewers for the IMAP keyword
   registry established by this document.

   The Expert Reviewer should strive for timely reviews.  The Expert
   Reviewer should take no longer than six weeks to make and announce
   the decision, or notify the mailing list that more time is required.

   Decisions (or lack of) made by an Expert Reviewer can be first
   appealed to Application Area Directors and, if the appellant is not
   satisfied with the response, to the full IESG.

   There are two types of IMAP keywords in the "IMAP Keywords" registry:
   intended for "common use" and vendor-/organization-specific use (also
   known as "limited use").  An IMAP keyword is said to be for "common
   use" if it is reasonably expected to be implemented in at least two
   independent client implementations.  The two types of IMAP keywords
   have different levels of requirements for registration (see below).

3.1.  Review Guidelines for the Designated Expert Reviewer

   Expert Reviewers should focus on the following requirements.

   Registration of a vendor-/organization-specific ("limited use") IMAP
   keyword is easier.  The Expert Reviewer only needs to check that the
   requested name doesn't conflict with an already registered name, and
   that the name is not too generic, misleading, etc.  The Expert
   Reviewer MAY request the IMAP keyword name change before approving





Melnikov & Cridland          Standards Track                    [Page 4]

RFC 5788                 IMAP4 Keyword Registry               March 2010


   the registration.  The Expert Reviewer SHOULD refuse a registration
   if there is an already registered IMAP keyword that serves the same
   purpose, but has a different name.

   When registering an IMAP keyword for "common use", the Expert
   Reviewer performs the checks described for vendor-/
   organization-specific IMAP keywords, plus additional checks as
   detailed below.

   Keywords intended for "common use" SHOULD start with the "$" prefix.
   (Note that this is a SHOULD because some of the commonly used IMAP
   keywords in widespread use don't follow this convention.)

   IMAP keywords intended for "common use" SHOULD be standardized in
   IETF Review [RFC5226] documents.  (Note that IETF Review documents
   still require Expert Review.)

   Values in the "IMAP Keywords" IANA registry intended for "common use"
   must be clearly documented and likely to ensure interoperability.
   They must be useful, not harmful to the Internet.  In cases when an
   IMAP keyword being registered is already deployed, Expert Reviewers
   should favor registering it over requiring perfect documentation
   and/or requesting a change to the name of the IMAP keyword.

   The Expert Reviewer MAY automatically "upgrade" registration requests
   for a "limited use" IMAP keyword to "common use" level.  The Expert
   Reviewer MAY also request that a registration targeted for "common
   use" be registered as "limited use" instead.

3.2.  Comments on IMAP Keywords' Registrations

   Comments on registered IMAP keywords should be sent to both the
   "owner" of the mechanism and to the mailing list designated to IMAP
   keyword review (see Section 3).  This improves the chances of getting
   a timely response.

   Submitters of comments may, after a reasonable attempt to contact the
   owner and after soliciting comments on the IMAP mailing list, request
   the designated Expert Reviewer to attach their comment to the IMAP
   keyword registration itself.  The procedure is similar to requesting
   an Expert Review for the affected keyword.

3.3.  Change Control

   Once an IMAP keyword registration has been published by IANA, the
   owner may request a change to its definition.  The change request
   (including a change to the "intended usage" field) follows the same
   procedure as the initial registration request, with the exception of



Melnikov & Cridland          Standards Track                    [Page 5]

RFC 5788                 IMAP4 Keyword Registry               March 2010


   changes to the "Person & email address to contact for further
   information" and "Owner/Change controller" fields.  The latter can be
   changed by the owner by informing IANA; this can be done without
   discussion or review.

   The IESG may reassign responsibility for an IMAP keyword.  The most
   common case of this will be to enable clarifications to be made to
   keywords where the owner of the registration has died, moved out of
   contact, or is otherwise unable to make changes that are important to
   the community.

   IMAP keyword registrations MUST NOT be deleted; keywords that are no
   longer believed appropriate for use can be declared DEPRECATED by a
   change to their "intended usage" field.

   The IESG is considered the owner of all "common use" IMAP keywords
   that are published in an IETF Review document.

3.4.  Initial Registrations

   IANA has registered the IMAP keywords specified in following
   subsections in the registry established by this document.

3.4.1.  $MDNSent IMAP Keyword Registration

   Subject:    Registration of IMAP keyword $MDNSent


   IMAP keyword name:  $MDNSent

   Purpose (description):  Specifies that a Message Disposition
                           Notification (MDN) must not be sent for any
                           message annotated with the $MDNSent IMAP
                           keyword.

   Private or Shared on a server:  SHARED

   Is it an advisory keyword or may it cause an automatic action:
                           This keyword can cause automatic action by
                           the client.  See [RFC3503] for more details.

   When/by whom the keyword is set/cleared:
                           This keyword is set by an IMAP client when it
                           decides to act on an MDN request, or when
                           uploading a sent or draft message.  It can
                           also be set by a delivery agent.  Once set,
                           the flag SHOULD NOT be cleared.




Melnikov & Cridland          Standards Track                    [Page 6]

RFC 5788                 IMAP4 Keyword Registry               March 2010


   Related keywords:  None

   Related IMAP capabilities:  None

   Security considerations:  See Section 6 of [RFC3503]

   Published specification (recommended):  [RFC3503]

   Person & email address to contact for further information:
                           Alexey Melnikov <alexey.melnikov@isode.com>

   Intended usage:  COMMON

   Owner/Change controller:  IESG

   Note:

3.4.2.  $Forwarded IMAP Keyword Registration

   Subject:    Registration of the IMAP keyword $Forwarded

   IMAP keyword name:  $Forwarded

   Purpose (description):  $Forwarded is used by several IMAP clients to
                           specify that the message was resent to
                           another email address, embedded within or
                           attached to a new message.  This keyword is
                           set by the mail client when it successfully
                           forwards the message to another email
                           address.  Typical usage of this keyword is to
                           show a different (or additional) icon for a
                           message that has been forwarded.

   Private or Shared on a server:  BOTH

   Is it an advisory keyword or may it cause an automatic action:
                           advisory

   When/by whom the keyword is set/cleared:
                           This keyword can be set by either a delivery
                           agent or a mail client.  Once set, the flag
                           SHOULD NOT be cleared.  Notes: There is no
                           way to tell if a message with $Forwarded
                           keyword set was forwarded more than once.

   Related keywords:  None

   Related IMAP capabilities:  None



Melnikov & Cridland          Standards Track                    [Page 7]

RFC 5788                 IMAP4 Keyword Registry               March 2010


   Security considerations:  A server implementing this keyword as a
                             shared keyword may disclose that a
                             confidential message was forwarded.

   Published specification (recommended):  [RFC5550]

   Person & email address to contact for further information:
                           Alexey Melnikov <alexey.melnikov@isode.com>

   Intended usage:  COMMON

   Owner/Change controller:  IESG

   Note:

3.4.3.  $SubmitPending IMAP Keyword Registration

   Subject:    Registration of IMAP keyword $SubmitPending

   IMAP keyword name:  $SubmitPending

   Purpose (description):  The $SubmitPending IMAP keyword designates
                           the message as awaiting to be submitted.
                           This keyword allows storing messages waiting
                           to be submitted in the same mailbox where
                           messages that were already submitted and/or
                           are being edited are stored.

                           A message that has both $Submitted and
                           $SubmitPending IMAP keywords set is a message
                           being actively submitted.

   Private or Shared on a server:  SHARED

   Is it an advisory keyword or may it cause an automatic action:
                            This keyword can cause automatic action by
                           the client.  See Section 5.10 of [RFC5550]
                           for more details.

   When/by whom the keyword is set/cleared:
                           This keyword is set by a mail client when it
                           decides that the message needs to be sent
                           out.

   Related keywords:  $Submitted

   Related IMAP capabilities:  None




Melnikov & Cridland          Standards Track                    [Page 8]

RFC 5788                 IMAP4 Keyword Registry               March 2010


   Security considerations:  A server implementing this keyword as a
                             shared keyword may disclose that a
                             confidential message is scheduled to be
                             sent out or is being actively sent out.

   Published specification (recommended):  [RFC5550]

   Person & email address to contact for further information:
                           Alexey Melnikov <alexey.melnikov@isode.com>

   Intended usage:  COMMON

   Owner/Change controller:  IESG

   Note:

3.4.4.  $Submitted IMAP Keyword Registration

   Subject:    Registration of IMAP keyword $Submitted

   IMAP keyword name:  $Submitted

   Purpose (description):  The $Submitted IMAP keyword designates the
                           message as being sent out.

                           A message that has both $Submitted and
                           $SubmitPending IMAP keywords set is a message
                           being actively submitted.

   Private or Shared on a server:  SHARED

   Is it an advisory keyword or may it cause an automatic action:
                           This keyword can cause automatic action by
                           the client.  See Section 5.10 of [RFC5550]
                           for more details.

   When/by whom the keyword is set/cleared:
                           This keyword is set by a mail client when it
                           decides to start sending it.

   Related keywords:  $SubmitPending

   Related IMAP capabilities:  None

   Security considerations:  A server implementing this keyword as a
                             shared keyword may disclose that a
                             confidential message was sent or is being
                             actively sent out.



Melnikov & Cridland          Standards Track                    [Page 9]

RFC 5788                 IMAP4 Keyword Registry               March 2010


   Published specification (recommended):  [RFC5550]

   Person & email address to contact for further information:
                           Alexey Melnikov <alexey.melnikov@isode.com>

   Intended usage:  COMMON

   Owner/Change controller:  IESG

   Note:

4.  Security Considerations

    IMAP keywords are one of the base IMAP features [RFC3501].  This
    document doesn't change their behavior, so it does not add new
    security issues.

    A particular IMAP keyword might have specific security
    considerations, which are documented in the IMAP keyword
    registration template standardized by this document.

5.  Acknowledgements

   The creation of this document was prompted by one of many discussions
   on the IMAP mailing list.

   John Neystadt co-authored the first version of this document.

   Special thanks to Chris Newman, David Harris, Lyndon Nerenberg, Mark
   Crispin, Samuel Weiler, Alfred Hoenes, Lars Eggert, and Cullen
   Jennings for reviewing different versions of this document.  However,
   all errors or omissions must be attributed to the authors of this
   document.

   The authors would also like to thank the developers of Mozilla mail
   clients for providing food for thought.

6.  References

6.1.  Normative References

   [Kwds]     Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119, March 1997.

   [RFC3501]  Crispin, M., "INTERNET MESSAGE ACCESS PROTOCOL - VERSION
              4rev1", RFC 3501, March 2003.





Melnikov & Cridland          Standards Track                   [Page 10]

RFC 5788                 IMAP4 Keyword Registry               March 2010


   [RFC5226]  Narten, T. and H. Alvestrand, "Guidelines for Writing an
              IANA Considerations Section in RFCs", BCP 26, RFC 5226,
              May 2008.

6.2.  Informative References

   [RFC3503]  Melnikov, A., "Message Disposition Notification (MDN)
              profile for Internet Message Access Protocol (IMAP)",
              RFC 3503, March 2003.

   [RFC5550]  Cridland, D., Melnikov, A., and S. Maes, "The Internet
              Email to Support Diverse Service Environments (Lemonade)
              Profile", RFC 5550, August 2009.

Authors' Addresses

   Alexey Melnikov
   Isode Limited
   5 Castle Business Village
   36 Station Road
   Hampton, Middlesex  TW12 2BX
   UK

   EMail: Alexey.Melnikov@isode.com
   URI:   http://www.melnikov.ca/


   Dave Cridland
   Isode Limited
   5 Castle Business Village
   36 Station Road
   Hampton, Middlesex  TW12 2BX
   UK

   EMail: dave.cridland@isode.com
















Melnikov & Cridland          Standards Track                   [Page 11]