HP-UX Reference (11i v2 04/09) - 1 User Commands A-M (vol 1)

m
mailx(1) mailx(1)
page Used with the pipe command to insert a form feed after each message sent through
the pipe. Default is nopage.
PAGER=command The command to use as a filter for paginating output. This can also be used to
specify the pager command-line options (for example, set PAGER="more -c"
).
Default is
pg, but many users prefer
more (see pg(1) and more(1)).
prompt=string Set the command-mode prompt to string . Default is
?.
quiet Refrain from printing the opening message and version when entering
mailx.
Default is
noquiet.
record=filename Record all outgoing mail in filename. Disabled by default. See also
outfolder
above.
replyto=address Specify address to which responses are to be sent.
save Enable saving of messages in dead.letter on interrupt or delivery error. See
DEAD for a description of this file. Enabled by default.
screen=number Set the number of lines in a screen-full of headers for the
headers command.
sendmail=command
Alternate command for delivering messages. Default is
mail (see mail(1)).
sendwait Wait for background mailer to finish before returning. Default is nosendwait.
SHELL=command The name of a preferred command interpreter. Default is the user’s login program
(see passwd(4), shells(4), and chsh(1)). Note: in the unusual case that a user’s login
program is a script file from which mailx is executed, rather than a shell, then
mailx requires that the user explicitly set SHELL=/usr/bin/sh
in his or her
$HOME/.mailrc file.
showto When displaying the header summary and the message is from you, print the
recipient’s name instead of the author’s name.
sign=string The variable that is inserted into the text of a message when the ˜a
(autograph)
command is given. No default (see also
˜i in the TILDE ESCAPES section).
Sign=string The variable inserted into the text of a message when the ˜A command is given.
No default (see also ˜i in the TILDE ESCAPES section).
SMARTMAILER When SMARTMAILER is set, various commands use the From: line instead of the
default From line.
toplines=number The number of lines of header to print with the top command. Default is 5.
VISUAL=command The name of a preferred screen editor. Default is vi (see vi(1)).
The following are environment variables taken from the execution environment and are not alterable
within
mailx.
HOME The user’s home directory. This is usually the current directory immediately after
login.
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.
HP-UX 11i Version 2: September 2004 − 9 − Hewlett-Packard Company Section 1−−561