Function: imap-namespace

imap-namespace is a byte-compiled function defined in imap.el.gz.

Signature

(imap-namespace &optional BUFFER)

Documentation

Return a namespace hierarchy at server in BUFFER.

If BUFFER is nil, the current buffer is assumed.

Source Code

;; Defined in /usr/src/emacs/lisp/net/imap.el.gz
(defun imap-namespace (&optional buffer)
  "Return a namespace hierarchy at server in BUFFER.
If BUFFER is nil, the current buffer is assumed."
  (with-current-buffer (or buffer (current-buffer))
    (unless imap-namespace
      (when (imap-capability 'NAMESPACE)
	(imap-send-command-wait "NAMESPACE")))
    imap-namespace))