ali(1mh)
Name
ali − list mail aliases
Syntax
ali [−alias aliasfile] [−list] [−nolist] [−normalize] [−nonormalize] [−user <useradr>] [−nouser] aliases ... [−help]
Description
The command ali searches the specified mail alias files for each of the given aliases. It creates a list of addresses for those aliases, and displays that list on the screen.
Options
You specify the alias files using the −alias aliasfile option. You can specify more than one alias file, but each aliasfile must be preceded by its own −alias flag. You must specify an aliasfile; either at the command line itself, or in your .mh_profile.
If you specify the −list option, each address appears on a separate line; otherwise, the addresses are separated by commas and printed on as few lines as possible.
You can make ali display all the aliases that contain a specific name by using the −user useraddress option The −user option directs ali to perform its processing in an inverted fashion: instead of listing the addresses that each given alias expands to, ali lists the aliases that expand to each given address. You must specify the complete username that you have used in your mh−alias file. The following example shows how this option can be used.
% ali −user Parker@Venus
Parker@Venus: Group, Reviewers, Badminton
If the −normalize option is given, ali tries to track down the official hostname of the address.
Each alias is processed as described in mh−alias(.).
The defaults for ali are:
−alias /usr/new/lib/mh/MailAliases
−nolist
−nonormalize
−nouser
Files
| $HOME/.mh_profile | The user profile |
| /etc/passwd | List of users |
| /etc/group | List of groups |