5 .\" include the -mh macro file
8 .TH ALI %manext1% MH.6.8 [%nmhversion%]
10 ali \- list mail aliases
15 \%[\-alias\ aliasfile]
16 \%[\-list] \%[\-nolist]
20 \%[\-user] \%[\-nouser]
27 \fIAli\fR searches the named mail alias files for each of the given
28 \fIaliases\fR. It creates a list of addresses for those \fIaliases\fR,
29 and writes that list on standard output. If no arguments are given,
30 \fIali\fR outputs all alias entries.
32 By default, when an aliases expands to multiple addresses, the addresses
33 are separated by commas and printed on as few lines as possible. If the
34 `\-list' option is specified, then when an address expands to multiple
35 addresses, each address will appear on a separate line.
37 The switch `\-user' directs \fIali\fR to perform its processing in
38 an inverted fashion: instead of listing the addresses that each given
39 alias expands to, \fIali\fR will list the aliases that expand to each
40 given address. If the `\-normalize' switch is given, \fIali\fR will
41 try to track down the official hostname of the address.
43 The files specified by the profile entry \*(lqAliasfile:\*(rq and any
44 additional alias files given by the `\-alias aliasfile' switch will be
45 read. Each \fIalias\fR is processed as described in \fImh\-alias\fR\0(5).
47 ^$HOME/\&.mh\(ruprofile~^The user profile
48 ^/etc/passwd~^List of users
49 ^/etc/group~^List of groups
51 ^Path:~^To determine the user's nmh directory
53 ^Aliasfile:~^For a default alias file
57 `\-alias %etcdir%/MailAliases'
67 The `\-user' option with `\-nonormalize' is not entirely accurate, as it
68 does not replace local nicknames for hosts with their official site names.