Function: nnimap-get-flags
nnimap-get-flags is a byte-compiled function defined in nnimap.el.gz.
Signature
(nnimap-get-flags SPEC)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnimap.el.gz
(defun nnimap-get-flags (spec)
(let ((articles nil)
elems end)
(with-current-buffer (nnimap-buffer)
(erase-buffer)
(nnimap-wait-for-response (nnimap-send-command
"UID FETCH %s FLAGS" spec))
(setq end (point))
(subst-char-in-region (point-min) (point-max)
?\\ ?% t)
(goto-char (point-min))
(while (search-forward " FETCH " end t)
(setq elems (read (current-buffer)))
(push (cons (cadr (memq 'UID elems))
(cadr (memq 'FLAGS elems)))
articles)))
(nreverse articles)))