(call-process-region (point-min) (point-max) shell-file-name
nil nil nil "-c" program)))
(t
+ (setq fcc-file (expand-file-name fcc-file))
;; Suggested by hyoko@flab.fujitsu.junet.
;; Save article in Unix mail format by default.
(gnus-make-directory (file-name-directory fcc-file))
(pop-to-buffer gnus-mail-buffer)
(erase-buffer)
(gnus-mail-setup 'new to)
- (gnus-inews-modify-mail-mode-map))
+ (run-hooks 'gnus-mail-hook))
(defun gnus-mail-reply (&optional yank to-address followup)
(save-excursion
(setq gnus-in-reply-to message-of)
(auto-save-mode auto-save-default)
- (gnus-inews-modify-mail-mode-map)
(if (and follow-to (listp follow-to))
(progn
(news-reply-mode)
;; Let posting styles be configured.
(gnus-configure-posting-styles)
- (news-setup nil subject nil (gnus-group-real-name group) nil)
+ (news-setup nil subject nil (and group (gnus-group-real-name group)) nil)
(gnus-inews-insert-signature)
(and gnus-post-prepare-function
(symbolp gnus-post-prepare-function)
()
(erase-buffer)
(gnus-mail-setup 'forward nil subject)
- (gnus-inews-modify-mail-mode-map)
(make-local-variable 'gnus-prev-winconf)
(setq gnus-prev-winconf winconf)
(gnus-forward-insert-buffer forward-buffer)
(goto-char (point-min))
- (re-search-forward "^To: " nil t)
+ (re-search-forward "^To: ?" nil t)
(gnus-configure-windows 'mail-forward 'force)
;; You have a chance to arrange the message.
(run-hooks 'gnus-mail-forward-hook)
(funcall
(cond
((or
- (and (eq type 'reply)
+ (and (or (eq type 'reply) (eq type 'followup))
(eq gnus-mail-reply-method 'gnus-mail-reply-using-mhe))
(and (eq type 'forward)
(eq gnus-mail-forward-method 'gnus-mail-forward-using-mhe))
'gnus-mail-other-window-using-mhe)))
'gnus-mh-mail-setup)
((or
- (and (eq type 'reply)
+ (and (or (eq type 'reply) (eq type 'followup))
(eq gnus-mail-reply-method 'gnus-mail-reply-using-vm))
(and (eq type 'forward)
(eq gnus-mail-forward-method 'gnus-mail-forward-using-vm))
(defun gnus-sendmail-mail-setup (to subject in-reply-to cc replybuffer actions)
(mail-mode)
- (mail-setup to subject nil cc replybuffer actions))
+ (mail-setup to subject nil cc replybuffer actions)
+ (gnus-inews-modify-mail-mode-map))
;;; Gcc handling.