MPE/iX Shell and Utilities Reference Manual, Vol 1
mailx(1) MPE/iX Shell and Utilities mailx(1)
d[elete][refs]
deletes the specified messages. If no refs are specified, the current message is
deleted. After a delete operation, the current message is set to the message after the
last message deleted. Deleted messages are not thrown away until you end your ses-
sion with the current mailbox (see quit, file). Until then, they can be undeleted (see
undelete).
di[scard][header ...]
does not display the given header fields when displaying a message. For example,
discard References
tells mailx not to display the References line at the beginning of any mail mes-
sage. These header lines are retained when the message is saved; they are just not
shown when the message is displayed. See also ignore and retain.
dp [refs]
deletes the specified messages, then displays the message after the last message
deleted. If there is no subsequent message, mailx displays its command prompt.
dt [refs]
is the same as the dp command.
ec[ho] string ...
echoes the given strings (like the echo(1) command).
e[dit][refs]
lets you edit the messages specified by refs. The messages are stored in a temporary
file and an editor is invoked to let you edit the file. The default editor is ed(1), but
you can change this using the
EDITOR
environment variable (see the ENVIRON-
MENT VARIABLES section).
ex[it] quits mailx without changing the system mailbox. Contrast this with quit.
fi[le][filename]
quits the current mailbox (as if a q[uit] command was executed), then reads in the
specified file as the new mailbox to examine. If no filename is specified, mailx dis-
plays the name and status of your current mailbox.
Several special strings can be used in place of filename:
% your system mailbox
%user the system mailbox for user
# the previous file
& your mbox
+file the named file in the folder directory
1-310 Commands and Utilities