MPE/iX Shell and Utilities Reference Manual, Vol 1

mailx(1) MPE/iX Shell and Utilities mailx(1)
i[f] code
mailx commands
[el[se]
mailx commands]
en[dif] is primarily intended for use in start-up files; see the Start-Up Files section for infor-
mation. The code must be the character r or s.Ifitisr, the first set of mailx com-
mands are executed if mailx is in receive mode, and the second set if mailx is in
send mode.Ifcode is s, the opposite is true. The else part is optional.
ig[nore][header ...]
is the same as the discard command.
l[ist] displays the names of all command mode commands.
m[ail] address ...
sends a message to the specified recipients. mailx goes into input mode to let you
enter the text of the message.
mb[ox][refs]
indicates that the given messages are to be saved in your mbox when mailx quits
normally (that is, through the quit command as opposed to exit).
n[ext][refs]
goes to the next message in the mailbox that appears in the list of refs. For example,
n user
goes to the next message from the specified user.
pi[pe][[refs] command]
pipes the messages given by refs through the specified shell command (run by the
command interpreter identified by
SHELL
) These messages are considered read. If
no refs are given, the current message is used. If no command is given, mailx uses
the command given by the
cmd
environment variable; see the ENVIRONMENT
VARIABLE section. If the
page
variable has a value, a formfeed is sent into the pipe
after every message. The command
|[refs][command]
is equivalent to pipe.
pre[serve][refs]
is the same as the hold command.
P[rint][refs]
displays the specified messages on the screen. If no refs are given, the current mes-
sage is displayed. All header fields are displayed; the discard and ignore commands
do not affect Print.
1-312 Commands and Utilities