Function: nndraft-update-unread-articles
nndraft-update-unread-articles is a byte-compiled function defined in
nndraft.el.gz.
Signature
(nndraft-update-unread-articles)
Documentation
Update groups' unread articles in the group buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nndraft.el.gz
(defun nndraft-update-unread-articles ()
"Update groups' unread articles in the group buffer."
(nndraft-request-list)
(with-current-buffer gnus-group-buffer
(let* ((groups (mapcar (lambda (elem)
(gnus-group-prefixed-name (car elem)
(list 'nndraft "")))
(nnmail-get-active)))
(gnus-group-marked (copy-sequence groups))
;; Don't send delayed articles.
(gnus-get-new-news-hook nil)
(inhibit-read-only t))
(gnus-group-get-new-news-this-group nil t)
(save-excursion
(dolist (group groups)
(unless (and gnus-permanently-visible-groups
(string-match gnus-permanently-visible-groups
group))
(gnus-group-goto-group group)
(when (zerop (gnus-group-group-unread))
(gnus-delete-line))))))))