MPE/iX Shell and Utilities Reference Manual, Vol 1

mailx(1) MPE/iX Shell and Utilities mailx(1)
mail software uses the option to prevent infinite loops (the same message cycling
through a sequence of machines without ever getting to its intended destination).
–r address
passes the given address to network mail software. If this option is present, it dis-
ables all input mode commands.
–s subject
uses the given subject string in the Subject heading line of the message. If the
subject contains spaces or
TAB characters, the string should be enclosed in double
quotes ("") or apostrophes (’’). If you specify this option on the command line,
mailx does not prompt you to enter a Subject line when you type in the text of
the message.
–U converts the address from UUCP style to internet standards. This overrides the effect
of the
conv
environment variable. See the ENVIRONMENT VARIABLES section for
more information.
mailx accepts the following options when you are sending or reading messages:
–i ignores interrupts (for example, pressing
BREAK or CTRL-C). Also see the description
of the
ignore
environment variable in the section on ENVIRONMENT VARIABLES.
–n does not initialize your mailx session from the system’s /etc/mailx.rc file.
For more information about this file, see the Start-Up Files section.
General Overview
This section describes the default behavior of mailx. You can use mailx in many ways,
and these are discussed later; however, you must first understand mailxs normal pattern of
behavior.
The simplest command to send a message is
mailx address address address ...
where each address names someone who is to receive the message. The simplest kind of
address is the login name of someone else who uses your machine. You can also use network
addresses here, but mailx itself cannot send messages over a network; it requires some sort
of network server.
MPE/iX Shell and Utilities does not include server software.
You can also send messages as input to commands. To do this, use an address that consists of
an or-bar (|) followed by a command line that invokes the appropriate command. Enclose
this whole address in apostrophes. For example,
mail robin ’|cat >save’
mails a message to robin and also copies the message into a file called save.
Commands and Utilities 1-305