To read messages that are saved in a file, use the command form:
mailx -f filename |
In the previous example, you would read the file ~/memos/finance by typing:
$ mailx -f ~/memos/finance |
You can read messages that are saved in a folder with a similar command—just use the + instead of a path name. For example, to read the messages in the folder projects, you would type:
$ mailx -f +projects |
This command starts mailx in the file or folder that you have designated. Only headers for the messages in the file or folder are displayed. Select a message to read by typing its number at the mailx prompt, and then press Return.
You can also work on mail folders within the mailx program. To see a list of your folders, type this command at a mailx prompt:
& folders |
To switch from your mailbox to a folder, use the command form:
& folder +foldername |
To return to your mailbox, type this command at a mailx prompt:
& % |
To return to the previous folder, type:
& # |