Commit e4e22d29 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

rfc2047.el (rfc2047-encode-parameter): Doc fix.

emacs-mime.texi (rfc2047): Update description for rfc2047-encode-parameter.
parent a46359d4
2010-09-20 Katsumi Yamaoka <yamaoka@jpl.org>
* emacs-mime.texi (rfc2047): Update description for
rfc2047-encode-parameter.
2010-09-13 Michael Albinus <michael.albinus@gmx.de> 2010-09-13 Michael Albinus <michael.albinus@gmx.de>
* tramp.texi (Inline methods): Remove "ssh1_old", "ssh2_old" and * tramp.texi (Inline methods): Remove "ssh1_old", "ssh2_old" and
......
...@@ -1469,21 +1469,9 @@ Decode a string and return the results. ...@@ -1469,21 +1469,9 @@ Decode a string and return the results.
@item rfc2047-encode-parameter @item rfc2047-encode-parameter
@findex rfc2047-encode-parameter @findex rfc2047-encode-parameter
Encode a parameter in the RFC2047-like style. This is a replacement for Encode a parameter in the RFC2047-like style. This is a substitution
the @code{rfc2231-encode-string} function. @xref{rfc2231}. for the @code{rfc2231-encode-string} function, that is the standard but
many mailers don't support it. @xref{rfc2231}.
When attaching files as @acronym{MIME} parts, we should use the RFC2231
encoding to specify the file names containing non-@acronym{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
@file{~/.gnus.el} file:
@lisp
(defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter)
@end lisp
@end table @end table
......
2010-09-20 Katsumi Yamaoka <yamaoka@jpl.org>
* rfc2047.el (rfc2047-encode-parameter): Doc fix.
2010-09-20 Lars Magne Ingebrigtsen <larsi@gnus.org> 2010-09-20 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nnimap.el (nnimap-request-group): Don't select the imap buffer before * nnimap.el (nnimap-request-group): Don't select the imap buffer before
......
...@@ -851,18 +851,8 @@ Point moves to the end of the region." ...@@ -851,18 +851,8 @@ Point moves to the end of the region."
(defun rfc2047-encode-parameter (param value) (defun rfc2047-encode-parameter (param value)
"Return and PARAM=VALUE string encoded in the RFC2047-like style. "Return and PARAM=VALUE string encoded in the RFC2047-like style.
This is a replacement for the `rfc2231-encode-string' function. This is a substitution for the `rfc2231-encode-string' function, that
is the standard but many mailers don't support it."
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)
"
(let ((rfc2047-encoding-type 'mime) (let ((rfc2047-encoding-type 'mime)
(rfc2047-encode-max-chars nil)) (rfc2047-encode-max-chars nil))
(rfc2045-encode-string param (rfc2047-encode-string value)))) (rfc2045-encode-string param (rfc2047-encode-string value))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment