Function: mh-get-header-field

mh-get-header-field is an autoloaded and byte-compiled function defined in mh-utils.el.gz.

Signature

(mh-get-header-field FIELD)

Documentation

Find and return the body of FIELD in the mail header.

Returns the empty string if the field is not in the header of the current buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-utils.el.gz
;;;###mh-autoload
(defun mh-get-header-field (field)
  "Find and return the body of FIELD in the mail header.
Returns the empty string if the field is not in the header of the
current buffer."
  (if (mh-goto-header-field field)
      (progn
        (skip-chars-forward " \t")      ;strip leading white space in body
        (let ((start (point)))
          (mh-header-field-end)
          (buffer-substring-no-properties start (point))))
    ""))