Function: imap-mailbox-subscribe

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

Signature

(imap-mailbox-subscribe MAILBOX &optional BUFFER)

Documentation

Send the SUBSCRIBE command on the MAILBOX to server in BUFFER.

Returns non-nil if successful.

Source Code

;; Defined in /usr/src/emacs/lisp/net/imap.el.gz
(defun imap-mailbox-subscribe (mailbox &optional buffer)
  "Send the SUBSCRIBE command on the MAILBOX to server in BUFFER.
Returns non-nil if successful."
  (with-current-buffer (or buffer (current-buffer))
    (imap-ok-p (imap-send-command-wait (concat "SUBSCRIBE \""
					       (imap-utf7-encode mailbox)
					       "\"")))))