Article View: gnu.emacs.bug
Article #99956Re: mailrc files
From: Oliver Schoett
Date: Wed, 11 Apr 1990 17:36
Date: Wed, 11 Apr 1990 17:36
34 lines
2067 bytes
2067 bytes
In article <MDB.90Apr10195948@kosciusko.ESD.3Com.COM> mdb@ESD.3Com.COM
(Mark D. Baushke) writes:
[How to get aliases rebuilt automatically:]
> I put the following as the last few lines of my ~/.mailrc ...
>
> Note: the line which starts with '# write-file-hooks: has been split
> into multiple lines to avoid truncation via e-mail. All of the lines
> which do not begin with a '#' should be combined to be on the
> write-file-hooks line.
>
> # hack-o-rama
> # local variables:
> # mode: text
> # write-file-hooks: ((lambda () (let ((xyzzy (make-temp-name
> "/tmp/foo"))) (condition-case () (progn (message "Rehacking
> aliases...") (write-region (point-min) (point-max) xyzzy nil 'foo)
> (build-mail-aliases xyzzy) (delete-file xyzzy)) (file-error nil)))
> nil))
> # end:
I'm more simple-minded (long line split as above):
# Local Variables:
# write-file-hooks: ((lambda () (let (write-file-hooks) (save-buffer))
(build-mail-aliases) t))
# End:
Oliver Schoett Inst. f\"ur Informatik, Technische Univ. M\"unchen
Postfach 20 24 20, 8000 M\"unchen 2, West Germany
schoett@lan.informatik.tu-muenchen.dbp.de +49 89 2105 2390
schoett%lan.<as above>.de@ {relay.cs.net, unido.uucp, dfngate.bitnet}
Technical Details
Message-ID:
<1839@tuminfo1.lan.informatik.tu-muenchen.dbp.de>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!tumuc!lan!schoettReferences:
<9004100329.AA00700@ittc> <9004101458.AA02134@borodin.> <MDB.90Apr10195948@kosciusko.ESD.3Com.COM>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,fee184a1ec44c4a3 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-04-11 10:36:49 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!tumuc!lan!schoett From: schoett@lan.informatik.tu-muenchen.dbp.de (Oliver Schoett) Newsgroups: gnu.emacs.bug Subject: Re: mailrc files Message-ID: <1839@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Date: 11 Apr 90 17:36:49 GMT References: <9004100329.AA00700@ittc> <9004101458.AA02134@borodin.> <MDB.90Apr10195948@kosciusko.ESD.3Com.COM> Sender: news@lan.informatik.tu-muenchen.dbp.de Distribution: gnu Organization: Inst. fuer Informatik, Technische Univ. Muenchen, West Germany Lines: 34 Posted: Wed Apr 11 18:36:49 1990 In-reply-to: mdb@ESD.3Com.COM's message of 11 Apr 90 02:59:48 GMT