Function: nndiary-parse-head

nndiary-parse-head is a byte-compiled function defined in nndiary.el.gz.

Signature

(nndiary-parse-head CHARS &optional NUMBER)

Documentation

Parse the head of the current buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nndiary.el.gz
(defun nndiary-parse-head (chars &optional number)
  "Parse the head of the current buffer."
  (save-excursion
    (save-restriction
      (unless (zerop (buffer-size))
	(narrow-to-region
	 (goto-char (point-min))
	 (if (search-forward "\n\n" nil t) (1- (point)) (point-max))))
      (let ((headers (nnheader-parse-head t)))
	(setf (mail-header-chars  headers) chars)
	(setf (mail-header-number headers) number)
	headers))))