Xref: utzoo gnu.emacs.help:1079 comp.emacs:10017 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ames!rex!samsung!uunet!tut.cis.ohio-state.edu!osf.org!meissner From: meissner@osf.org Newsgroups: gnu.emacs.help,comp.emacs Subject: Re: RMAIL does something I don't understand... Message-ID: <9102052011.AA25007@curley.osf.org> Date: 5 Feb 91 20:11:27 GMT Sender: daemon@tut.cis.ohio-state.edu Followup-To: gnu.emacs.help Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Lines: 44 | From: manderso@mpr.ca (Mark Anderson) | Newsgroups: gnu.emacs.help | Date: 5 Feb 91 02:08:46 GMT | Reply-To: manderso@mprgate.mpr.ca (Mark Anderson) | Organization: MPR Teltech Ltd., Burnaby, B.C., Canada | | In article <6356@spdcc.SPDCC.COM> bondc@spdcc.COM (Asmodeus) writes: | >Ayup, that's it. Doesn't work. | | Aliases from the .mailrc file are stored in Emacs in the variable | mail-aliases. I suspect that changes to .mailrc after RMAIL reads it | the first time are not reflected in the variable. You can force Emacs | to read the .mailrc by setting mail-aliases to 't. Or you can add the following to your .emacs file, and any time you save .mailrc, it will reset mail-aliases automatically. (defvar mrm-recursive-rebuild-aliases nil "Non-nil if within mrm-rebuild-mail-aliases.") (defun mrm-rebuild-mail-aliases-hook () "Hook to rebuild the mail aliases, whenever ~/.mailrc is stored." (if (and (not mrm-recursive-rebuild-aliases) (string-equal buffer-file-name (expand-file-name "~/.mailrc"))) (unwind-protect (progn (setq mrm-recursive-rebuild-aliases t) (basic-save-buffer) (setq mail-aliases t) (message "Mail will be rebuilt the next time mail is sent")) (progn (setq mrm-recursive-rebuild-aliases nil) t)) nil)) (if (not (memq 'mrm-rebuild-mail-aliases-hook write-file-hooks)) (setq write-file-hooks (cons 'mrm-rebuild-mail-aliases-hook write-file-hooks))) -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 Considering the flames and intolerance, shouldn't USENET be spelled ABUSENET?