The advantages to saving or copying letters to folders is that your letters are automatically kept together in the same directory, where they are easily accessible without typing long pathnames.
To use folders, you must first set up a folder directory. This is a two-step process:
First, make the directory using the mkdir command.
For example, if you wanted your folder directory to be called Letters, you would first make the directory:
$ mkdir Letters
Here you need to edit the
variable to include the full path name of your newly created folder directory.
or, using the C shell shortcut ~ to specify your home directory.
You use the same commands to save or copy letters into folders as into files, except that the folder name is preceded by a plus sign (+) instead of a path name. The + tells mailx that the folder is to be kept in the folder directory (Letters).
For example, to save letter 3 to a folder called projects, type:
& s 3 +projects
mailx interprets this command as meaning "save letter 3 into ~/Letters/projects." (If the folder doesn't already exist, mailx will create it.)
Copy the letter into a folder by typing:
You can send copies of your letters directly to one of your files or folders. To send a copy to a folder, simply type the folder name in either the Cc: or the Bcc: field. Sending a copy to a file is similar, but you must include the full path name.