draft-melnikov-imap-ext-abnf-02.txt  -->   draft-melnikov-imap-ext-abnf-03.txt

view Side-By-Side changes

Document: draft-melnikov-imap-ext-abnf                      Isode Ltd.
Expires: December 2005 January 2006                                      Cyrus Daboo
                                                          ISAMET, Inc.
                                                             June
                                                             July 2005

                  Collected extensions to IMAP4 ABNF
                    draft-melnikov-imap-ext-abnf-02
                    draft-melnikov-imap-ext-abnf-03
   
Status of this Memo
   
   By submitting this Internet-Draft, each author represents that any
   applicable patent or other IPR claims of which he or she is aware
   have been or will be disclosed, and any of which he or she becomes
   aware will be disclosed, in accordance with Section 6 of BCP 79.
   
   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF), its areas, and its working groups.  Note that
   other groups may also distribute working documents as Internet-
   Drafts.
   Internet-Drafts are draft documents valid for a maximum of six
   months and may be updated, replaced, or obsoleted by other
   documents at any time.  It is inappropriate to use Internet-Drafts
   as reference material or to cite them other than as "work in
   progress."
   
   The list of current Internet-Drafts can be accessed at
   http://www.ietf.org/ietf/1id-abstracts.txt
   
   The list of Internet-Draft Shadow Directories can be accessed at
   http://www.ietf.org/shadow.html.
   
   A revised version of this draft document will be submitted to the
   RFC editor as a Standard Track RFC for the Internet Community.
   Discussion and suggestions for improvement are requested, and
   should be sent to ietf-imapext@imc.org and/or lemonade@ietf.org.
   Distribution of this memo is unlimited.
   
   
Abstract
   
   Over years many documents from IMAPEXT and LEMONADE working groups,
   as well as many individual documents have added syntactic
   extensions to many base IMAP commands described in RFC 3501. For
   ease of reference this document collects most of such ABNF changes
   in one place.
   
   This document updates ABNF in RFC 3501.


   
Table of Contents

  1. Conventions Used in this Document                              2
  2. IMAP ABNF extensions                                           3
     2.1 Optional parameters with the SELECT/EXAMINE commands       3
     2.2 Extended CREATE command                                    4
     2.3 Extended RENAME command                                    5
     2.4 Extensions to FETCH and UID FETCH Commands                 4
     2.3                 5
     2.5 Extensions to STORE and UID STORE Commands                 4
     2.4                 6
     2.6 Extensions to SEARCH Command                               5
     2.5                               6
     2.7 Extensions to APPEND Command                               6                               7
  3. Formal Syntax                                                  6                                                  7
  4. Security Considerations                                        9                                       11
  5. IANA Considerations                                            9                                           11
  6. References                                                     9                                                    12
     6.1 Normative References                                       9                                      12
  7. Acknowledgments                                               10                                               12
  8. Author's Addresses                                            10                                            12
  9. Full Copyright Statement                                      10                                      13
  10. Intellectual Property                                        11                                        13
  11. Appendix A. Editorial.                                       11                                       14
     11.1 Change Log                                               11                                               14
     
   
1.   Conventions Used in this Document
   
   In examples, "C:" and "S:" indicate lines sent by the client and
   server respectively.
   
   The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and "MAY"
   in this document are to be interpreted as defined in "Key words for
   use in RFCs to Indicate Requirement Levels" [KEYWORDS].

   <<Editorial comments and questions are enclosed like this>>


2.   IMAP ABNF extensions

   This section is not normative. It provides with some background on
   intended use of different extensions and it tries to give some
   guidance about how future extensions should extend the described
   commands.
   
   
