Solaris Advanced User's Guide

Setting the Folder Directory

To use folders, you must first set up a folder directory. Follow these steps to set up a folder directory.

  1. Create a directory by using the mkdir command.

    For example, if you wanted your folder directory to be called Messages, you would first create the directory:

    $ mkdir Messages
  2. Edit the .mailrc file in your home directory (which contains mailx options) to set the folder directory path.

    Edit the folder variable to include the full path name of your newly created folder directory. For example:

    set folder=/home/austin/rose/Messages

    Or use the C shell shortcut ~ to specify your home directory.

    set folder=~/Messages

Now your folder directory is set to receive messages that are saved in folders. The change to the .mailrc file becomes effective the next time you start mailx.