Function: imap-mailbox-status-asynch
imap-mailbox-status-asynch is a byte-compiled function defined in
imap.el.gz.
Signature
(imap-mailbox-status-asynch MAILBOX ITEMS &optional BUFFER)
Documentation
Send status item requests ITEMS on MAILBOX to server in BUFFER.
ITEMS can be a symbol or a list of symbols, valid symbols are one of
the STATUS data items -- i.e., messages, recent, uidnext, uidvalidity
or unseen. The IMAP command tag is returned.
Source Code
;; Defined in /usr/src/emacs/lisp/net/imap.el.gz
(defun imap-mailbox-status-asynch (mailbox items &optional buffer)
"Send status item requests ITEMS on MAILBOX to server in BUFFER.
ITEMS can be a symbol or a list of symbols, valid symbols are one of
the STATUS data items -- i.e., `messages', `recent', `uidnext', `uidvalidity'
or `unseen'. The IMAP command tag is returned."
(with-current-buffer (or buffer (current-buffer))
(imap-send-command (list "STATUS \""
(imap-utf7-encode mailbox)
"\" "
(upcase
(format "%s"
(if (listp items)
items
(list items))))))))