Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!vsi1!wyse!mips!dce From: dce@mips.COM (David Elliott) Newsgroups: comp.mail.mh Subject: Re: aliases Message-ID: <4266@dunkshot.mips.COM> Date: 30 Sep 88 18:04:47 GMT References: <6471@teemc.UUCP> <8809152030.AA09719@dadla.LA.TEK.COM> <9039@teemc.UUCP> Reply-To: dce@dunkshot.UUCP (David Elliott) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 29 In article <9039@teemc.UUCP> wayne@teemc.UUCP (/\/\ichael R. \/\/ayne) writes: >My original request: >>> On the subject of aliases, is there any way to get the EXPANDED >>> version of the alias to show up in the file when you respond with edit >>> to the "What now?" prompt rather than only when you send the message? > >Many replied with something similar to the following. I guess I was not >sufficiently clear, I tend to be terse. I though your original was quite clear, but it isn't something MH does by default. Your best bet would be to write a program (shell script, probably) that would look for "To:" and "Cc:" lines (and "to:" and "cc:", as well), and uses ali (or maybe you could come up with your own special alias mechanism in addition) to expand each of the items that are potentially aliases. Then, you would set up your first editor to be a script that executes prompter and then runs the above expander to get the aliases. This would also allow "list" at the "What now?" prompt to show you the expanded list. An alternative is to set up a whatnowproc for comp/repl/forw/etc. that runs the alias expander automatically for you. -- David Elliott dce@mips.com or {ames,prls,pyramid,decwrl}!mips!dce