Function: mairix-rmail-fetch-field

mairix-rmail-fetch-field is a byte-compiled function defined in mairix.el.gz.

Signature

(mairix-rmail-fetch-field FIELD)

Documentation

Get mail header FIELD for current message using RMail.

Source Code

;; Defined in /usr/src/emacs/lisp/net/mairix.el.gz
;; Fetching mail header field:
(defun mairix-rmail-fetch-field (field)
  "Get mail header FIELD for current message using RMail."
  (unless (and (boundp 'rmail-buffer)
	       rmail-buffer)
    (error "No RMail buffer available"))
  ;; At this point, we are in rmail mode, so the rmail funcs are loaded.
  (if (fboundp 'rmail-get-header)	; Emacs 23
      (rmail-get-header field)
    (with-current-buffer rmail-buffer
      (save-restriction
	;; Don't warn about this when compiling Emacs 23.
	(with-no-warnings (rmail-narrow-to-non-pruned-header))
	(mail-fetch-field field)))))