marty@ultra.com (Marty Lyons) (11/29/90)
Is there any way in mh to define aliases, such that I can include a person's real name? For example, I want to have mail going out with the following RFC822 style headers: From: Marty Lyons <marty@ultra.com> To: Joe Smith <joe@anycompany.com> . . cc: Another User <user@bigschool.edu> Right now outbound mail simply has To: joe@anycompany.com, with no human name attached. There are other 822 style headers that I wonder if mh can generate, such as: userid (Real Name) "Real Name" <userid@host> Is there any way to do this in mh (I can't find any)? Or is there another user agent I can find which will support it? Thanks in advance. /Marty --- Marty Lyons, Ultra Network Technologies, 101 Daggett Dr, San Jose, CA 95134 USA (408) 922-0100 x196, marty@ultra.com, "Home of the 1 Gigabit/Second network" -- --- Marty Lyons, Ultra Network Technologies, 101 Daggett Dr, San Jose, CA 95134 USA (408) 922-0100 x196, marty@ultra.com, "Home of the 1 Gigabit/Second network"
khera@thneed.cs.duke.edu (Vick Khera) (11/29/90)
In article <1990Nov29.034915.1986@ultra.com> marty@ultra.com (Marty Lyons) writes:
Is there any way in mh to define aliases, such that I can include a
person's real name? For example, I want to have mail going out
with the following RFC822 style headers:
From: Marty Lyons <marty@ultra.com>
To: Joe Smith <joe@anycompany.com>
.
.
cc: Another User <user@bigschool.edu>
yes, this is possible. here is how the above would be listed in an
alias file:
joe: Joe Smith <joe@anycompany.com>
user: Another User <user@bigschool.edu>
which will substitute the entire alias, including the name, into the
message. to get the alias functionality, create a file in your mh
mail directory (mine is ~/.Mail/mhaliases) and add a line similar to
the following in your .mh_profile: (assumes mh 6.7)
AliasFile: mhaliases
then when you send mail ``To: joe'' or ``cc: user'', it will
substitute the alias when it gets sent. if the name contains funny
characters like a period or apostrophe, it is safest to put the name
in double quotes or parentheses:
phil: "Mr. Phil" <phil@somewhere.over.there>
v.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vick Khera, Gradual Student/Systems Guy Department of Computer Science
ARPA: khera@cs.duke.edu Duke University
UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528
rickert@mp.cs.niu.edu (Neil Rickert) (11/29/90)
In article <1990Nov29.034915.1986@ultra.com> marty@ultra.com (Marty Lyons) writes: > >Is there any way in mh to define aliases, such that I can include a >person's real name? For example, I want to have mail going out >with the following RFC822 style headers: > >From: Marty Lyons <marty@ultra.com> >To: Joe Smith <joe@anycompany.com> > . In your personal aliases file ($HOME/Mail/aliases), just create the entry: JoeSmith: "Joe Smith" <joe@anycompany.com> (the quotes are not actually needed in this case, since there are no special characters). Or if you prefer, you can edit the 'To:' header while composing the message. This works in mh-6.7. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science <rickert@cs.niu.edu> Northern Illinois Univ. DeKalb, IL 60115. +1-815-753-6940
marty@ultra.com (Marty Lyons) (11/30/90)
Thanks to Fred Avolio at DEC for showing me what I was doing wrong to get human names included in outgoing mail. I wasn't using the mh aliases file at all (thinking .mailrc was getting used), which was the main problem. Fred also sent along the format to use. aliasname: user@net.com (Real Name) or aliasname: Real Name <user@host.com> aliasname: "Real Name" <user@host.com> all of which work just fine. Thanks again! /Marty -- --- Marty Lyons, Ultra Network Technologies, 101 Daggett Dr, San Jose, CA 95134 USA (408) 922-0100 x196, marty@ultra.com, "Home of the 1 Gigabit/Second network"