2.1  Optional parameters with the SELECT/EXAMINE commands
   
   This documents adds the ability to include one or more parameters
   with the IMAP SELECT or EXAMINE commands, to turn on or off certain
   standard behaviour, or to add new optional behaviours required for
   a particular extension.
   
   There are two possible modes of operation:
   
   o  A global state change where a single use of the optional
      parameter will effect the session state from that time on,
      irrespective of subsequent SELECT/EXAMINE commands.
   
   o  A per-mailbox state change that will effect the session only for
      the duration of the new selected state.  A subsequent SELECT/
      EXAMINE without the optional parameter will cancel its effect
      For the newly selected mailbox.
   
   Optional parameters to the SELECT or EXAMINE commands are added as
   a parenthesised list of atoms or strings, and appear after the
   mailbox name in the standard SELECT or EXAMINE command.  The order
   of individual parameters is arbitrary.  Individual parameters may
   consist of one or more atoms or strings in a specific order.  If a
   parameter consists of more than one atom or string, it MUST appear
   in its own parenthesised list.  Any parameter not defined by
   extensions that the server supports MUST must be rejected with a BAD
   response.
   
      Example:
   
              C: a SELECT INBOX (ANNOTATE)
              S: ...
              S: a OK SELECT complete
   
      In the above example, a single parameter is used with the SELECT
      command.
   
      Example:
   
              C: a EXAMINE INBOX (ANNOTATE (RESPONSES RESPONSES "UID Responses") Responses"
                 CONDSTORE)
              S: ...
              S: a OK EXAMINE complete
   
      In the above example, three parameters are used with the EXAMINE
      command.  The second parameter consists of two items: an atom
      followed by a quoted string.
   
      Example:
   
              C: a SELECT INBOX (BLURDYBLOOP)
              S: a BAD Unknown parameter in SELECT command
   
      In the above example, a parameter not supported by the server is
      used. This results in the BAD response from the
      server.
   
2.2  Extensions to FETCH and UID FETCH Commands  Extended CREATE command
   
    Arguments:  sequence set
                message data item names or macro  mailbox name
                OPTIONAL fetch modifiers partition identifier <<?>>
                OPTIONAL list of CREATE parameters
   
    Responses:  untagged responses: FETCH  no specific responses for this command
   
    Result:     OK - fetch create completed
                NO - fetch error: create failure: can't fetch create mailbox with
                     that data name
                BAD - command unknown or arguments argument(s) invalid
   
   This document extends documents adds the syntax of ability to include one or more parameters
   with the FETCH and UID FETCH
   commands IMAP CREATE command (see section 6.4.5 6.3.3 of [IMAP4]) [IMAP4]), to include
   turn on or off certain standard behaviour, or to add new optional FETCH
   modifiers.
   behaviours required for a particular extension.  No fetch modifiers CREATE
   parameters are defined in this document.
   
   Optional parameters to the CREATE command are added as a
   parenthesised list of attribute/value pairs after the <<after
   partition>> mailbox name. Each value can be either an atom, a
   string or a list. The order of individual modifiers parameters is arbitrary.  An individual
   modifier
   Individual parameters may consist of one or more atoms or strings
   in a specific order. If a modifier parameter consists of more than one atom
   or string, it MUST appear in its own parenthesised list. Any modifiers
   parameter not defined by extensions that the server supports MUST must
   be rejected with a BAD response.
   
   
2.3  Extensions to STORE and UID STORE Commands  Extended RENAME command
   
    Arguments:  message set
               OPTIONAL store modifiers
               message data item  existing mailbox name
               value for message data item
                new mailbox name
                OPTIONAL new partition identifier <<?>>
                OPTIONAL list of RENAME parameters
   
    Responses:  untagged responses: FETCH  no specific responses for this command
   
    Result:     OK - store rename completed
                NO - store error: rename failure: can't store rename mailbox with
                     that data name, can't rename to mailbox with
                     that name, can't move the mailbox to the
                     specified partition, etc.
                BAD - command unknown or arguments argument(s) invalid
   
   This document extends documents adds the syntax of ability to include one or more parameters
   with the STORE and UID IMAP RENAME command (see section 6.3.5 of [IMAP4]), to
   turn on or off certain standard behaviour, or to add new optional
   behaviours required for a particular extension.  No RENAME
   parameters are defined in this document.
   
   Optional parameters to the RENAME command are added as a
   parenthesised list of attribute/value pairs after the new mailbox
   name <<after the new partition?>>. Each value can be either an
   atom, a string or a list. The order of individual parameters is
   arbitrary. Individual parameters may consist of one or more atoms
   or strings in a specific order. If a parameter consists of more
   than one atom or string, it MUST appear in its own parenthesised
   list. Any parameter not defined by extensions that the server
   supports must be rejected with a BAD response.
   
   
