Function: imap-mailbox-delete
imap-mailbox-delete is a byte-compiled function defined in imap.el.gz.
Signature
(imap-mailbox-delete MAILBOX &optional BUFFER)
Documentation
Delete MAILBOX on 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-mailbox-delete (mailbox &optional buffer)
"Delete MAILBOX on server in BUFFER.
If BUFFER is nil the current buffer is assumed."
(let ((mailbox (imap-utf7-encode mailbox)))
(with-current-buffer (or buffer (current-buffer))
(imap-ok-p
(imap-send-command-wait (list "DELETE \"" mailbox "\""))))))