diff options
| author | Miles Bader | 2008-01-24 07:47:38 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-01-24 07:47:38 +0000 |
| commit | 4599d0ec2152952709e6f9302d44f453a4db7391 (patch) | |
| tree | dcd2dfd42c1584855fe634fca086d10cbd74dc59 | |
| parent | bf9a7ece32985dea7fbbb23852c3b68d3d9ef8b1 (diff) | |
| download | emacs-4599d0ec2152952709e6f9302d44f453a4db7391.tar.gz emacs-4599d0ec2152952709e6f9302d44f453a4db7391.zip | |
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1009
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/mm-decode.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/mml.el | 9 |
4 files changed, 20 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 569789888dd..dbba5fd608e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2008-01-23 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-insert-mime-button): Don't decode description. | ||
| 4 | |||
| 5 | * mm-decode.el (mm-dissect-buffer): Decode description. | ||
| 6 | |||
| 7 | * mml.el (mml-to-mime): Encode message header first. | ||
| 8 | |||
| 1 | 2008-01-18 Katsumi Yamaoka <yamaoka@jpl.org> | 9 | 2008-01-18 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 10 | ||
| 3 | * gnus-art.el (gnus-article-describe-bindings): Make it possible to use | 11 | * gnus-art.el (gnus-article-describe-bindings): Make it possible to use |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 6e41f413609..f93a304be46 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -5455,9 +5455,7 @@ N is the numerical prefix." | |||
| 5455 | (mail-content-type-get (mm-handle-type handle) 'url) | 5455 | (mail-content-type-get (mm-handle-type handle) 'url) |
| 5456 | "")) | 5456 | "")) |
| 5457 | (gnus-tmp-type (mm-handle-media-type handle)) | 5457 | (gnus-tmp-type (mm-handle-media-type handle)) |
| 5458 | (gnus-tmp-description | 5458 | (gnus-tmp-description (or (mm-handle-description handle) "")) |
| 5459 | (mail-decode-encoded-word-string (or (mm-handle-description handle) | ||
| 5460 | ""))) | ||
| 5461 | (gnus-tmp-dots | 5459 | (gnus-tmp-dots |
| 5462 | (if (if displayed (car displayed) | 5460 | (if (if displayed (car displayed) |
| 5463 | (mm-handle-displayed-p handle)) | 5461 | (mm-handle-displayed-p handle)) |
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index 8e88ffca6bb..f832a9c28e1 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el | |||
| @@ -570,7 +570,10 @@ Postpone undisplaying of viewers for types in | |||
| 570 | ;; creates unibyte buffers. This `if', though not a perfect | 570 | ;; creates unibyte buffers. This `if', though not a perfect |
| 571 | ;; solution, avoids most of them. | 571 | ;; solution, avoids most of them. |
| 572 | (if from | 572 | (if from |
| 573 | (setq from (cadr (mail-extract-address-components from)))))) | 573 | (setq from (cadr (mail-extract-address-components from)))) |
| 574 | (if description | ||
| 575 | (setq description (mail-decode-encoded-word-string | ||
| 576 | description))))) | ||
| 574 | (if (or (not ctl) | 577 | (if (or (not ctl) |
| 575 | (not (string-match "/" (car ctl)))) | 578 | (not (string-match "/" (car ctl)))) |
| 576 | (mm-dissect-singlepart | 579 | (mm-dissect-singlepart |
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index 04f8ef4e462..2b5987e5e6e 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el | |||
| @@ -875,14 +875,19 @@ If HANDLES is non-nil, use it instead reparsing the buffer." | |||
| 875 | 875 | ||
| 876 | (defun mml-to-mime () | 876 | (defun mml-to-mime () |
| 877 | "Translate the current buffer from MML to MIME." | 877 | "Translate the current buffer from MML to MIME." |
| 878 | (message-encode-message-body) | 878 | ;; `message-encode-message-body' will insert an encoded Content-Description |
| 879 | ;; header in the message header if the body contains a single part | ||
| 880 | ;; that is specified by a user with a MML tag containing a description | ||
| 881 | ;; token. So, we encode the message header first to prevent the encoded | ||
| 882 | ;; Content-Description header from being encoded again. | ||
| 879 | (save-restriction | 883 | (save-restriction |
| 880 | (message-narrow-to-headers-or-head) | 884 | (message-narrow-to-headers-or-head) |
| 881 | ;; Skip past any From_ headers. | 885 | ;; Skip past any From_ headers. |
| 882 | (while (looking-at "From ") | 886 | (while (looking-at "From ") |
| 883 | (forward-line 1)) | 887 | (forward-line 1)) |
| 884 | (let ((mail-parse-charset message-default-charset)) | 888 | (let ((mail-parse-charset message-default-charset)) |
| 885 | (mail-encode-encoded-word-buffer)))) | 889 | (mail-encode-encoded-word-buffer))) |
| 890 | (message-encode-message-body)) | ||
| 886 | 891 | ||
| 887 | (defun mml-insert-mime (handle &optional no-markup) | 892 | (defun mml-insert-mime (handle &optional no-markup) |
| 888 | (let (textp buffer mmlp) | 893 | (let (textp buffer mmlp) |