Function: rfc2047-encode-parameter

rfc2047-encode-parameter is a byte-compiled function defined in rfc2047.el.gz.

Signature

(rfc2047-encode-parameter PARAM VALUE)

Documentation

Return a PARAM=VALUE string encoded in the RFC2047-like style.

This is a substitution for the rfc2231-encode-string function, that is the standard but many mailers don't support it.

Aliases

mail-header-encode-parameter

Source Code

;; Defined in /usr/src/emacs/lisp/mail/rfc2047.el.gz
(defun rfc2047-encode-parameter (param value)
  "Return a PARAM=VALUE string encoded in the RFC2047-like style.
This is a substitution for the `rfc2231-encode-string' function, that
is the standard but many mailers don't support it."
  (let ((rfc2047-encoding-type 'mime)
	(rfc2047-encode-max-chars nil))
    (rfc2045-encode-string param (rfc2047-encode-string value t))))