Solaris Advanced User's Guide

Inserting a Copy of a Message or File

You can insert a copy of any message in your mailbox into the message you're writing. Likewise, you can insert a copy of any text file.

Inserting a Message

Use the following command form to insert a message.


~m number

In this example, number is the number of the message to be inserted. For example, to send to another user a message that includes a copy of message number 3 from your mailbox list, complete the following steps.

  1. On a new line, type the command ~m 3, and then press Return.

    mailx displays the following message.


    Interpolating: 3 (continue)
    

  2. You do not see the text of message 3, but the recipient will. You can continue to compose your message after (continue), or you can send it as is.

  3. To see the complete message, interpolation included, type the command ~p.

Inserting a File

You can also insert a copy of any text file into a message. As you are writing a message, use the following command form.


~r filename

For example, to insert the file outline in the current message, type the following command.


& ~r outline