MPE/iX Shell and Utilities Reference Manual, Vol 1

mailx(1) MPE/iX Shell and Utilities mailx(1)
The following variables always come from the external environment; these can be changed
inside a mailx session, except where marked.
HOME
gives the name of your home directory. This cannot be changed inside mailx.
LOGNAME
gives your login name.
MAILDIR
gives the name of the directory where system mailboxes are stored. If this is not set,
the default is /usr/mail. The actual name of a user’s system mailbox is derived in
a system-dependent way by combining
MAILDIR
and the user’s login name. For
mailx to work properly, the
MAILDIR
directory must exist.
MAILRC
gives the name of your start-up file. This cannot be changed inside mailx.By
default,
MAILRC
has the value $HOME/.mailrc . For more on start-up files, see
the Start-Up Files section.
The
HOME
and
LOGNAME
variables must be set before you enter mailx; otherwise, mailx
does not work properly. These variables are set automatically for you if you login using the
login(1) facilities. If you do not login, you must set the variables in some other way, using
the commands:
export LOGNAME=name
export HOME=directory
The remaining variables may be set in the external environment or in the course of a mailx
session. The value of a variable may be set or changed with the set command; a variable may
be discarded with the unset command. You will find it convenient to create a start-up file that
sets these variables according to your preferences; this eliminates the need to set variables by
hand every time you enter mailx.
Many of the following variables represent on/off options. If you set the variable itself (to any
value), the option is turned on. To turn the option off, you may unset the variable, or set a
variable consisting of no followed by the name of the original variable. For example, setting
autoprint
turns the autoprint option on, and setting
noautoprint
turns it off.
allnet
assumes that network addresses with the same login component refer to the same per-
son. Network addresses typically consist of several components, giving information
that lets a mail server identify a machine on the network, a route to that machine, and
the login name of a user on that machine. mailx assumes that the login name is the
last component.
1-320 Commands and Utilities