[comp.emacs] rmail with 'Re:' in emacs

haozhou@acsu.buffalo.edu (hao zhou) (10/22/90)

I am using rmail in emacs as my mailer. I like it a lot of better 
than mail and elm. However one thing which annoys me is that rmail 
doesn't put 'Re:' in front of the subject line when I hit 'r' to do 
reply. Is there a way around this?

	-- HaoZ.

-- 
Internet:haozhou@acsu.buffalo.edu BITNET:haozhou%acsu.buffalo.edu@UBVM.BITNET
UUCP: uunet!acsu.buffalo.edu!haozhou

kgallagh@digi.lonestar.org (Kevin Gallagher) (10/25/90)

In article <41888@eerie.acsu.Buffalo.EDU> haozhou@acsu.buffalo.edu (hao zhou) writes:
>
>I am using rmail in emacs as my mailer. I like it a lot of better 
>than mail and elm. However one thing which annoys me is that rmail 
>doesn't put 'Re:' in front of the subject line when I hit 'r' to do 
>reply. Is there a way around this?
>
The following local customization of rmail.el was done here which does what
you want.  Only lines 1214 and 1215 were changed.  Note the change prevents
replies to replies from having more than one "Re: " added to the subject line. 

Original rmail.el from 18.54 GNU Emacs, lines 1211-1216:

				(mail-fetch-field "resent-message-id" t))
			       ((mail-fetch-field "message-id"))))))
    (and subject
	 (string-match "\\`Re: " subject)
	 (setq subject (substring subject 4)))
    (mail-other-window nil

Modified rmail.el:

				(mail-fetch-field "resent-message-id" t))
			       ((mail-fetch-field "message-id"))))))
    (and subject
	 (not (string-match "\\`Re: " subject))
	 (setq subject (concat "Re: " subject))
	 )
    (mail-other-window nil