1 ; This autoloaded file implements the "f" command of mhe
3 (&mh-forw actn exfl sm annotate fn
6 (message "Forwarding message " (&mh-get-msgnum) "...")
9 (pop-to-buffer (concat "+" mh-folder))
10 (setq sm mode-line-format)
11 (delete-other-windows)
12 (setq annotate mh-annotate)
13 (setq fn (&mh-get-fname))
14 (pop-to-buffer "draft")
16 (insert-string "One moment, please...")
17 (unlink-file (concat mh-path "/draft"))
19 (concat mh-progs "/forw -build +" mh-folder " "
23 (read-file (concat mh-path "/draft"))
24 (local-bind-to-key "exit-emacs" "\
\18\
\ 3")
25 (mail-mode) (header-line-position)
26 (sit-for 0) (setq exfl 0)
29 (save-window-excursion
30 (pop-to-buffer (concat "+" mh-folder))
31 (setq mode-line-format
32 "{%b} ^X^C exits to top level")
33 (pop-to-buffer "draft")
34 (setq mode-line-format
35 (concat "{%b} %[%p of "
37 "^X^C exits to top level"))
38 (&mh-restore-killbuffer)
40 (setq mode-line-format
41 (concat "{%b} %[%p of "
43 (pop-to-buffer (concat "+" mh-folder))
44 (setq mode-line-format " ")
47 (setq actn (get-response "Ready to send. Action? (m, q, e, or ?) " "mMqQeE\
\ 3"
48 "m: mail it, q: quit, e: resume editing, ?: this msg."))
50 (progn (message "Sending...") (sit-for 0)
53 (concat mh-progs "/send -noverbose "
58 (temp-use-buffer "message")
60 (annotate "Replied" "Forwarded")
66 (&mh-restore-killbuffer)
67 (pop-to-buffer (concat "+" mh-folder))
68 (delete-other-windows)
69 (setq mode-line-format sm)
70 (error-message "Message not sent; its text remains in buffer 'draft'")
76 (pop-to-buffer (concat "+" mh-folder)) (delete-other-windows)
77 (setq mode-line-format sm)
78 (pop-to-buffer "draft") (previous-window)