z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Saving and deleting mail

z/OS UNIX System Services User's Guide
SA23-2279-00

If you exit mail without specifically deleting or saving your messages, the system saves those messages.

To save a message, use the s subcommand and give the name of the file you want to save the message in.

Example: To save the file named climail:
s climail

Result: If this is an existing file, the message is appended to it. If the file does not exist, it is created.

To delete a message, use the d subcommand and give the number of the message you want to delete:
? d 1
?
The mail program deletes message number 1 and returns another ? prompt.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014