mailx(1)

mailx(1)

xit

Exit from mailx, without changing the mailbox. No messages are saved in the mbox

 

(see also quit).

file [ filename ]

 

folder [ filename ]

Quit from the current ®le of messages and read in the speci®ed ®le. Several special

 

characters are recognized when used as ®le names, and substitutions are made as fol-

 

lows:

%the current mailbox.

%user the mailbox for user.

#the previous ®le.

&the current mbox. Default ®le is the current mailbox.

folders Print the names of the ®les in the directory set by the folder variable (see

ENVIRONMENT VARIABLES).

followup [ message ]

Followup [ msglist ]

from [ msglist ]

group alias name ...

alias alias name ...

headers [ message ]

help

Respond to a message and record the response in a ®le whose name is derived from the author of the message. Overrides the record variable, if set. See also the Fol- lowup, Save, and Copy commands and outfolder (see ENVIRONMENT VARIABLES ).

Respond to the ®rst message in the msglist, sending the message to the author of each message in the msglist. The subject line is extracted from the ®rst message and the response is recorded in a ®le whose name is derived from the author of the ®rst message. See also the followup, Save, and Copy commands and outfolder (see

ENVIRONMENT VARIABLES).

Print the header summary for the speci®ed messages.

Declare an alias for the given names. The names are substituted when alias is used as a recipient. Useful in the .mailrc ®le.

Prints the page of headers which includes the message speci®ed. The screen variable sets the number of headers per page (see ENVIRONMENT VARIABLES). See also the z command.

Prints a summary of commands.

m

hold [ msglist ]

preserve [ msglist ] Holds the speci®ed messages in the mailbox.

if sr

mail-commands

else

mail-commands

 

 

 

endif

Conditional execution, where s executes the accompanying mail-commands, up to an

 

else or endif if the program is in send mode, and

r causes the accompanying mail-

 

commands to be executed only in receive mode. Intended for use in .mailrc ®les.

ignore header-field ...

 

 

discard header-field ...

 

 

 

Suppresses printing of the speci®ed header ®elds when displaying messages on the

 

screen. Examples of header ®elds to ignore are

status and cc. All ®elds are

 

included when the message is saved. The Print and Type commands override this

 

command.

 

 

list

Prints all commands available. No explanation is given.

mail name ...

Mail a message to the speci®ed users.

 

mbox [ msglist ]

Arrange for the given messages to end up in the standard mbox save ®le when

 

mailx terminates

normally. See MBOX description under ENVIRONMENT VARI-

 

ABLES for a description of this ®le. See also the exit and quit commands.

next [ message ]

Go to next message matching message. A msglist can be speci®ed, but in this case the

 

®rst valid message in the list is the only one used. This is useful for jumping to the

 

next message from a speci®c user since the name would be interpreted as a command

HP-UX Release 11i: December 2000

− 4 −

Section 1501