2.4  Extensions to FETCH and UID FETCH Commands
   
    Arguments:  sequence set
                message data item names or macro
                OPTIONAL fetch modifiers
   
    Responses:  untagged responses: FETCH
   
    Result:     OK - fetch completed
                NO - fetch error: can't fetch that data
                BAD - command unknown or arguments invalid
   
   This document extends the syntax of the FETCH and UID FETCH
   commands (see section 6.4.5 of [IMAP4]) to include optional FETCH
   modifiers.  No fetch modifiers are defined in this document.
   
   The order of individual modifiers is arbitrary.  An individual
   modifier may consist of one or more atoms or strings in a specific
   order.  If a modifier consists of more than one atom or string, it
   MUST appear in its own parenthesised list.  Any modifiers not
   defined by extensions that the server supports must be rejected
   with a BAD response.
   
   
2.5  Extensions to STORE and UID STORE Commands
   
   Arguments:  message set
               OPTIONAL store modifiers
               message data item name
               value for message data item
   
   Responses:  untagged responses: FETCH
   
   Result:     OK - store completed
               NO - store error: can't store that data
               BAD - command unknown or arguments invalid

   This document extends the syntax of the STORE and UID STORE
   commands (see section 6.4.6 of [IMAP4]) to include optional STORE
   modifiers.  No store modifiers are defined in this document.
   
   The order of individual modifiers is arbitrary.  Individual
   modifier may consist of one or more atoms or strings in a specific
   order.  If a modifier consists of more than one atom or string, it
   MUST appear in its own parenthesised list.  Any modifiers not
   defined by extensions that the server supports MUST must be rejected
   with a BAD response.
   
   
2.4
   
   
2.6  Extensions to SEARCH Command
   
   Arguments:  OPTIONAL result specifier
               OPTIONAL [CHARSET] specification
               searching criteria (one or more)
   
   Responses:  REQUIRED untagged response: SEARCH (*)
   
   Result:     OK - search completed
               NO - search error: can't search that [CHARSET] or
                    criteria
               BAD - command unknown or arguments invalid
   
   
   This section updates definition of the SEARCH command described in
   section 6.4.4 of [IMAP4].
   
   The SEARCH command is extended to allow for result options. This
   document doesn't define any result option.
   
   The order of individual options is arbitrary.  Individual options
   may optionally contain parameters enclosed in parenthesises. If an
   option has parameters, they consist of one or more atoms or strings
   in a specific order. Any options not defined by extensions that the
   server supports MUST must be rejected with a BAD response.
   
   (*) - An extension to SEARCH command may require another untagged
   response, or no untagged response to be returned.
   
   
2.5
   
   
2.7  Extensions to APPEND Command
   
   The APPEND command is extended to allow the client to append data
   containing NULs by using the <literal8> syntax. The ABNF was
   rewritten to allow for easier extensibility by IMAP extensions.
   

