Thread View: news.software.nn
2 messages
2 total messages
Started by Clay Luther
Wed, 05 Dec 1990 01:12
Re: 'm' and 'M' commands - use .mailrc aliases?
Author: 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.
Re: 'm' and 'M' commands - use .mailrc aliases?
Author: Robert L. Howard
Date: Wed, 05 Dec 1990 15:30
Date: Wed, 05 Dec 1990 15:30
32 lines
1936 bytes
1936 bytes
In <1990Dec5.011229.13981@supernet.haus.com> cluther@supernet.haus.com (Clay Luther) writes:
>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....
:
>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
Check it out! The best idea so far. I'll vote for this one...
Robert
--
| Robert L. Howard | Georgia Tech Research Institute |
| rhoward@msd.gatech.edu | MATD Laboratory |
| (404) 528-7165 | Atlanta, Georgia 30332 |
| UUCP: ...!{allegra,amd,hplabs,ut-ngp}!gatech!msd!rhoward |
-------------------------------------------------------------------------
| "They [La Prensa] accused us of suppressing freedom of |
| expression. This was a lie and we could not let them |
| publish it." -- Nelba Blandon, Director of Censorship |
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads