mailx.1 (2010 09)

m
mailx(1) mailx(1)
MAIL The name of the initial mailbox file to be read. By default, the mailbox is set to
/var/mail/username
. This environment variable overrides the default setting
and causes
mailx to open the mailbox specified by the environment variable.
MAILRC The name of the mailer start-up file. Default is
$HOME/.mailrc.
LC_COLLATE
LC_CTYPE LC_COLLATE and LC_CTYPE influence
mailx when the command interpreter
(see the
SHELL environment variable) is invoked. To determine the behavior of
LC_COLLATE and LC_CTYPE, see the corresponding shell manpage for the appli-
cable command interpreter.
LC_TIME LC_TIME determines the format and contents of the date and time strings
displayed. If LC_TIME is not specified in the environment, or is set to the empty
string, the value of LANG is used as a default. If
LANG is not specified or is set to
the empty string, a default of "C" (see lang(5)) is used instead of
LANG. If any
internationalization variable contains an invalid setting,
mailx behaves as if all
internationalization variables are set to "C". See environ(5).
TMPDIR When set, the TMPDIR environment variable specifies a directory to be used for
temporary files, overriding the default directory /tmp
.
International Code Set Support
Single- and multibyte character code sets are supported within mail text. Headers are restricted to char-
acters from the 7-bit USASCII character code set (see ascii (5)).
WARNINGS
Where command is shown as valid, arguments are not always allowed. Experimentation is recom-
mended.
Internal variables imported from the execution environment cannot be
unset.
The full internet addressing is not fully supported by
mailx. The new internationalization standards
need some time to settle down.
mail, the standard mail delivery program, treats a line consisting solely of a dot (.
) as the end of the
message.
Using two separate mail programs to access the same mail file simultaneously (usually inadvertently
from two separate windows) can cause unpredictable results.
Arguments containing multiple words must be enclosed in quotes. Otherwise they may be interpreted
incorrectly.
FILES
/var/mail/ Post office directory (mode 775, group ID mail)
/var/mail/user System mailbox for user (mode 660, owned by user , group ID mail)
$HOME/.mailrc Personal start-up file
/usr/share/lib/mailx.rc Global start-up file
$HOME/mbox Secondary storage file
/tmp/R[emqsx]* Temporary files
SEE ALSO
chsh(1), echo(1), ed(1), lp(1), ls(1), mail(1), more(1), pg(1), sh(1), vi(1), passwd(4), shells(4), ascii(5),
environ(5), lang(5).
STANDARDS CONFORMANCE
mailx: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
For more information about
mailx, also refer to the mailx section in the UNIX 95 standard document
specification.
HP-UX 11i Version 3: September 2010 11 Hewlett-Packard Company 11