3.   Formal Syntax
   
   The following syntax specification uses the Augmented Backus-Naur
   Form (ABNF) notation as specified in [ABNF].
   
   Non-terminals referenced but not defined below are as defined by
   [IMAP4].
   
   Except as noted otherwise, all alphabetic characters are case-
   insensitive.  The use of upper or lower case characters to define
   token strings is for editorial clarity only.  Implementations MUST
   accept these strings in a case-insensitive fashion.
   
     
     append          = "APPEND" SP mailbox 1*append-message
                       ;; only a single append-message may appear
                       ;; if MULTIAPPEND [MULTIAPPEND] capability
                       ;; is not present
     
     append-message  = append-opts SP append-data
     
     append-ext      = append-opt-name SP append-opt-val
     
     append-opt-comp = astring /
                       append-opt-comp
                        *(SP append-opt-comp) /
                       "(" append-opt-comp ")"
     
     append-opt-name = atom
     
     append-opt-val  = astring / "(" append-opt-comp ")"
     
     <<Should we allow for empty "append-opt-comp"?>> <for extension only>
                       ;; This rule exists solely to be augmented by
                       ;; extensions via incremental alternative
                       ;; ("=/") rules.  It is strongly recommended
                       ;; that such extensions match a subset of the
                       ;; tagged-ext rule syntax
     
     append-data     = literal / literal8
     
     <<if
                       ;; IMAP extensions extending append-data is extended, the extended part
                       ;; should use the
     syntax for append-ext, tagged-ext syntax,
                       ;; i.e. a mandatory label followed
                       ;; by
     parameters>> parameters.
     
     append-opts     = [SP flag-list] [SP date-time] *(SP append-ext)
     
     
     create          = "CREATE" SP mailbox [SP partition]
                       [create_params]
                       ;; Use of INBOX gives a NO error
     
     create_params   = SP "(" create_param *( SP create_param) ")"
     
     create_param_name = tagged-ext-label
     
     create_param      = create_param_name SP create_param_value
     
     create_param_value= <for extension only>
                       ;; This rule exists solely to be augmented by
                       ;; extensions via incremental alternative
                       ;; ("=/") rules.  It is strongly recommended
                       ;; that such extensions match a subset of the
                       ;; tagged-ext-val rule syntax
     
     examine         = "EXAMINE" SP mailbox [select-params]
                       ;; modifies the original IMAP EXAMINE command
                       ;; to accept optional parameters
     
     fetch           = "FETCH" SP sequence-set SP ("ALL" / "FULL" /
                       "FAST" / fetch-att /
                       "(" fetch-att *(SP fetch-att) ")")
                       [SP fetch-modifiers]
                       ;; modifies the original IMAP4 FETCH command to
                       ;; accept optional modifiers
     
     fetch-modifiers = "(" fetch-modifier *(SP fetch-modifier) ")"
     
     fetch-modifier  = fetch-modifier-name [ SP ( astring /
                              "(" fetch-modif-params
                                              ")" ) ]
                       ;; modifiers Note that the original syntax defined
                       ;; in CONDSTORE was extended to FETCH may contain a modifier allow
                       ;; name followed for "()"
     
     fetch-modif-params  = <for extension only>
                       ;; This rule exists solely to be augmented by zero or more atoms or
                       ;; strings - multiple items are always extensions via incremental alternative
                       ;; parenthesised, nesting ("=/") rules.  It is allowed
     
     <<the syntax hasn't changed, but strongly recommended
                       ;; that such extensions match a subset of the
                       ;; tagged-ext-val rule was rewritten for
     consistency with store/search modifiers.
     
     Same structure as store-modif-params, with one exception: the
     thing in () can't be empty.>>
     
     fetch-modif-params  = astring *(SP astring) /
                           "(" fetch-modif-params
                               *(SP fetch-modif-params) ")"
     <<This is not quite as flexible as store-modparam-comp, for
     example the following is not allowed:
     ("foo") ("bar")
     >> syntax
     
     fetch-modifier-name = atom tagged-ext-label
     
     literal8        = "~{" number "}" CRLF *OCTET
                        ;; A string that might contain NULs. A string that might contain NULs.
                        ;; <number> represents the number of OCTETs
                        ;; in the response string.
     
     rename          = "RENAME" SP mailbox SP mailbox
                       [SP partition] [rename_params]
                       ;; Use of INBOX as a destination gives
                       ;; a NO error
     
     rename_params     = SP "(" rename_param *( SP rename_param) ")"
     
     rename_param_name = tagged-ext-label
     
     create_param      = rename_param_name SP rename_param_value
     
     rename_param_value= <for extension only>
                       ;; This rule exists solely to be augmented by
                       ;; extensions via incremental alternative
                       ;; <number> represents the number of OCTETs ("=/") rules.  It is strongly recommended
                       ;; in that such extensions match a subset of the response string.
                       ;; tagged-ext-val rule syntax
     
     response-data   = "*" SP response-payload CRLF
     
     response-payload= resp-cond-state / resp-cond-bye /
                       mailbox-data / message-data / capability-data
     
     search          = "SEARCH" [search-return-opts]
                       [SP "CHARSET" SP astring] 1*(SP search-key)
                       ;; CHARSET argument to SEARCH MUST be
                       ;; registered with IANA
     
     search-return-opts = "RETURN" SP "(" [search-return-opt
                          *(SP search-return-opt)] ")"
                          ;; SEARCH return options, e.g. MIN
     
     search-return-opt = search-modifier-name
                            [SP search-mod-params]
                          ;; MUST start with atom (label)
     
     search-modifier-name = atom tagged-ext-label
     
     search-mod-params = astring / "(" [search-mod-comp] ")"
     
     search-mod-comp  = astring /
                           search-mod-comp
                               *(SP search-mod-comp) /
                           "(" search-mod-comp ")" <for extension only>
                       ;; same structure as for store-modparam-comp This rule exists solely to be augmented by
                       ;; extensions via incremental alternative
                       ;; ("=/") rules.  It is strongly recommended
                       ;; that such extensions match a subset of the
                       ;; tagged-ext-val rule syntax
     
     select          = "SELECT" SP mailbox [select-params]
                       ;; modifies the original IMAP SELECT command to
                       ;; accept optional parameters
     
     select-params   = SP "(" select-param *(SP select-param) ")"
     
     select-param    = astring / "(" astring 1*(SP astring) ")" select_param_name SP select_param_value
     ;; parameters to SELECT may contain one or
                       ;; more atoms or strings - multiple items
                       ;; are always parenthesised
     
     status          = "STATUS" SP mailbox SP
                       "(" status-att-req *(SP status-att-req) ")"
     
     select_param_name= tagged-ext-label
     
     select_param_value= <for extension only>
                       ;; redefine STATUS command syntax defined in This rule exists solely to be augmented by
                       ;; [IMAP4] extensions via incremental alternative
                       ;; ("=/") rules.  It is strongly recommended
                       ;; that such extensions match a subset of the
                       ;; tagged-ext-val rule syntax
     
     status-att-list = status-rsp-info status-att-val *(SP status-rsp-info) status-att-val)
                       ;; Redefines status-att-list from RFC 3501
     
     status-att-req  = status-att
     
     status-rsp-info
                       ;; status-att-val is defined in RFC 3501 errata
     
     status-att-val  = status-att ("MESSAGES" SP number number) /
                       ("RECENT" SP number) /
                       ("UIDNEXT" SP nz-number) /
                       ("UIDVALIDITY" SP nz-number) /
                       ("UNSEEN" SP number)
                       ;; Extensions to the STATUS responses
                       ;; should extend this production.
     
     store           = "STORE" SP sequence-set store-modifiers
                       SP store-att-flags
                       ;; extend [IMAP4] STORE command syntax
                       ;; to allow for optional store-modifiers
     
     store-modifiers = [ SP "(" store-modifier *(SP store-modifier)
                         ")" ]
     
     store-modifier  = store-modifier-name [SP store-modif-params]
                       ;; MUST start with atom (label)
     
     store-modif-params = astring / "(" [store-modparam-comp] ")"
     
     store-modparam-comp <for extension only>
                       ;; This rule exists solely to be augmented by
                       ;; extensions via incremental alternative
                       ;; ("=/") rules.  It is strongly recommended
                       ;; that such extensions match a subset of the
                       ;; tagged-ext-val rule syntax
     
     store-modifier-name = tagged-ext-label
     
     tagged-ext          = tagged-ext-label SP tagged-ext-val
                            ;; recommended overarching syntax for
                            ;; extensions
     
     tagged-ext-label    = atom
                           ;; <<or should this be astring?>>
     
     tagged-ext-comp     = astring /
                           store-modparam-comp
                           tagged-ext-comp *(SP store-modparam-comp) tagged-ext-comp) /
                           "(" store-modparam-comp tagged-ext-comp ")"
     
     <<This differs from how fetch-modif-params is defined. Is
                            ;; extensions that follow this
     desirable? Or general
                            ;; syntax should we use something simpler, e.g select-
     param?>>
     
     store-modifier-name nstring instead of
                            ;; astring when appropriate in the context
                            ;; of the extension
     
     tagged-ext-val      = atom


     
     <<Add LOGIN/AUTHENTICATE, LOGOUT astring / "(" [tagged-ext-comp] ")"
     
     <<Due to interaction between CONDSTORE and CREATE?>> ESEARCH, it would be a
     good idea to include ESEARCH response here as well. Or maybe this
     can be deferred to CONDSTORE revision>>
     

