Combining the delete and print commands

Use the autoprint option to combine the delete and print subcommands.

After you read a message, you can delete it with the d subcommand. You can display the next message with the p subcommand. Combine these subcommands by typing the following line in your .mailrc file:
set autoprint

With the set autoprint option in the .mailrc file, the d subcommand deletes the current message and displays the next.