Skip to main content

6.3.10 NAMESPACE Command

Arguments: none

Responses: REQUIRED untagged responses: NAMESPACE

Result:

  • OK - command completed
  • NO - Can't complete the command
  • BAD - arguments invalid

The NAMESPACE command causes a single untagged NAMESPACE response to be returned. The untagged NAMESPACE response contains the prefix and hierarchy delimiter to the server's Personal Namespace(s), Other Users' Namespace(s), and Shared Namespace(s) that the server wishes to expose. The response will contain a NIL for any namespace class that is not available.

Example 1:

A server supports a single Personal Namespace. No leading prefix is used on personal mailboxes, and "/" is the hierarchy delimiter.

C: A001 NAMESPACE
S: * NAMESPACE (("" "/")) NIL NIL
S: A001 OK NAMESPACE command completed

Example 2:

A user logged on anonymously. No personal mailboxes are associated with the anonymous user.

C: A001 NAMESPACE
S: * NAMESPACE NIL NIL (("" "."))
S: A001 OK NAMESPACE command completed

Example 3:

A server that contains a Personal Namespace and a single Shared Namespace.

C: A001 NAMESPACE
S: * NAMESPACE (("" "/")) NIL (("Public Folders/" "/"))
S: A001 OK NAMESPACE command completed

The prefix string allows a client to do things such as automatically create personal mailboxes or LIST all available mailboxes within a namespace.