e

elmalias(1)

elmalias(1)

NAME

elmalias - display and verify elm user and system aliases

SYNOPSIS

elmalias [-dersu][-a-f format-n-v-V][alias-name-list]

Remarks

The former functionality of the elmalias command has been taken over by the newalias command (see newalias(1)).

DESCRIPTION

The elmalias command displays and veri®es user and system elm aliases.

The system database must have been created by the newalias command (see newalias(1)). The user database must have been created by either the newalias command or the elm mail system (see elm(1)). If the same alias is in both databases, the user version is used. Missing database ®les are silently ignored.

Each database entry can have the following ®elds, which are described in detail in newalias(1):

alias-list

A list of one or more aliases for the entry.

address-listA list of one or more addresses for the entry. An address can be an alias from another entry's alias-list.

comment An optional ®eld containing information about the entry. This ®eld is not included in outbound mail.

firstname An optional ®eld interpreted as the ®rst name of the person or group. It is used in fullname.

lastname An optional ®eld interpreted as the last name of the person or group. It is used in fullname.

fullname A combination value made up from the ®rstname and lastname ®elds, in the form: ®rstname lastname.

elmalias recognizes three types of alias names:

person A database entry that has one address in address-list. elmalias assumes this address is a valid mailing address.

group A database entry that has two or more addresses in address-list. elmalias assumes initially that these addresses are aliases to person or group entries.

unknown An address in a group entry or an alias in alias-name-listthat is not an alias in the database. In both cases, the item is reported as both the alias name and its address.

With no options or operands, elmalias displays the address-list®eld for each alias in the two databases. If an entry has more than one alias, the address-list®eld is displayed multiple times.

With an alias-name-listand no options, elmalias displays the address-list®eld of each alias name in the list. If an alias name is not found in the databases, it is treated as unknown, without comment.

Options

elmalias recognizes the following options:

-a

Change the display to alias name followed by address-list®eld.

-d

Turn debugging on.

 

-e

Fully expand group aliases. This option can be used only when an alias-name-listis

 

given.

 

 

If an address in a group address list is an alias name, it is replaced by that alias

 

entry. The process is recursive until the results are either person or unknown

 

types. If a group address is not an alias name, it is reported as both the alias name

 

and the address, with type unknown. Duplicate alias names are reported only once.

 

person entries are not expanded, even if their addresses are actually aliases.

-fformat

Display the format string for each alias name in the ®le or in the alias-name-list. The

 

following character pairs are replaced in the format by the corresponding value for

 

each alias.

 

Section 1234

− 1 −

HP-UX Release 11i: December 2000