Path: utzoo!attcan!uunet!wuarchive!cs.utexas.edu!sun-barr!newstop!texsun!digi.lonestar.org From: kgallagh@digi.lonestar.org (Kevin Gallagher) Newsgroups: comp.emacs Subject: Re: rmail with 'Re:' in emacs Message-ID: <1181@digi.lonestar.org> Date: 25 Oct 90 02:12:01 GMT References: <41888@eerie.acsu.Buffalo.EDU> Sender: kgallagh@digi.lonestar.org Organization: DSC Communications, Plano Tx. Lines: 29 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