@@ -876,35 +876,31 @@ def list(refname, mailbox)
876876 # allows a client to discover the prefixes of namespaces used by a server
877877 # for personal mailboxes, other users' mailboxes, and shared mailboxes.
878878 #
879- # The NAMESPACE extension predates [IMAP4rev1[https://tools.ietf.org/html/rfc2501]],
880- # so most IMAP servers support it. Many popular IMAP servers are configured
881- # with the default personal namespaces as `("" "/")`: no prefix and "/"
882- # hierarchy delimiter. In that common case, the naive client may not have
883- # any trouble naming mailboxes.
879+ # The return value is a Namespaces object which has +personal+, +other+, and
880+ # +shared+ fields, each an array of Namespace objects. These arrays will be
881+ # empty when the server responds with +nil+.
884882 #
883+ # Many \IMAP servers are configured with the default personal namespaces as
884+ # <tt>("" "/")</tt>: no prefix and the "+/+" hierarchy delimiter. In that
885+ # common case, the naive client may not have any trouble naming mailboxes.
885886 # But many servers are configured with the default personal namespace as
886- # e.g. `("INBOX." ".")`, placing all personal folders under INBOX, with "."
887- # as the hierarchy delimiter. If the client does not check for this, but
888- # naively assumes it can use the same folder names for all servers, then
889- # folder creation (and listing, moving, etc) can lead to errors.
887+ # e.g. <tt>("INBOX." ".")</tt>, placing all personal folders under INBOX,
888+ # with "+.+" as the hierarchy delimiter. If the client does not check for
889+ # this, but naively assumes it can use the same folder names for all
890+ # servers, then folder creation (and listing, moving, etc) can lead to
891+ # errors.
890892 #
891893 # From RFC2342:
892894 #
893895 # Although typically a server will support only a single Personal
894896 # Namespace, and a single Other User's Namespace, circumstances exist
895897 # where there MAY be multiples of these, and a client MUST be prepared
896- # for them. If a client is configured such that it is required to create
898+ # for them. If a client is configured such that it is required to create
897899 # a certain mailbox, there can be circumstances where it is unclear which
898- # Personal Namespaces it should create the mailbox in. In these
900+ # Personal Namespaces it should create the mailbox in. In these
899901 # situations a client SHOULD let the user select which namespaces to
900902 # create the mailbox in.
901903 #
902- # The user of this method should first check if the server supports the
903- # NAMESPACE #capability. The return value is a Namespaces
904- # object which has +personal+, +other+, and +shared+ fields, each an array
905- # of Namespace objects. These arrays will be empty when the
906- # server responds with nil.
907- #
908904 # Related: #list, Namespaces, Namespace
909905 #
910906 # ===== For example:
@@ -925,7 +921,7 @@ def list(refname, mailbox)
925921 # ===== Capabilities
926922 #
927923 # The server's capabilities must include +NAMESPACE+
928- # [RFC2342[https://tools.ietf.org/html/rfc2342]]
924+ # [RFC2342[https://tools.ietf.org/html/rfc2342]].
929925 def namespace
930926 synchronize do
931927 send_command ( "NAMESPACE" )
0 commit comments