Skip to main content

Commands

tag NOOP​

The NOOP command returns an OK to the client. By itself, it does nothing, but certain things may happen as side effects. For example, server implementations which implicitly check the mailbox for new mail may do so as a result of this command. The primary use of this command is to for the client to see if the server is still alive (and notify the server that the client is still alive, for those servers which have inactivity autologout timers).

tag LOGIN user password​

The LOGIN command identifies the user to the server and carries the password authenticating this user. This information is used by the server to control access to the mailboxes.

EXAMPLE: A001 LOGIN SMITH SESAME logs in as user SMITH with password SESAME.

tag LOGOUT​

The LOGOUT command indicates the client is done with the session. The server sends a solicited BYE response before the (tagged) OK response, and then closes the connection.

tag SELECT mailbox​

The SELECT command selects a particular mailbox. The server must check that the user is permitted read access to this mailbox. Prior to returning an OK to the client, the server must send an solicited FLAGS and EXISTS response to the client giving the flags list for this mailbox (simply the system flags if this mailbox doesn't have any special flags) and the number of messages in the mailbox. It is also recommended that the server send a RECENT unsolicited response to the client for the benefit of clients which make use of the number of new messages in a mailbox. It is further recommended that servers should send an unsolicited READONLY message if the mailbox that has been selected is not writable by the user.

Multiple SELECT commands are permitted in a session, in which case the prior mailbox is deselected first.

The default mailbox for the SELECT command is INBOX, which is a special name reserved to mean "the primary mailbox for this user on this server". The format of other mailbox names is operating system dependent (as of this writing, it reflects the path of the mailbox on the current servers), though it could reflect any server-specific naming convention for the namespace of mailboxes. Such a namespace need not and should not be viewed as being equivalent or linked to the server machine's file system.

      EXAMPLES: A002 SELECT INBOX  ;; selects the default mailbox.
A002 197 EXISTS ;; server says 197 messages in INBOX
A002 5 RECENT ;; server says 5 are recent.
A002 OK Select complete.
or
A003 SELECT /usr/fred/my-mail.txt
;; select a different user specified mailbox.
...

tag CHECK​

The CHECK command forces a check for new messages and a rescan of the mailbox for internal change for those implementations which allow multiple simultaneous read/write access to the same mailbox (e.g., TOPS-20). It is recommend that periodic implicit checks for new mail be done by servers as well. The server must send a solicited EXISTS response prior to returning an OK to the client.

tag EXPUNGE​

The EXPUNGE command permanently removes all messages with the \DELETED flag set in its flags from the mailbox. Prior to returning an OK to the client, for each message which is removed, a solicited EXPUNGE response is sent indicating which message was removed. The message number of each subsequent message in the mailbox is immediately decremented by 1; this means that if the last 5 messages in a 9-message mailbox are expunged you will receive 5 "5 EXPUNGE" responses for message 5. To ensure mailbox integrity and server/client synchronization, it is recommended that the server do an implicit check prior to commencing the expunge and again when the expunge is completed. Furthermore, if the server allows multiple simultaneous access to the same mailbox the server must guarantee both the integrity of the mailbox and the views of it held by the clients.

  • EXPUNGE: is not allowed if the user does not have write access to this mailbox. If a user does not have write access to the mailbox then the server is required to signal this fact by replying with a NO response with a suitable text string that can be presented to the user explaining that the mailbox is read-only. It is further recommended that servers send an unsolicited READONLY message to clients that attempt an expunge operation on a read only mailbox.

tag COPY sequence mailbox​

The COPY command copies the specified message(s) to the specified destination mailbox. If the destination mailbox does not exist, the server should create it. Prior to returning an OK to the client, the server must return a solicited COPY response for each message copied.

EXAMPLE: A003 COPY 2:4 MEETING copies messages 2, 3, and 4 to mailbox "MEETING".

COPY is not allowed if the user does not have write access to the destination mailbox. If a user does not have write access to the destination mailbox then the server is required to signal this fact by replying with a NO response with a suitable text string that can be presented to the user explaining that the mailbox is read-only. It is further recommended that servers send an unsolicited READONLY message to clients that attempt to copy to a read only mailbox. IMAP3 does not specify "where" the message will be put in the mailbox to which it has been copied.

tag FETCH sequence fetch_att​

The FETCH command retrieves data associated with a message in the mailbox. The data items to be fetched may be either a single atom or an S-expression list. The attributes that can be fetched are any of those mentioned specifically below along with any generic, canonical or concrete key. The set of predefined generic keys is: {BCC, BODY, CC, FROM, HEADER, SIZE, SUBJECT, TEXT, TO}. The set of predefined canonical keys is {$CC, $FROM, $SUBJECT, $TO}. The value returned by the server for a non-existent or non-meaningful key is defined to be the null value, NIL.

      ALL             Equivalent to:
(FLAGS INTERNALDATE RFC822.SIZE ENVELOPE)

ENVELOPE The envelope of the message. The envelope is
computed by the server by parsing the header,
i.e., the RFC 822 header for an RFC822 format
message, into the component parts, defaulting
various fields as necessary.

FAST Macro equivalent to:
(FLAGS INTERNALDATE RFC822.SIZE)

FLAGS The flags which are set for this message.
This may include the following system flags:

\RECENT Message arrived since
last read of this mailbox
\SEEN Message has been read
\ANSWERED Message has been answered
\FLAGGED Message is "flagged" for
urgent/special attention
\DELETED Message is "deleted" for
removal by later EXPUNGE

INTERNALDATE The date and time the message was written to
the mailbox.

RFC822 The message in RFC 822 format.

RFC822.HEADER The RFC 822 format header of the message.

RFC822.SIZE The number of characters in the message as
expressed in RFC 822 format.

RFC822.TEXT The text body of the message, omitting the
RFC 822 header.

EXAMPLES:

      A003 FETCH 2:4 ALL
fetches the flags, internal date, RFC 822 size, and envelope
for messages 2, 3, and 4.

A004 FETCH 3 RFC822
fetches the RFC 822 representation for message 3.

A005 FETCH 4 (FLAGS RFC822.HEADER)
fetches the flags and RFC 822 format header for message 4.

A006 FETCH 42 $SUBJECT
A006 FETCH $SUBJECT "Some subject text..."
A006 OK FETCH completed ok.
fetches the canonical subject field.

A007 FETCH 42 APPARENTLY-TO
A007 FETCH APPARENTLY-TO NIL
A007 OK FETCH found no value.
fetches the concrete apparently-to field.

tag STORE sequence data value​

The STORE command alters the values associated with particular keys for a message in the mailbox. As is the case for the FETCH command, any generic, canonical or concrete key may be used to index the value provided. In addition to these, the following pre-defined keys are provided.

   FLAGS           Replace the flags for the message with the
                   argument (in flag list format).
                  The server must respond with a solicited STORE FLAGS
                  message, showing the new state of the flags after
                  the store.

   +FLAGS          Add the flags in the argument to the
                   message's flag list.
                 The server must respond with a solicited STORE FLAGS
                 message, showing the new state of the flags after
                 the store.

  -FLAGS          Remove the flags in the argument from the
                  message's flag list.
                 The server must respond with a solicited STORE FLAGS
                 message, showing the new state of the flags after
                 the store.

  RFC822.HEADER   Replace the header of the message(s) with that
                  specified.  This allows users to use their mailboxes
                  as databases with header fields as keys.
                  The server must respond with solicited
                  STORE RFC822.HEADER, STORE RFC822.SIZE and
                  STORE ENVELOPE messages,  showing the new state
                  of the reparsed header after the store.

  RFC822.TEXT     Replace the body of the messages with that specified.
                  The server must respond with solicited
                  STORE RFC822.TEXT and STORE RFC822.SIZE messages,
                  showing the new state of the message after the store.

         STORE is not allowed if the user does not have write access to
         this mailbox.

         The server is required to send a solicited STORE response for
         each store operation that results in a format transformation by
         the server.  For example, the server is required to send a
         STORE FLAGS response when the client performs a STORE +FLAGS or
         a STORE -FLAGS, since the client may not easily be able to know
         what the result of this command will be.  Similarly, if the
         client emits a STORE FROM command then the server should
         respond with a suitable STORE FROM response because the client
         would be sending a string value to be stored and the server
         should transform this into a set of addresses.  In general,
         however, although it is legal for the server to send a
         solicited STORE response for each STORE operation, this is
         discouraged, since it might result in the retransmission of
         very large and unnecessary amounts of data that have been
         stored.

         EXAMPLE: A003 STORE 2:4 +FLAGS (\DELETED) marks messages 2, 3,
         and 4 for deletion.

tag SEARCH search_criteria​

The SEARCH command searches the mailbox for messages which match the given set of criteria. The server response SEARCH (criteria) (numbers) gives the set of messages which match the conjunction of the criteria specified. In addition to each of the search criteria there is its logical inverse. The logical inverse criterion is denoted by the ~ (tilda) sign.

Thus, no message that matches the criterion: FROM crispin will match the criterion: ~FROM crispin

The criteria for the search can be any generic, canonical or concrete key. In addition to these, the following pre-defined keys are also provided:

      ALL             All messages in the mailbox; the default
initial criterion for ANDing.

ANSWERED Messages with the \ANSWERED flag set.

BCC string Messages which contain the specified string
in the envelope's BCC field.

BEFORE date Messages whose internal date is earlier than
the specified date.

BODY string Messages which contain the specified string
in the body of the message.

CC string Messages which contain the specified string
in the envelope's CC field.

DELETED Messages with the \DELETED flag set.

FLAGGED Messages with the \FLAGGED flag set.

FROM string Messages which contain the specified string
in the envelope's FROM field.

HEADER string Messages which contain the specified string
in the message header.

KEYWORD flag Messages with the specified flag set.

NEW Messages which have the \RECENT flag set but
not the \SEEN flag. This is functionally
equivalent to "RECENT UNSEEN".

OLD Messages which do not have the \RECENT flag
set.
  • ON date: Messages whose internal date is the same as the specified date.

  • RECENT: Messages which have the \RECENT flag set.

  • SEEN: Messages which have the \SEEN flag set.

  • SINCE date: Messages whose internal date is later than the specified date.

  • SUBJECT string: Messages which contain the specified string in the envelope's SUBJECT field.

  • TEXT string: Messages which contain the specified string.

  • TO string: Messages which contain the specified string in the envelope's TO field.

         EXAMPLE:  A003 SEARCH DELETED FROM "SMITH" SINCE 1-OCT-87
returns the message numbers for all deleted messages from Smith
that were placed in the mailbox since October 1, 1987.

Implementation note: The UNANSWERED, UNDELETED, UNFLAGGED, UNKEYWORD and UNSEEN criteria, described below, are preserved in IMAP3 for IMAP2 compatibility. They are, however, considered obsolete and new Client programs are encouraged to use the ~ notation for the logical inverses of search criteria with a view to the dropping of this outmoded syntax in later versions.

      UNANSWERED      Messages which do not have the \ANSWERED flag
set.

UNDELETED Messages which do not have the \DELETED flag
set.

UNFLAGGED Messages which do not have the \FLAGGED flag
set.

UNKEYWORD flag Messages which do not have the specified flag
set.

UNSEEN Messages which do not have the \SEEN flag set.

tag READONLY​

The READONLY command indicates that the client wishes to make the mailbox read-only. The server is required to reply with a solicited READONLY or READWRITE response.

tag READWRITE​

The READWRITE command indicates that the client wishes to make the mailbox read-write. The server is required to reply with a solicited READONLY or READWRITE response.

tag SUPPORTED.VERSIONS​

The SUPPORTED.VERSIONS solicits from the server a SUPPORTED.VERSIONS message, which encapsulates information about which versions and features the server supports.

tag SELECT.VERSION (major_version minor_version)​

The SELECT.VERSION command indicates that the client wishes to select certain behavior on the part of the server. The major and minor versions indicate the specific version of the protocol being selected.

      EXAMPLE: A002 SELECT.VERSION (3 0)

A client may not request a server version that is not supported by the server, i.e., which is specifically mentioned in the response to a SUPPORTED.VERSIONS command. An attempt to do so by a client will result in a NO response from the server. It is an error for the SELECT.VERSION command to be used after a mailbox has been selected. The rationale for this is that for some server implementations it might be necessary to spawn separate programs to implement widely divergent protocol versions. Thus, the client cannot be allowed to expect any server state to be preserved after the use of the SELECT.VERSION command. The default version of all servers is 2.0, i.e., IMAP2 as defined by RFC 1064.

tag SELECT.FEATURES 1#features​

The SELECT.FEATURES command indicates that the client wishes to select certain specific features on the part of the server. A client may not request a feature that is not supported by the server, i.e., one that is explicitly mentioned in the set of features for the selected version returned by the SUPPORTED.VERSIONS command. An attempt to do so by a client will result in a NO response from the server.

      EXAMPLE: A002 SELECT.FEATURES AUTO.SET.SEEN ~TAGGED.SOLICITED
EIGHT.BIT.TRANSPARENT

i.e., select the set of features called AUTO.SET.SEEN and EIGHT.BIT.TRANSPARENT and deselect the feature called TAGGED.SOLICITED. The use of the SELECT.FEATURES command completely resets the set of selected features. Note: These are only example feature names and are not necessarily supported by any server. See the appendix on features for more information on features. Note: Some features, when present in the server, will cause the upwards compatible extension of the grammar, i.e., by adding extra commands. The server is at liberty not to remove these upwards compatible extensions to the command tables when a feature is disabled. Thus, it is an error for a client to rely on getting a NO or BAD response in any way, for instance to determine the selectedness or presence of a feature.

tag BBOARD bboard​

The BBOARD command is equivalent to SELECT, except that its argument is a bulletin board (BBoard) name. The format of a BBoard name is implementation specific, although it is strongly encouraged to use something that resembles a name in a generic sense and not a file or mailbox name on the particular system. There is no requirement that a BBoard name be a mailbox name or a file name (in particular, Unix netnews has a completely different namespace from mailbox or file names).

The result from the BBOARD command is identical from that of the SELECT command. For example, in the TOPS-20 server implementation, the command A0002 BBOARD FOO is exactly equivalent to the command A0002 SELECT POBOX:FOO.TXT Note: the equivalence in this example is not required by the protocol, and merely reflects the fuzzy distinction between mailboxes and BBoards on TOPS-20.

tag FIND (BBOARDS / MAILBOXES) pattern​

The FIND command accepts as arguments the keywords BBOARDS or MAILBOXES and a pattern which specifies some set of BBoard/mailbox names which are usable by the BBOARD/SELECT command. Two wildcard characters are defined; "" specifies that any number (including zero) characters may match at this position and "%" specifies that a single character may match at this position. For example, FOOBAR will match FOOBAR, FOOD.ON.THE.BAR and FOO.BAR, whereas FOO%BAR will match only FOO.BAR; furthermore, "" will match all BBoards/mailboxes. The following quoting convention applies to wildcards: "*" is the literal "" character, "%" is the literal "%" character and "\" is the literal "" character. Notes: The format of mailboxes is server implementation dependent. The special mailbox name INBOX is not included in the output to the FIND MAILBOXES command.

The FIND command solicits any number of BBOARD or MAILBOX responses from the server as appropriate.

      Examples:
A0002 FIND BBOARDS *
A0002 BBOARD FOOBAR
A0002 BBOARD GENERAL
A0002 OK FIND completed
or
A0002 FIND MAILBOXES FOO%BA*
A0002 MAILBOX FOO.BAR
A0002 MAILBOX FOO.BAZZAR
A0002 OK FIND completed

Note: Although the use of explicit file or path names for mailboxes is discouraged by this standard, it may be unavoidable. It is important that the value returned in the MAILBOX solicited reply be usable in the SELECT command without remembering any path specification which may have been used in the FIND MAILBOXES pattern.

tag FLAGS​

The FLAGS command solicits a FLAGS response from the server.

tag SET.FLAGS flag_list​

The SET.FLAGS command defines the user specifiable flags for this mailbox, i.e., the keywords. If this set does not include flags formerly sent to the client by the server in a FLAGS message then this constitutes a request to delete the flag. Any new flags should be created. This command does not affect the system defined flags and any system flags that are included in the flag_list will be ignored. The server must respond to this command with a solicited FLAGS message. If the deletion of a flag results in the invalidation of the flag sets of any messages then the server is required to send solicited STORE FLAGS messages to the client for each modified message.

Responses​

*/tag OK text​

In its solicited form this response identifies successful completion of the command with the indicated tag. The text is a line of human-readable text which may be useful in a protocol telemetry log for debugging purposes.

In its unsolicited form, this response indicates simply that the server is alive. No special action on the part of the client is called for. This is presently only used by servers at startup as a greeting message indicating that they are ready to accept the first command. This usage, although legal, is by no means required. The text is a line of human-readable text which may be logged in protocol telemetry.

*/tag NO text​

In its solicited form this response identifies unsuccessful completion of the command with the indicated tag. The text is a line of human-readable text which probably should be displayed to the user in an error report by the client.

In its unsolicited form this response indicates some operational error at the server which cannot be traced to any protocol command. The text is a line of human-readable text which should be logged in protocol telemetry for the maintainer of the server and/or the client.

*/tag BAD text​

In its solicited form response indicates faulty protocol received from the client and indicates a bug. The text is a line of human-readable text which should be recorded in any telemetry as part of a bug report to the maintainer of the client.

In its unsolicited form response indicates some protocol error at the server which cannot be traced to any protocol command. The text is a line of human-readable text which should be logged in protocol telemetry for the maintainer of the server and/or the client. This generally indicates a protocol synchronization problem, and examination of the protocol telemetry is advised to determine the cause of the problem.

*/tag BYE text​

This indicates that the server is about to close the connection. The text is a line of human-readable text which should be displayed to the user in a status report by the client. IMAP2 requires that the server emit a solicited BYE response as part of a normal logout sequence. This solicited form is not required under IMAP3, though is still legal for compatibility. In its unsolicited form the BYE response is used as a panic shutdown announcement by the server. It is required to be used by any server which performs autologouts due to inactivity.

*/tag number message_data​

The solicited (tag number message_data) response is generated as the result of a number of client requests. The server may also emit any the following at any time as unsolicited data (i.e., * number message_data). The message_data is one of the following:

  • EXISTS: The specified number of messages exists in the mailbox.

  • RECENT: The specified number of messages have arrived since the last time this mailbox was selected with the SELECT command or equivalent.

  • EXPUNGE: The specified message number has been permanently removed from the mailbox, and the next message in the mailbox (if any) becomes that message number. The server must send a solicited EXPUNGE response for each message that it expunges as the result of an EXPUNGE command. Note: future versions of the protocol may allow the use of a message sequence as a value returned by the EXPUNGE response to allow the more efficient compaction of client representations of mailboxes.

  • STORE data: Functionally equivalent to FETCH, only it is sent by the server when the state of a mailbox changes. The server must send solicited STORE responses as the result of any change caused by a STORE command.

  • FETCH data: This is the principle means by which data about a message is sent to the client. The data is in a Lisp-like S-expression property list form. Just as the FETCH request from the client can fetch any generic, canonical or concrete key, so also the FETCH response can return values for any of these keys as well as for the pre-defined attributes mentioned below. Note that the server is permitted to send any unsolicited FETCH or STORE messages that it should choose, be they the values associated with generic, canonical or concrete keys. Clients are required to ignore any such FETCH responses that it cannot interpret. For example, clients are not required to be able to understand, i.e., use fruitfully, the canonical $TO key, but they are required to be able to ignore an unsolicited $TO message correctly.

         ENVELOPE     An S-expression format list which describes the
                      envelope of a message.  The envelope is computed
                      by the server by parsing the RFC 822 header into
                      the component parts, defaulting various fields
                      as necessary.

                      The fields of the envelope are in the following
                      order: date, subject, from, sender, reply-to, to,
                      cc, bcc, in-reply-to, and message-id.  The date,
                      subject, in-reply-to, and message-id fields are
                      strings.  The from, sender, reply-to, to, cc,
                      and bcc fields are lists of addresses.

                      An address is an S-expression format list which
                      describes an electronic mail address.  The fields
                      of an address are in the following order:
                      personal name, source-route (i.e., the
                      at-domain-list in SMTP), mailbox name, host name
                      and comments.  Implementation note:  The addition
                      of the comment field is an incompatible extension
                      from IMAP2.  The server is required not to provide
                      this field when running in IMAP2 mode.

                      Any field of an envelope or address which is
                      not applicable is presented as the atom NIL.
                      Note that the server must default the reply-to
                      and sender fields from the from field; a client is
                      not expected to know to do this.

         FLAGS        An S-expression format list of flags which are set
                      for this message.  This may include the following
                      system flags:

                      \RECENT       Message arrived since last
                                     read of this mailbox
                      \SEEN         Message has been read
                      \ANSWERED     Message has been answered
                      \FLAGGED      Message is "flagged" for
                                     urgent/special attention
                      \DELETED      Message is "deleted" for
                                     removal by later EXPUNGE

         INTERNALDATE  A string containing the date and time the
                       message was written to the mailbox.

         RFC822        A string expressing the message in RFC 822
                       format.
                      Note: Some implementations of IMAP2 servers
                      had the (undocumented) behavior of setting
                      the \SEEN flag as a side effect of fetching
                      the body of a message.  This resulted in
                      erroneous behavior for clients that prefetch
                      messages that the user might not get
                      around to reading.  Thus, this behavior is
                      explicitly disallowed in IMAP3.
                      Note: this is not a significant performance
                      restriction because it is always possible for
                      IMAP3 clients to use an interaction with the
                      server of the following type:
                      A001 FETCH 42 RFC822
                      A002 STORE 42 +FLAGS (\SEEN)
                      A001 42 FETCH RFC822 {637} ......
                      A001 OK Fetch completed
                      A002 42 STORE FLAGS (\SEEN \FLAGGED...)
                      A002 OK Store Completed.

RFC822.HEADER A string expressing the RFC 822 format header of the message RFC822.SIZE A number indicating the number of characters in the message as expressed in RFC 822 format.

  • RFC822.TEXT: A string expressing the text body of the message, omitting the RFC 822 header. See also note for RFC822.

*/tag FLAGS flag_list​

A solicited FLAGS response must occur as a result of a SELECT command. The flag list is the list of flags (at a minimum, the IMAP defined flags) which are applicable for this mailbox. Flags other than the system flags are a function of the server implementation.

*/tag SEARCH (numbers) (search_criteria)​

This response occurs as a result of a SEARCH command. The number(s) refer to those messages which match the search criteria. In its solicited form this message allows clients to find interesting groups of messages, e.g., unseen messages from Crispin. In its unsolicited form it allows the server to inform the client of interesting patterns, e.g., when new mail arrives, recent and from Crispin. Compatibility note: The search_criteria are sent by the server along with the matching numbers so unsolicited SEARCH messages may be interpreted. This syntax is not upwards compatible with IMAP2 and so the new syntax is intended to make it simple for clients that are not able to take advantage of unsolicited SEARCH messages still to interpret solicited SEARCH messages simply by ignoring everything that follows the list of numbers with minimal parsing. Such clients may not, however, simply discard the rest of the line because there might be LITERALs in the search pattern.

      Examples:
A00042 SEARCH (2 3 6) (FROM Crispin ~SEEN)
and
* SEARCH (42) (FROM Crispin RECENT)

*/tag READONLY​

This indicates that the mailbox is read-only. The server is required to respond to a READONLY or READWRITE command with either a solicited READONLY or a solicited READWRITE response. Note: If the client attempts a mutation operation, such as STORE, on a mailbox to which it does not have write access then the server is required to reply with a solicited READONLY response on the first such attempted mutation. The server may also choose to send solicited READONLY responses for each subsequent attempted mutation.

*/tag READWRITE​

This indicates that the mailbox is read-write. The server is required to respond to a READONLY or READWRITE command with either a solicited READONLY or a solicited READWRITE response.

*/tag BBOARD bboard_name​

This message is produced in its solicited form as a response to a FIND BBOARDS command. In its unsolicited form it represents a notification by the server that a new BBoard has been added. Bboard_name must be a name that can be supplied to the BBOARD command so as to select the appropriate bboard.

*/tag MAILBOX non_inbox_mailbox_name​

This message is produced in its solicited form as a response to a FIND MAILBOXES command. In its unsolicited form it represents a notification by the server that a new mailbox has been added, perhaps as the result of a COPY command creating a new mailbox. Non_inbox_mailbox_name must be a name that can be supplied to the SELECT command so as to select the appropriate mailbox. Note: non_inbox_mailbox_name is never the string "INBOX".

*/tag SUPPORTED.VERSIONS (version_specs)​

This message is used either as a response to the SUPPORTED.VERSIONS or, in its unsolicited form, to indicate the dynamic addition or removal of support for features or protocol versions. Each version_spec is of the form (4 2 EIGHT.BIT.TRANSPARENT AUTO.SET.SEEN ...), i.e., a major version number and a minor version number for the protocol and the set of features supported under the server's implementation of that protocol version. A server may not dynamically remove support for any version or feature that has been selected by any currently logged in client by the use of the VERSION command.

      Example:
A00005 SUPPORTED.VERSIONS ((2 0 )
(2 2 TAGGED.SOLICITED)
(3 0 EIGHT.BIT.TRANSPARENT TAGGED.SOLICITED))

Indicates that two major versions are supported and one minor version is supported and that tagged solicited messages are supported in versions 2.2 and 3.0 with eight bit characters being supported under version 3. For each feature mentioned in the list of features there is also always the negation of that feature. For example, if the server supports the TAGGED.SOLICITED feature then it also supports the ~TAGGED.SOLICITED feature, which disables this feature. Note: These are only example feature names and are not necessarily supported by any server. See the appendix on features for more information on features.

+ text​

This response indicates that the server is ready to accept the text of a literal from the client. Normally, a command from the client is a single text line. If the server detects an error in the command, it can simply discard the remainder of the line. It cannot do this in the case of commands which contain literals, since a literal can be an arbitrarily long amount of text, and the server may not even be expecting a literal. This mechanism is provided so the client knows not to send a literal until the server definitely expects it, preserving client/server synchronization.

In actual practice, this situation is rarely encountered. In the current protocol, the only client commands likely to contain literals are the LOGIN command and the STORE RFC822.HEADER or STORE RFC822.TEXT commands. Consider a situation in which a server validates the user before checking the password. If the password contains "funny" characters and hence is sent as a literal, then if the user is invalid an error would occur before the password is parsed.

No such synchronization protection is provided for literals sent from the server to the client, for performance reasons. Any synchronization problems in this direction would be due to a bug in the client or server and not for some operational problem.