Function: gnus-summary-resend-message-edit
gnus-summary-resend-message-edit is an interactive and byte-compiled
function defined in gnus-msg.el.gz.
Signature
(gnus-summary-resend-message-edit)
Documentation
Resend an article that has already been sent.
A new buffer will be created to allow the user to modify body and contents of the message, and then, everything will happen as when composing a new message.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-msg.el.gz
;; From: Matthieu Moy <Matthieu.Moy@imag.fr>
(defun gnus-summary-resend-message-edit ()
"Resend an article that has already been sent.
A new buffer will be created to allow the user to modify body and
contents of the message, and then, everything will happen as when
composing a new message."
(interactive nil gnus-summary-mode)
(let ((mail-parse-charset gnus-newsgroup-charset))
(gnus-setup-message 'reply-yank
(gnus-summary-select-article t)
(set-buffer gnus-original-article-buffer)
(let ((cur (current-buffer))
(to (message-fetch-field "to")))
;; Get a normal message buffer.
(message-pop-to-buffer (message-buffer-name "Resend" to))
(insert-buffer-substring cur)
(mime-to-mml)
(message-narrow-to-head-1)
;; Gnus will generate a new one when sending.
(message-remove-header "Message-ID")
;; Remove unwanted headers.
(message-remove-header message-ignored-resent-headers t)
(goto-char (point-max))
(insert mail-header-separator)
;; Add Gcc header.
(gnus-inews-insert-gcc)
(goto-char (point-min))
(when (re-search-forward "^To:\\|^Newsgroups:" nil 'move)
(forward-char 1))
(widen)))))