home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!spool.mu.edu!umn.edu!news.cs.indiana.edu!cherry!wmperry
- From: wmperry@cherry.ucs.indiana.edu (William M. Perry)
- Subject: Re: RMAIL questions
- In-Reply-To: jkr+@CS.CMU.EDU's message of 11 Sep 92 19:02:55 GMT
- Message-ID: <WMPERRY.92Sep11223350@cherry.ucs.indiana.edu>
- Organization: Computer Science Student, Indiana University
- References: <BuFGwv.K0K.2@cs.cmu.edu>
- Date: 11 Sep 92 22:33:50
- Lines: 32
-
- >There are a couple of default behaviors I would like to add or modify:
-
- >(1) I would like to have Re: at the beginning of my subject field
- > when replying to a message, as is the convention.
-
- I'm pretty sure this is the default.
-
- >(2) I would like to be able to reply to just the sender.
-
- It is fairly simple to do this. I wrote a function rmail-new-reply
- that yanks the message you are replying to, inserts '>' at the
- beginning of each line, and just replies to the sender. Set it up
- using: (define-key rmail-mode-map "r" 'rmail-new-reply) in your
- rmail-mode-hook. Here is the function:
-
- (defun rmail-new-reply ()
- (interactive)
- (rmail-reply 1) ;;; this tells it to just reply to the sender
- (mail-yank-original 0) ;;; yank in old message, indentation 0
- (goto-char 1) ;; go to beginning of message
- (re-search-forward mail-header-separator nil t) ;;; go past headers
- (replace-regexp "^" ">")) ;;; put a '>' at the start of each line
-
- >Thanks,
- >Ken
-
- hope this is what you wanted...
- -Bill
- --
- William M. Perry / 'When you know a thing, to hold that you know it;
- wmperry@ucs.indiana.edu / and when you do not know a thing, to allow that you
- Phone: (812) 336 - 3071 / do not know it; this is knowlege.' - Confucius
-