HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)
m
mailx(1) mailx(1)
mbox [msglist] Arrange for the given messages to end up in the standard mbox save file when
mailx terminates normally. See MBOX description 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 author’s 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. The file is created if it does not exist.
The message is deleted from the mailbox when mailx terminates unless keep-
save is set (see the Environment Variables subsection and the exit and quit com-
mands).
set
set name
set name=string
set name=number Define a variable called name. The variable can be given a null, string, or numeric
value. Set by itself prints all defined variables and their values (see the Environ-
ment Variables subsection for detailed descriptions of the mailx variables).
shell Invoke an interactive shell (see SHELL in the Environment Variables subsection).
size [msglist] Print the size in characters of the specified messages.
Section 1−−512 Hewlett-Packard Company − 5 − HP-UX 11i Version 2: August 2003