Function: gnus-thread-latest-date

gnus-thread-latest-date is a byte-compiled function defined in gnus-sum.el.gz.

Signature

(gnus-thread-latest-date THREAD)

Documentation

Return the highest article date in THREAD.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
; Since this is called not only to sort the top-level threads, but
; also in recursive sorts to order the articles within a thread, each
; article will be processed many times.  Thus it speeds things up
; quite a bit to use gnus-date-get-time, which caches the time value.
(defun gnus-thread-latest-date (thread)
  "Return the highest article date in THREAD."
  (apply #'max
	 (mapcar (lambda (header) (float-time
				   (gnus-date-get-time
				    (mail-header-date header))))
		 (flatten-tree thread))))