From ae137a0c1e37e9eafac1c51d5e00c01fbaf4c2eb Mon Sep 17 00:00:00 2001 From: yamaoka Date: Wed, 29 Oct 2003 22:04:59 +0000 Subject: [PATCH] Synch to Gnus 200310292115. --- lisp/ChangeLog | 11 +++++++++++ lisp/message.el | 29 +++++++++++++++++++++-------- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 27709ea..c72ff8d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,14 @@ +2003-10-29 Simon Josefsson + + * message.el (message-forward-make-body-plain): Fix ARG=1 mode + after separating m-f-m-b. + +2003-10-29 Simon Josefsson + + * message.el (message-forward-make-body-plain): Remove ignored + headers. Tiny patch from Andre Srinivasan . + (message-forward-make-body-plain): Fix ARG=1. + 2003-10-28 Jesper Harder * message.el (message-forward-subject-name-subject) diff --git a/lisp/message.el b/lisp/message.el index 77cbe7b..2d3c7cf 100644 --- a/lisp/message.el +++ b/lisp/message.el @@ -6750,16 +6750,29 @@ Optional NEWS will use news to forward instead of mail." (insert "\n-------------------- Start of forwarded message --------------------\n") (let ((b (point)) e) - (save-restriction - (narrow-to-region (point) (point)) - (mml-insert-buffer forward-buffer) - (goto-char (point-min)) - (when (looking-at "From ") - (replace-match "X-From-Line: ")) - (goto-char (point-max))) + (insert + (with-temp-buffer + (mm-disable-multibyte) + (insert + (with-current-buffer forward-buffer + (mm-with-unibyte-current-buffer (buffer-string)))) + (mm-enable-multibyte) + (mime-to-mml) + (goto-char (point-min)) + (when (looking-at "From ") + (replace-match "X-From-Line: ")) + (buffer-string))) (setq e (point)) (insert - "\n-------------------- End of forwarded message --------------------\n"))) + "\n-------------------- End of forwarded message --------------------\n") + (when (and (not current-prefix-arg) + message-forward-ignored-headers) + (save-restriction + (narrow-to-region b e) + (goto-char b) + (narrow-to-region (point) + (or (search-forward "\n\n" nil t) (point))) + (message-remove-header message-forward-ignored-headers t))))) (defun message-forward-make-body-mime (forward-buffer) (insert "\n\n<#part type=message/rfc822 disposition=inline raw=t>\n") -- 1.7.10.4