4.   Security Considerations
   
   It is believed that this document doesn't add any new security
   concerns that were not already identified in RFC 3501.


5.   IANA Considerations

   This document doesn't define any new IMAP extension, so no action
   from IANA is required.
   

6.   References

6.1  Normative References
   
   [KEYWORDS] Bradner, S., "Key words for use in RFCs to Indicate
   Requirement Levels", RFC 2119, March 1997.
   
   [IMAP4] Crispin, M., "Internet Message Access Protocol - Version
   4rev1", RFC 3501, University of Washington, March 2003.
   
   [ABNF] Crocker, D. (Ed.) and P. Overell , "Augmented BNF for Syntax
   Specifications: ABNF", RFC 2234, November 1997. <<Needs updating>> 1997.<<Needs updating to
   draft-crocker-abnf-rfc2234bis-00>>
   
   [CHARSET] Freed, N. and J. Postel, "IANA Character Set Registration
   Procedures", RFC 2978, October 2000.
   
   [MULTIAPPEND]  Crispin, M., "Internet Message Access Protocol
   (IMAP) - MULTIAPPEND Extension", RFC 3502, March 2003.
   

7.   Acknowledgments
   
   This documents is based on ideas proposed by Pete Resnick, Mark
   Crispin, Ken Murchison, Philip Guenther, Randall Gellens and Lyndon
   Nerenberg.
   
   However all errors and omissions must be attributed to the authors
   of the document.
   
   Some text was borrowed from draft-ietf-imapext-annotate-12.txt.
   literal8 syntax was taken verbatim from RFC 3516.


