MPE/iX Shell and Utilities Reference Manual, Vol 1

mailx(1) MPE/iX Shell and Utilities mailx(1)
NAME
mailx — read electronic mail
SYNOPSIS
mailx [–efHiNn][–u user][filename]
mailx [–FinU][–h number][–r address][–s subject] user ...
DESCRIPTION
mailx helps you read and send electronic mail messages. It has no built-in facilities for
sending messages to other systems, but combined with other programs (a mail routing agent,
and a transport agent), it can send messages to other systems.
The command line
mailx [options] user user user ...
sends a mail message to the given users. If you do not specify any users on the command line,
mailx lets you read incoming mail interactively.
Options
mailx accepts the following options when you are reading messages:
–e checks to see if you have any messages waiting to be read. With this option, nothing
is displayed. If you have waiting messages, mailx exits with a successful status
return; otherwise, mailx exits with a failure return.
–f looks for messages in the file given by the optional filename on the command line
instead of in your system mailbox. If you do not specify filename, mailx reads mes-
sages from ˜/mbox.
–H displays only the header summary of a message.
–N does not display the header summary of messages.
–u user
looks for messages in the system mailbox of the specified user. This only works if
you have read permission on the user’s system mailbox.
mailx accepts the following options only when you are sending messages:
–F records your message in a file with the same name as the first user specified on the
command line. This option overrides the
record
variable, if it has been set. See
the ENVIRONMENT VARIABLES section for more on the
record
variable.
–h number
indicates how many hops a message has already made from one machine to another
(in a network of machines). This option is not intended for most users; some network
1-304 Commands and Utilities