Function: gnus-summary-number-of-articles-in-thread
gnus-summary-number-of-articles-in-thread is a byte-compiled function
defined in gnus-sum.el.gz.
Signature
(gnus-summary-number-of-articles-in-thread THREAD &optional LEVEL CHAR)
Documentation
Return the number of articles in THREAD.
This may be 0 in some cases -- if none of the articles in the thread are to be displayed.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-summary-number-of-articles-in-thread (thread &optional level char)
"Return the number of articles in THREAD.
This may be 0 in some cases -- if none of the articles in
the thread are to be displayed."
(let* ((number
;; Fix by Luc Van Eycken <Luc.VanEycken@esat.kuleuven.ac.be>.
(cond
((not (listp thread))
1)
((and (consp thread) (cdr thread))
(apply
#'+ 1 (mapcar
#'gnus-summary-number-of-articles-in-thread (cdr thread))))
((null thread)
1)
((memq (mail-header-number (car thread)) gnus-newsgroup-limit)
1)
(t 0))))
(when (and level (zerop level) gnus-tmp-new-adopts)
(incf number
(apply #'+ (mapcar
#'gnus-summary-number-of-articles-in-thread
gnus-tmp-new-adopts))))
(if char
(if (> number 1) gnus-not-empty-thread-mark
gnus-empty-thread-mark)
number)))