Function: mm-content-transfer-encoding
mm-content-transfer-encoding is a byte-compiled function defined in
mm-encode.el.gz.
Signature
(mm-content-transfer-encoding TYPE)
Documentation
Return a CTE suitable for TYPE to encode the current buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/mm-encode.el.gz
(defun mm-content-transfer-encoding (type)
"Return a CTE suitable for TYPE to encode the current buffer."
(let ((rules mm-content-transfer-encoding-defaults))
(catch 'found
(while rules
(when (string-match (caar rules) type)
(throw 'found
(let ((encoding
(if (eq (cadr (car rules)) 'qp-or-base64)
(mm-qp-or-base64)
(cadr (car rules)))))
(if mm-use-ultra-safe-encoding
(mm-safer-encoding encoding type)
encoding))))
(pop rules)))))