8.   Author's Addresses
   
   Alexey Melnikov
   Isode Limited
   5 Castle Business Village
   36 Station Road
   Hampton, Middlesex, TW12 2BX
   UK
   
   Email: Alexey.Melnikov@isode.com
   
   Cyrus Daboo
   ISAMET, Inc.
   5001 Baum Blvd.
   Suite 650
   Pittsburgh, PA  15213
   US
   
   EMail: daboo@isamet.com


9.   Full Copyright Statement
   
   Copyright (C) The Internet Society (2005).
   
   This document is subject to the rights, licenses and restrictions
   contained in BCP 78, and except as set forth therein, the authors
   retain all their rights.

   This document and the information contained herein are provided on
   an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE
   REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND
   THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT
   THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR
   ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
   PARTICULAR PURPOSE.
   
   
10.  Intellectual Property

   The IETF takes no position regarding the validity or scope of any
   Intellectual Property Rights or other rights that might be claimed
   to pertain to the implementation or use of the technology described
   in this document or the extent to which any license under such
   rights might or might not be available; nor does it represent that
   it has made any independent effort to identify any such rights.
   Information on the procedures with respect to rights in RFC
   documents can be found in BCP 78 and BCP 79.
   
   Copies of IPR disclosures made to the IETF Secretariat and any
   assurances of licenses to be made available, or the result of an
   attempt made to obtain a general license or permission for the use
   of such proprietary rights by implementers or users of this
   specification can be obtained from the IETF on-line IPR repository
   at http://www.ietf.org/ipr.
   
   The IETF invites any interested party to bring to its attention any
   copyrights, patents or patent applications, or other proprietary
   rights that may cover technology that may be required to implement
   this standard.  Please address the information to the IETF at ietf-
   ipr@ietf.org.
   
Acknowledgement
   
   Funding for the RFC Editor function is currently provided by the
   Internet Society.
   
   
11.  Appendix A. Editorial.
   
   <<Note that this section will be deleted before publication>>

11.1 Change Log

   00   Initial Revision.
   01   Added Cyrus as co-author. Added BINARY literals. Added section
        about APPEND. Clarified that the order of all parameters/modifiers is
        arbitrary. Unrecognized SELECT/EXAMINE parameter should cause the BAD,
        not the NO response.
   02   Updated boilerplate. Extended SEARCH modifiers to be consistent
        with STORE modifiers. Rewrote FETCH modifier syntax for consistency.
   03   Updated as per comments from Philip (ABNF suggestions, in
        particular addition of response-data; normative language).
        Incorporated RFC 3501 ABNF errata from Mark. Added extensions to
        CREATE and RENAME commands. Updated ABNF to use consistent grammer for
        all extension elements (this changed ABNF for SELECT/EXAMINE and
        FETCH).
----