prev(1mh)
Name
prev − show the previous message
Syntax
prev [+foldername] [−header] [−noheader] [−showproc program] [−noshowproc] [−switches for showproc] [−help]
Description
The command prev displays the previous message in the current folder. You can specify a folder other than the current folder by typing the +foldername argument after the command. The command in the following example will display the previous message in the folder +copylog. If you specify a folder, that folder will become the current folder.
$ prev +copylog
The prev command performs a show on the previous message in the specified folder. Like show, it passes any switches on to the program named by showproc, which is called to list the message (see show().)). When a message has been displayed by prev, it becomes the current message.
The prev command is really a link to the show program. As a result, if you make a link to prev and that link is not called prev, your link will act like show instead. To avoid this, add a profile-entry for the link to your MH profile and add the argument prev to the entry.
Files
| $HOME/.mh_profile | The user profile |
Profile Components
| Path: | To determine your MH directory |
| Current-Folder: | To find the default current folder |
| showproc: | Program to show the message |