Creating a letters mailbox directory to store messages in folders

Messages can be saved in a mailbox directory folder using the set folder subcommand.

Use the following procedure to store messages in folders:

  1. To check if the set folder option has been enabled in the .mailrc file, enter the following subcommand at the mailbox prompt:
    set

    The set subcommand displays a list of the enabled mail options in your .mailrc file.

    If the set folder option has been enabled, the system responds with a message similar to the following:
    folder /home/george/letters

    In this example, letters is the directory in which mail folders will be stored.

  2. If the set folder option has not been enabled, add a line similar to the following in the .mailrc file:
    set folder=/home/george/letters

    In this example, /home/george is George's home directory and letters is the directory in which mail folders will be stored. The set folder option enables you to use the plus sign (+) shorthand notation at your mailbox prompt to save messages in your letters directory.

  3. You must create a letters directory in your home directory. In your home directory at the system command line prompt, type:
    mkdir letters