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

m
mailx(1) mailx(1)
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 command is
not specified, the command specified by the current value of the
cmd variable 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 Environment
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.
source filename Read commands from the given file and return to command mode.
top[msglist] Print the top few lines of the specified messages. If the toplines variable is set, it
is interpreted as the number of lines to print (see the Environment Variables subsec-
tion). The default is 5.
touch [msglist] Touch the specified messages. If any message in msglist is not specifically saved in a
file, it is placed in the mbox upon normal termination. See exit and quit.
HP-UX 11i Version 2: December 2007 Update 5 Hewlett-Packard Company 633