[gnu.emacs] prefixing subject of RMAIL replies with "Re: "

cutting@bopp.PARC.xerox.com (Doug Cutting) (08/05/89)

RMAIL currently removes "Re: " at the beginning of the subject field
when replying to messages.  I would prefer it add "Re: " to the
beginning of subject field in replies (unless it is already present).
I have changed rmail.el to have this behavior when the flag
rmail-reply-add-re-p is true.  This variable is false by default,
giving the original behavior.  Following are the diffs required for
this change.  I would very much appreciate it if this change made it
into some future release of emacs.

	Doug


60a61,63
> (defvar rmail-reply-add-re-p nil
>   "*If true, then the subject field of replies is prefixed with \"Re: \".")
> 
1207,1208c1210,1214
< 	 (string-match "\\`Re: " subject)
< 	 (setq subject (substring subject 4)))
---
> 	 (if (string-match "\\`Re: " subject)
> 	     (or rmail-reply-add-re-p
> 		 (setq subject (substring subject 4)))
> 	     (and rmail-reply-add-re-p
> 		  (setq subject (concat "Re: " subject)))))