From: yamaoka Date: Wed, 29 Oct 2003 22:04:59 +0000 (+0000) Subject: Synch to Gnus 200310292115. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae137a0c1e37e9eafac1c51d5e00c01fbaf4c2eb;p=elisp%2Fgnus.git- Synch to Gnus 200310292115. --- 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")