Function: mm-encode-buffer

mm-encode-buffer is a byte-compiled function defined in mm-encode.el.gz.

Signature

(mm-encode-buffer TYPE &optional ENCODING)

Documentation

Encode the buffer which contains data of MIME type TYPE by ENCODING.

TYPE is a string or a list of the components. The optional ENCODING overrides the encoding determined according to TYPE and mm-content-transfer-encoding-defaults. The encoding used is returned.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/mm-encode.el.gz
(defun mm-encode-buffer (type &optional encoding)
  "Encode the buffer which contains data of MIME type TYPE by ENCODING.
TYPE is a string or a list of the components.
The optional ENCODING overrides the encoding determined according to
TYPE and `mm-content-transfer-encoding-defaults'.
The encoding used is returned."
  (let ((mime-type (if (stringp type) type (car type))))
    (mm-encode-content-transfer-encoding
     (or encoding
	 (setq encoding (or (and (listp type)
				 (cadr (assq 'encoding type)))
			    (mm-content-transfer-encoding mime-type))))
     mime-type)
    encoding))