Function: mh-compose-forward
mh-compose-forward is an autoloaded, interactive and byte-compiled
function defined in mh-mime.el.gz.
Signature
(mh-compose-forward &optional DESCRIPTION FOLDER RANGE)
Documentation
Add tag to forward a message.
You are prompted for a content DESCRIPTION, the name of the
FOLDER in which the messages to forward are located, and a RANGE
of messages, which defaults to the current message in that
folder. Check the documentation of mh-interactive-range to see
how RANGE is read in interactive use.
The option mh-compose-insertion(var)/mh-compose-insertion(fun) controls what type of tags are inserted.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-mime.el.gz
;;; MH-Letter Commands
;; MH-E commands are alphabetical; specific support routines follow command.
;;;###mh-autoload
(defun mh-compose-forward (&optional description folder range)
"Add tag to forward a message.
You are prompted for a content DESCRIPTION, the name of the
FOLDER in which the messages to forward are located, and a RANGE
of messages, which defaults to the current message in that
folder. Check the documentation of `mh-interactive-range' to see
how RANGE is read in interactive use.
The option `mh-compose-insertion' controls what type of tags are inserted."
(interactive
(let* ((description
(mml-minibuffer-read-description))
(folder
(mh-prompt-for-folder "Message from"
mh-sent-from-folder nil))
(default
(if (and (equal folder mh-sent-from-folder)
(numberp mh-sent-from-msg))
mh-sent-from-msg
(nth 0 (mh-translate-range folder "cur"))))
(range
(mh-read-range "Forward" folder
(or (and default
(number-to-string default))
t)
t t)))
(list description folder range)))
(let ((messages (mapconcat #'identity (mh-list-to-string range) " ")))
(dolist (message (mh-translate-range folder messages))
(if (equal mh-compose-insertion 'mml)
(mh-mml-forward-message description folder (format "%s" message))
(mh-mh-forward-message description folder (format "%s" message))))))