Function: rfc2045-encode-string
rfc2045-encode-string is a byte-compiled function defined in
rfc2045.el.gz.
Signature
(rfc2045-encode-string PARAM VALUE)
Documentation
Return a PARAM=VALUE string encoded according to RFC2045.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rfc2045.el.gz
(defun rfc2045-encode-string (param value)
"Return a PARAM=VALUE string encoded according to RFC2045."
(if (or (string-match (concat "[" ietf-drums-no-ws-ctl-token "]") value)
(string-match (concat "[" ietf-drums-tspecials "]") value)
(string-match "[ \n\t]" value)
(not (string-match (concat "[" ietf-drums-text-token "]") value)))
(concat param "=" (format "%S" value))
(concat param "=" value)))