Function: nnatom--read-article-or-group-authors
nnatom--read-article-or-group-authors is a byte-compiled function
defined in nnatom.el.gz.
Signature
(nnatom--read-article-or-group-authors ARTICLE-OR-GROUP)
Documentation
Return the authors of ARTICLE-OR-GROUP, or nil.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnatom.el.gz
(defun nnatom--read-article-or-group-authors (article-or-group)
"Return the authors of ARTICLE-OR-GROUP, or nil."
(when-let
((a (mapconcat
(lambda (author)
(let* ((name (nnatom--dom-line (dom-child-by-tag author 'name)))
(name (unless (string-blank-p name) name))
(email (nnatom--dom-line (dom-child-by-tag author 'email)))
(email (unless (string-blank-p email) email)))
(or (and name email (format "%s <%s>" name email)) name email)))
(dom-children (dom-child-by-tag article-or-group 'authors))
", "))
((not (string-blank-p a))))
a))