mailx.1 (2010 09)
m
mailx(1) mailx(1)
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.
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 sub-
section). 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.
Type [msglist]
Print [msglist] Print the specified messages on the screen, including all header fields. Overrides
suppression of fields by the ignore command.
type [msglist]
print [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 but many users prefer more (see
the Environment Variables subsection).
unalias alias Discard the specified alias names.
undelete [msglist] Restore the specified deleted messages. Restores only messages that were deleted
in the current mail session. If autoprint is set, the last message of those
restored is printed (see the Environment Variables subsection ).
unset name... Cause the specified variables to be erased. If the variable was a shell variable
imported from the execution environment, it cannot be erased.
version Prints the current version and release date.
visual [msglist] Edit the given messages with a screen editor. The messages are placed in a tem-
porary file and the VISUAL variable is used to get the name of the editor (see the
Environment Variables subsection).
write [msglist] filename
Write the given messages on the specified file, except for the header (the "From ..."
line) and trailing blank line. Otherwise equivalent to the save command.
xit
exit Exit from mailx, without changing the mailbox . No messages are saved in the
mbox (see also quit).
z[+-] Scroll the header display forward or backward one screen-full. The number of
headers displayed is set by the screen variable (see the Environment Variables
subsection).
TILDE ESCAPES
The following commands can be used only when in input mode, by beginning a line with the tilde escape
character (
˜). See escape (in the Environment Variables subsection) for changing this special charac-
ter.
˜!command Escape to the shell.
˜. Simulate end of file (terminate message input).
˜:mail-command
˜_ mail-command Perform the command-level request. Valid only when sending a message while
reading mail.
˜? Print a summary of tilde escapes.
HP-UX 11i Version 3: September 2010 − 7 − Hewlett-Packard Company 7