Creating default folders to store messages

Default folders allow you to store messages.

The mail program must be installed on your system.

Use the following procedure to create a letters mailbox directory to store messages in folders:

  1. To check if the set folder option has been enabled in the .mailrc file, at the mailbox prompt, type:
    set
    If the set folder option has been enabled, the system responds with 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, make a set folder entry 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 will allow you to use the plus sign (+) shorthand notation to save messages in your letters directory.

  3. If a letters directory does not exist, you must create a letters directory in your home directory. From your home directory, at your system command line, type:
    mkdir letters

Use the following procedure to keep a record of messages you send to others:

  1. Type the following statement in your .mailrc file:
    set record=letters/mailout
  2. If a letters directory does not exist, you must create a letters directory in your home directory. From your home directory, at your system command line, type:
    mkdir letters
  3. To read copies of the messages you have sent to others, type:
    mail -f +mailout

    In this example, the file mailout contains copies of the messages you have sent to others.