(message-resend): Enclose `message-setup' with `(let
authormorioka <morioka>
Sat, 27 Dec 1997 16:38:59 +0000 (16:38 +0000)
committermorioka <morioka>
Sat, 27 Dec 1997 16:38:59 +0000 (16:38 +0000)
(message-setup-hook) ...)' to avoid to `turn-on-mime-edit'; must setup
`message-encoding-buffer' and `message-edit-buffer' for
`message-send-mail'.

lisp/message.el

index 55e3d8e..96e5626 100644 (file)
@@ -3516,7 +3516,10 @@ Optional NEWS will use news to forward instead of mail."
       (set-buffer (get-buffer-create " *message resend*"))
       (buffer-disable-undo (current-buffer))
       (erase-buffer)
-      (message-setup `((To . ,address)))
+      ;; avoid to turn-on-mime-edit
+      (let (message-setup-hook)
+       (message-setup `((To . ,address)))
+       )
       ;; Insert our usual headers.
       (message-generate-headers '(From Date To))
       (message-narrow-to-headers)
@@ -3547,7 +3550,9 @@ Optional NEWS will use news to forward instead of mail."
       (when (looking-at "From ")
        (replace-match "X-From-Line: "))
       ;; Send it.
-      (message-send-mail)
+      (let ((message-encoding-buffer (current-buffer))
+           (message-edit-buffer (current-buffer)))
+       (message-send-mail))
       (kill-buffer (current-buffer)))
     (message "Resending message to %s...done" address)))