Function: gnus-build-get-header
gnus-build-get-header is a byte-compiled function defined in
gnus-sum.el.gz.
Signature
(gnus-build-get-header ID)
Documentation
Look through the buffer of NOV lines and find the header to ID.
Enter this line into the dependencies hash table, and return the id of the parent article (if any).
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-build-get-header (id)
"Look through the buffer of NOV lines and find the header to ID.
Enter this line into the dependencies hash table, and return
the id of the parent article (if any)."
(let ((deps gnus-newsgroup-dependencies)
found header)
(prog1
(with-current-buffer nntp-server-buffer
(let ((case-fold-search nil))
(goto-char (point-min))
(while (and (not found)
(search-forward id nil t))
(beginning-of-line)
(setq found (looking-at
(format "^[^\t]*\t[^\t]*\t[^\t]*\t[^\t]*\t%s"
(regexp-quote id))))
(or found (beginning-of-line 2)))
(when found
(beginning-of-line)
(and
(setq header (gnus-nov-parse-line
(read (current-buffer)) deps))
(gnus-parent-id (mail-header-references header))))))
(when header
(let ((number (mail-header-number header)))
(push number gnus-newsgroup-limit)
(push header gnus-newsgroup-headers)
(if (memq number gnus-newsgroup-unselected)
(progn
(setq gnus-newsgroup-unreads
(gnus-add-to-sorted-list gnus-newsgroup-unreads
number))
(setq gnus-newsgroup-unselected
(delq number gnus-newsgroup-unselected)))
(push number gnus-newsgroup-ancient)))))))