diff options
author | Miles Bader <miles@gnu.org> | 2008-01-24 07:47:38 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2008-01-24 07:47:38 +0000 |
commit | 4599d0ec2152952709e6f9302d44f453a4db7391 (patch) | |
tree | dcd2dfd42c1584855fe634fca086d10cbd74dc59 /lisp/gnus/mml.el | |
parent | bf9a7ece32985dea7fbbb23852c3b68d3d9ef8b1 (diff) | |
download | emacs-4599d0ec2152952709e6f9302d44f453a4db7391.tar.gz |
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1009
Diffstat (limited to 'lisp/gnus/mml.el')
-rw-r--r-- | lisp/gnus/mml.el | 9 |
1 files changed, 7 insertions, 2 deletions
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." (defun mml-to-mime () "Translate the current buffer from MML to MIME." - (message-encode-message-body) + ;; `message-encode-message-body' will insert an encoded Content-Description + ;; header in the message header if the body contains a single part + ;; that is specified by a user with a MML tag containing a description + ;; token. So, we encode the message header first to prevent the encoded + ;; Content-Description header from being encoded again. (save-restriction (message-narrow-to-headers-or-head) ;; Skip past any From_ headers. (while (looking-at "From ") (forward-line 1)) (let ((mail-parse-charset message-default-charset)) - (mail-encode-encoded-word-buffer)))) + (mail-encode-encoded-word-buffer))) + (message-encode-message-body)) (defun mml-insert-mime (handle &optional no-markup) (let (textp buffer mmlp) |