Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ali(1mh) [ultrix man page]

ali(1mh)																  ali(1mh)

Name
       ali - list mail aliases

Syntax
       ali [ -alias aliasfile ] [ -help ] [ -[no]list ] [ -[no]normalize ] [ -user useraddr ] [ -nouser ] [ aliases ...  ]

Description
       The  command  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
       -alias aliasfile
		 Specifies the alias file to be consulted by You can specify more than one alias file, but each  aliasfile  must  be  preceded	by
		 -alias.  In addition to any alias files that you specify, consults the system alias file

		 You  can  set up an entry in your so that automatically consults an alias file.  To do this, add the Aliasfile entry to your pro-
		 file.	See for more information.

       -help	 Prints a list of the valid options to this command.

       -list
       -nolist	 Prints the addresses on separate lines.  If you do not specify the -list option,  the	addresses  are	separated  by  commas  and
		 printed on as few lines as possible.

       -normalize
       -nonormalize
		 Instructs  to try to track down the official hostname of the address.	This can be suppressed by using -nonormalize.  The default
		 is -nonormalize.

       -user useraddr
       -nouser	 Displays all the aliases that contain a specific name.  Instead of listing the addresses that each given alias expands to,  lists
		 the  aliases that expand to include each given address.  You must specify the complete user name that you have used in your alias
		 file.

       The defaults for this command are:

	      -alias /usr/lib/mh/MailAliases
	      -nolist
	      -nonormalize
	      -nouser

Examples
       The following example shows how the -user option can be used to list all the aliases containing the address Parker@Venus:
       % ali -user Parker@Venus
       Parker@Venus: Group, Reviewers, Badminton

Profile Components
       Path:	    Location of your Mail directory.
       Aliasfile:   Location of your personal alias file.

Files
       The user profile.

       The system alias file.

       The system password file.

       The system group file.

See Also
       mh-alias(5mh)

																	  ali(1mh)

Check Out this Related Man Page

ALI(1)                                                               [nmh-1.5]                                                              ALI(1)

NAME
ali - list mail aliases SYNOPSIS
ali [-alias aliasfile] [-list | -nolist] [-normalize | -nonormalize] [-user | -nouser] [-version] [-help] [aliases ...] DESCRIPTION
Ali searches the named mail alias files for each of the given aliases. It creates a list of addresses for those aliases, and writes that list on standard output. If no arguments are given, ali outputs all alias entries. By default, when an aliases expands to multiple addresses, the addresses are separated by commas and printed on as few lines as possible. If the -list option is specified, then when an address expands to multiple addresses, each address will appear on a separate line. The switch -user directs ali to perform its processing in an inverted fashion: instead of listing the addresses that each given alias expands to, ali will list the aliases that expand to each given address. If the -normalize switch is given, ali will try to track down the official hostname of the address. The files specified by the profile entry "Aliasfile" and any additional alias files given by the -alias aliasfile switch will be read. Each alias is processed as described in mh-alias(5). FILES
$HOME/.mh_profile The user profile /etc/passwd List of users /etc/group List of groups PROFILE COMPONENTS
Path: To determine the user's nmh directory Aliasfile: For a default alias file SEE ALSO
mh-alias(5) DEFAULTS
`aliasfiles' defaults to /etc/nmh/MailAliases `-nolist' `-nonormalize' `-nouser' CONTEXT
None BUGS
The -user option with -nonormalize is not entirely accurate, as it does not replace local nicknames for hosts with their official site names. MH.6.8 11 June 2012 ALI(1)
Man Page