mailx.1 (2010 09)

m
mailx(1) mailx(1)
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
included when the message is saved. The
P
rint and Type commands override this
command.
list Prints all commands available. No explanation is given.
mail name ... Mail a message to the specified users.
mbox [msglist] Arrange for the given messages to end up in the standard mbox save file when
mailx terminates normally. See MBOX in the Environment Variables subsection
for a description of this file. See also the
exit and quit commands.
next [message] Go to next message matching message .Amsglist can be specified, but in this case
the first valid message in the list is the only one used. This is useful for jumping to
the next message from a specific user since the name would be interpreted as a com-
mand in the absence of a real command. See the discussion of msglist s above for a
description of possible message specifications.
pipe [msglist][command]
| [msglist][command]
Pipe messages in msglist through the specified command. Each message is treated
as if it were read. If msglist is not specified, the current message is used. If com-
mand is not specified, the command specified by the current value of the
cmd vari-
able is used. If msglist is specified, command must also be specified. If the
page
variable is set, a form feed character is inserted after each message (see the
Environment Variables subsection).
preserve [msglist]
hold [msglist] Preserve the specified messages in the mailbox .
Print [msglist]
Type [msglist] Print the specified messages on the screen, including all header fields. Overrides
suppression of fields by the ignore command.
print [msglist]
type [msglist] Print the specified messages. If
crt is set, messages longer than the number of
lines specified by the
crt variable are paged through the command specified by
the PAGER variable. The default command is pg (see pg(1)), but many users
prefer more (see more(1); see the Environment Variables subsection).
quit Exit from mailx, storing messages that were read in mbox and unread messages in
the user’s system mailbox. Messages that have been explicitly saved in a file are
deleted.
Reply [msglist]
Respond [msglist] Send a response to the author of each message in the msglist . The subject line is
taken from the first message. If record is set to a file name, the response is saved
at the end of that file (see the Environment Variables subsection).
reply [message]
respond [message] Reply to the specified message, including all other recipients of the message. If
record is set to a file name, the response is saved at the end of that file (see the
Environment Variables subsection).
Save [msglist] Save the specified messages in a file whose name is derived from the author of the
first message. The name of the file is based on the authors name with all network
addressing stripped off. See also the Copy, followup, and Followup commands and
outfolder (see the Environment Variables subsection).
save [filename]
save [msglist] filename
Save the specified messages in the given file, filename . The file is created if it does
not exist. The message is deleted from the mailbox when mailx terminates unless
keepsave is set (see the Environment Variables subsection and the exit and quit
commands).
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5