MPE/iX Shell and Utilities Reference Manual, Vol 1

mailx(1) MPE/iX Shell and Utilities mailx(1)
VISUAL
contains a command, possibly with options, that mailx invokes when using the
command mode visual or the input mode ˜v. The default is the vi utility (see vi(1)).
FILES
mailx uses the following files:
/etc/mailx.rc
System-wide start-up file.
$MAILRC
Personal start-up file. By default,
MAILRC
has the value
$HOME
/.mailrc.
$HOME
/mbox
Default location to save read messages. You can choose a different file by assigning
the file name to the environment variable
MBOX
.
$MAILDIR
Directory containing system mailboxes. By default, this is /usr/mail. You must
create the
MAILDIR
directory if it does not already exist. For /usr/mail, you can
create the directory with the commands
mkdir /usr
mkdir /usr/mail
if the directory doesn’t already exist.
dead.letter
Default location to save partial letters.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion. Also returned if –e is specified and there is new or unread mail.
1 Returned if –e is specified and there is no new or unread mail. Also returned to indicate
failure because of any of the following:
— there is no mail to read
— inability to create temporary file name or temporary file
— receipt of user interrupt while composing message
— inability to determine the user’s identity
2 Failure due to any of the following:
— missing number after –h
— missing address after –r
— missing subject after –s
— missing user after –u
1-326 Commands and Utilities