diff options
| author | Katsumi Yamaoka | 2010-09-20 23:44:05 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-20 23:44:05 +0000 |
| commit | e4e22d2951c4b89ea1a93b541a965df84219255e (patch) | |
| tree | df0851491a29a584606c9559a91ca563a6dd3cda | |
| parent | a46359d4fb16b4cd512f86d5699c834834fa8cea (diff) | |
| download | emacs-e4e22d2951c4b89ea1a93b541a965df84219255e.tar.gz emacs-e4e22d2951c4b89ea1a93b541a965df84219255e.zip | |
rfc2047.el (rfc2047-encode-parameter): Doc fix.
emacs-mime.texi (rfc2047): Update description for rfc2047-encode-parameter.
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/emacs-mime.texi | 18 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/rfc2047.el | 14 |
4 files changed, 14 insertions, 27 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index d8346259c6f..68d6d3c8f00 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-09-20 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * emacs-mime.texi (rfc2047): Update description for | ||
| 4 | rfc2047-encode-parameter. | ||
| 5 | |||
| 1 | 2010-09-13 Michael Albinus <michael.albinus@gmx.de> | 6 | 2010-09-13 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * tramp.texi (Inline methods): Remove "ssh1_old", "ssh2_old" and | 8 | * tramp.texi (Inline methods): Remove "ssh1_old", "ssh2_old" and |
diff --git a/doc/misc/emacs-mime.texi b/doc/misc/emacs-mime.texi index 3e996e945fb..2a0e8569266 100644 --- a/doc/misc/emacs-mime.texi +++ b/doc/misc/emacs-mime.texi | |||
| @@ -1469,21 +1469,9 @@ Decode a string and return the results. | |||
| 1469 | 1469 | ||
| 1470 | @item rfc2047-encode-parameter | 1470 | @item rfc2047-encode-parameter |
| 1471 | @findex rfc2047-encode-parameter | 1471 | @findex rfc2047-encode-parameter |
| 1472 | Encode a parameter in the RFC2047-like style. This is a replacement for | 1472 | Encode a parameter in the RFC2047-like style. This is a substitution |
| 1473 | the @code{rfc2231-encode-string} function. @xref{rfc2231}. | 1473 | for the @code{rfc2231-encode-string} function, that is the standard but |
| 1474 | 1474 | many mailers don't support it. @xref{rfc2231}. | |
| 1475 | When attaching files as @acronym{MIME} parts, we should use the RFC2231 | ||
| 1476 | encoding to specify the file names containing non-@acronym{ASCII} | ||
| 1477 | characters. However, many mail softwares don't support it in practice | ||
| 1478 | and recipients won't be able to extract files with correct names. | ||
| 1479 | Instead, the RFC2047-like encoding is acceptable generally. This | ||
| 1480 | function provides the very RFC2047-like encoding, resigning to such a | ||
| 1481 | regrettable trend. To use it, put the following line in your | ||
| 1482 | @file{~/.gnus.el} file: | ||
| 1483 | |||
| 1484 | @lisp | ||
| 1485 | (defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter) | ||
| 1486 | @end lisp | ||
| 1487 | 1475 | ||
| 1488 | @end table | 1476 | @end table |
| 1489 | 1477 | ||
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index dd54343616b..b85618ae705 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-09-20 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * rfc2047.el (rfc2047-encode-parameter): Doc fix. | ||
| 4 | |||
| 1 | 2010-09-20 Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | 2010-09-20 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * nnimap.el (nnimap-request-group): Don't select the imap buffer before | 7 | * nnimap.el (nnimap-request-group): Don't select the imap buffer before |
diff --git a/lisp/gnus/rfc2047.el b/lisp/gnus/rfc2047.el index 628423050b9..4fd1086ace0 100644 --- a/lisp/gnus/rfc2047.el +++ b/lisp/gnus/rfc2047.el | |||
| @@ -851,18 +851,8 @@ Point moves to the end of the region." | |||
| 851 | 851 | ||
| 852 | (defun rfc2047-encode-parameter (param value) | 852 | (defun rfc2047-encode-parameter (param value) |
| 853 | "Return and PARAM=VALUE string encoded in the RFC2047-like style. | 853 | "Return and PARAM=VALUE string encoded in the RFC2047-like style. |
| 854 | This is a replacement for the `rfc2231-encode-string' function. | 854 | This is a substitution for the `rfc2231-encode-string' function, that |
| 855 | 855 | is the standard but many mailers don't support it." | |
| 856 | When attaching files as MIME parts, we should use the RFC2231 encoding | ||
| 857 | to specify the file names containing non-ASCII characters. However, | ||
| 858 | many mail softwares don't support it in practice and recipients won't | ||
| 859 | be able to extract files with correct names. Instead, the RFC2047-like | ||
| 860 | encoding is acceptable generally. This function provides the very | ||
| 861 | RFC2047-like encoding, resigning to such a regrettable trend. To use | ||
| 862 | it, put the following line in your ~/.gnus.el file: | ||
| 863 | |||
| 864 | \(defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter) | ||
| 865 | " | ||
| 866 | (let ((rfc2047-encoding-type 'mime) | 856 | (let ((rfc2047-encoding-type 'mime) |
| 867 | (rfc2047-encode-max-chars nil)) | 857 | (rfc2047-encode-max-chars nil)) |
| 868 | (rfc2045-encode-string param (rfc2047-encode-string value)))) | 858 | (rfc2045-encode-string param (rfc2047-encode-string value)))) |