Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
m
mailx(1) mailx(1)
in the absence of a real command. See the discussion of msglists above for a descrip-
tion 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 ENVIRONMENT VARIABLES).
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 ENVIRONMENT VARIABLES).
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 ENVIRONMENT VARIABLES
).
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
ENVIRONMENT VARIABLES).
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 ENVIRONMENT VARIABLES).
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 ENVIRONMENT VARIABLES and the exit and quit commands).
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 ENVIRONMENT
VARIABLES
for detailed descriptions of the mailx variables).
shell Invoke an interactive shell (see SHELL under ENVIRONMENT VARIABLES
).
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 ENVIRONMENT VARIABLES). 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]
Section 1502 5 HP-UX Release 11i: December 2000
___
___