Solaris Advanced User's Guide

Replying to a Message

Reply to mail at a mailx prompt by typing the following command.

r number

If you omit the message number, mailx replies to the current message.

For example, to reply to the sender of message 2, type the following command.


& r 2

mailx automatically addresses your message and supplies an Re: Subject: line that echoes the original Subject: line. Send your reply as you would with any other message.

R is a variant of the reply command that sends your reply to all recipients of the original message as well as to its sender. Use this command only when absolutely necessary, to avoid generating “junk mail.”


Note –

You can insert a message into your reply as shown in the previous section. To insert a copy of the message to which you are replying, type the command ~m without a message number.