m

mailx(1)

 

 

mailx(1)

quiet

Refrain from printing the opening message and version when entering mailx.

 

Default is noquiet.

 

record=filename

Record all outgoing mail in ®lename. Disabled by default. See also outfolder

 

above.

 

 

save

Enable saving of messages in dead.letter on interrupt or delivery error. See

 

DEAD for a description of this ®le. 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 ®nish 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 ®le 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 ®le.

 

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) com-

 

mand is given. No default (see also Äi under ILDE ESCAPES).

Sign=string

The variable inserted into the text of a message when the

ÄA command is given. No

 

default (see also Äi (TILDE ESCAPES)).

 

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)).

EXTERNAL INFLUENCES

Environment Variables

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 ®le. Default is $HOME/.mailrc.

LC_COLLATE

LC_CTYPE LC_COLLATE and LC_CTYPE in¯uence mailx when the command interpreter (see SHELL below) is invoked. To determine the behavior of LC_COLLATE and LC_CTYPE, see the corresponding shell manual entry for the applicable command interpreter

LC_TIME

LC_TIME determines the format and contents of the date and time strings displayed.

 

If LC_TIME is not speci®ed in the environment, or is set to the empty string, the

 

value of LANG is used as a default. If LANG is not speci®ed or is set to the empty

 

string, a default of "C" (see lang(5)) is used instead of LANG. If any internationaliza-

 

tion 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 speci®es a directory to be used for tem-

 

porary ®les, overriding the default directory /tmp.

International Code Set Support

Single- and multi-byte character code sets are supported within mail text. Headers are restricted to characters from the 7-bit USASCII character code set (see ascii(5)).

Section 1506

− 9 −

HP-UX Release 11i: December 2000