-.TH MH-ALIAS %manext5% "%nmhdate%" MH.6.8 [%nmhversion%]
+.TH MH-ALIAS %manext5% "Oct 14, 2012" "%nmhversion%"
.\"
.\" %nmhwarning%
.\"
.PP
An approximation of the way aliases are resolved at posting time is
(it's not really done this way):
-.PP
-.RS 2
-.IP 1) 3
+.IP 1)
Build a list of all addresses from the message to be delivered,
eliminating duplicate addresses.
-.PP
-.IP 2) 3
+.IP 2)
If this draft originated on the local host, then for those addresses in
the message that have no host specified, perform alias resolution.
-.PP
-.IP 3) 3
+.IP 3)
For each line in the alias file, compare \*(lqalias\*(rq against all of
the existing addresses. If a match, remove the matched \*(lqalias\*(rq
from the address list, and add each new address in the address\-group to
.B nmh
aliases
and personal aliases are unknown to the mail transport system.
-.RE
.PP
Since the alias file is read line by line, forward references work, but
backward references are not recognized, thus, there is no recursion.
To use aliasing in
.B nmh
quickly, do the following:
-.PP
-.RS 2
-.IP 1) 3
+.IP 1)
In your
.IR \&.mh\(ruprofile ,
choose a name for your alias file, say
.RI \*(lq aliases \*(rq,
and add the line:
-.PP
-.RS 5
-.nf
+.sp
Aliasfile: aliases
.\" ali: \-alias aliases
.\" send: \-alias aliases
.\" whom: \-alias aliases
-.fi
.RE
-.PP
-.IP 2) 3
+.IP 2)
Create the file
.RI \*(lq aliases \*(rq
in your
.B nmh
directory.
-.PP
-.IP 3) 3
+.IP 3)
Start adding aliases to your
.RI \*(lq aliases \*(rq
file as appropriate.
.B post
will append the semicolon to the blind list name.
.SH FILES
-.fc ^ ~
-.nf
-.ta \w'%etcdir%/ExtraBigFileName 'u
-^%etcdir%/MailAliases~^global nmh alias file
-.fi
+.TP 20
+%etcdir%/MailAliases
+global nmh alias file
.SH "PROFILE COMPONENTS"
-.fc ^ ~
-.nf
-.ta 2.4i
-.ta \w'ExtraBigProfileName 'u
-^Aliasfile:~^For a default alias file
-.fi
+.TP 20
+Aliasfile:
+Default alias file
.SH "SEE ALSO"
.IR ali (1),
.IR send (1),
.IR whom (1),
.IR group (5),
.IR passwd (5),
-.IR conflict(8),
+.IR conflict (8),
.IR post (8)
.SH CONTEXT
None