rfc2047.el (rfc2047-encode-parameter): Doc fix.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 20 Sep 2010 23:38:02 +0000 (23:38 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 20 Sep 2010 23:38:02 +0000 (23:38 +0000)
emacs-mime.texi (rfc2047): Update description for rfc2047-encode-parameter.

lisp/ChangeLog
lisp/rfc2047.el

index 6b7f0f5..aa788ac 100644 (file)
@@ -1,3 +1,7 @@
+2010-09-20  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * rfc2047.el (rfc2047-encode-parameter): Doc fix.
+
 2010-09-20  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * nnimap.el (nnimap-request-group): Don't select the imap buffer before
index 6284230..4fd1086 100644 (file)
@@ -851,18 +851,8 @@ Point moves to the end of the region."
 
 (defun rfc2047-encode-parameter (param value)
   "Return and PARAM=VALUE string encoded in the RFC2047-like style.
-This is a replacement for the `rfc2231-encode-string' function.
-
-When attaching files as MIME parts, we should use the RFC2231 encoding
-to specify the file names containing non-ASCII characters.  However,
-many mail softwares don't support it in practice and recipients won't
-be able to extract files with correct names.  Instead, the RFC2047-like
-encoding is acceptable generally.  This function provides the very
-RFC2047-like encoding, resigning to such a regrettable trend.  To use
-it, put the following line in your ~/.gnus.el file:
-
-\(defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter)
-"
+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))))