HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

m
mailx(1) mailx(1)
included when the message is saved. The
Print and Type commands override this
command.
dp[msglist]
dt[msglist] Delete the specified messages from the mailbox and print the next message after the
last one deleted. Roughly equivalent to a d
elete command followed by a print com-
mand.
echo string ... Echo the given string or strings (similar to
echo see echo(1)).
edit [msglist] Edit the given messages. The messages are placed in a temporary file and the
EDI-
TOR
variable is used to get the name of the editor (see the Environment Variables
subsection). Default editor is ed (see ed(1)).
exit
xit Exit from mailx, without changing the mailbox. No messages are saved in the mbox
(see also
quit).
file [filename]
folder [filename] Quit from the current file of messages and read in the specified file. Several special
characters are recognized when used as file names, and substitutions are made as fol-
lows:
% the current mailbox.
%user the mailbox for user.
# the previous file.
& the current mbox.
Default file is the current mailbox.
folders Print the names of the files in the directory set by the
folder variable (see the
Environment Variables subsection).
followup [message] Respond to a message and record the response in a file whose name is derived from
the author of the message. Overrides the record variable, if set. See also the Fol-
lowup,
Save, and Copy commands and outfolder (see the Environment Variable
subsection).
Followup [msglist] Respond to the first message in the msglist, sending the message to the author of
each message in the msglist. The subject line is extracted from the first message and
the response is recorded in a file whose name is derived from the author of the first
message. See also the
followup, Save, and Copy commands and outfolder (see
the Environment Variables subsection).
from [msglist] Print the header summary for the specified messages.
group alias name...
alias alias name... Declare an alias for the given names. The names are substituted when alias is used
as a recipient. Useful in the
.mailrc file.
headers [message] Prints the page of headers which includes the message specified. The
screen vari-
able sets the number of headers per page (see the Environment Variables subsection).
See also the
z command.
help Prints a summary of commands.
hold [msglist]
preserve [msglist] Holds the specified messages in the mailbox.
if sr
mail-commands
else
mail-commands
endif Conditional execution, where s executes the accompanying mail-commands, up to an
else or endif if the program is in send mode, and r causes the accompanying mail-
commands to be executed only in receive mode. Intended for use in .mailrc files.
ignore header-field ...
discard header-field ...
Suppresses printing of the specified header fields when displaying messages on the
screen. Examples of header fields to ignore are status and cc. All fields are
628 Hewlett-Packard Company 4 HP-UX 11i Version 3: February 2007