Article View: news.software.nn
Article #1212Re: 'm' and 'M' commands - use .mailrc aliases?
From: Clay Luther
Date: Wed, 05 Dec 1990 01:12
Date: Wed, 05 Dec 1990 01:12
47 lines
2754 bytes
2754 bytes
djd@eos.arc.nasa.gov (Daniel J. Dasaro) writes: >I sometimes see articles that I want to forward to friends without net >access. Since I use an alias from my .mailrc, I don't know their addresses >off the top of my head. Is it possible for nn to pick up what I enter in >the "To:" field and check to see if it matches an alias in my .mailrc file? >It seems to me that this would be useful for almost anyone who uses the "M" >or "m" option. Anyone out there agree or disagree? The problem, as somebody has already pointed out, is that not everyone uses the .mailrc file to store aliases. I think, perhaps, the best solution would be for nn to provide a hook to an alias-lookup program. This program would perform textual substituions of aliases in the To: line of the message before nn sent the mail to the mda. NN would specify the output expected from the alias-lookup program, and allow the user to define one. If one is defined, then nn would call it, and check the output. The alias-lookup program could easily be written in script, or perl, or whatever, since it wouldn't matter to nn - he would only be looking at the stdout of the program for results. For instance, nn could state that it would call the alias lookup program by the form: alias-lookup alias and expect the answer to be left on stdout in the form: trueaddress Suppose the user is using elm, then his aliases are stored in $home/.elm/aliases.text in the form: alias = expansion name = trueaddress The shell script to find the trueaddress from the alias is trivial. By adding a program hook to the mail functions in nn, nn could address the user's need to access his aliases without showing preference to one particular form of aliasing and without requiring its own alias database. -- Clay Luther, Postmaster cluther@supernet.haus.com Harris Adacom Corporation postmaster@supernet.haus.com Voice: 214/386-2356 MS 23, PO Box 809022, Dallas, Tx 75380-9022 Fax: 214/386-2159 Your mileage may vary. Void where prohibited.
Technical Details
Message-ID:
<1990Dec5.011229.13981@supernet.haus.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!solo!supernet!clutherReferences:
<7644@eos.arc.nasa.gov>Show Full Headers
Complete Article Headers
Message-ID: <1990Dec5.011229.13981@supernet.haus.com> Subject: Re: 'm' and 'M' commands - use .mailrc aliases? Date: Wed, 05 Dec 1990 01:12:29 +0000 From: cluther@supernet.haus.com (Clay Luther) References: <7644@eos.arc.nasa.gov> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!solo!supernet!cluther Newsgroups: news.software.nn Organization: Harris Adacom Corporation Lines: 47 Posted: Wed Dec 5 02:12:29 1990