Function: rmail-get-coding-system

rmail-get-coding-system is a byte-compiled function defined in rmail.el.gz.

Signature

(rmail-get-coding-system)

Documentation

Return a suitable coding system to use for the current mail message.

The buffer is expected to be narrowed to just the header of the message.

Source Code

;; Defined in /usr/src/emacs/lisp/mail/rmail.el.gz
(defun rmail-get-coding-system ()
  "Return a suitable coding system to use for the current mail message.
The buffer is expected to be narrowed to just the header of the message."
  (save-excursion
    (goto-char (point-min))
    (or (if rmail-get-coding-function
	    (funcall rmail-get-coding-function))
	(if (re-search-forward rmail-mime-charset-pattern nil t)
	    (coding-system-from-name (match-string 1))
	  'undecided))))