Solaris Advanced User's Guide

Quitting mailx

When you have finished your work in mailx, you can quit the program by using one of two commands: q (quit) or x (exit).

If you type q at the mailx prompt and then press Return, you see a message similar to the following:


Saved one message in home_directory/mbox.

In this message, home_directory is the path name to your home directory.

When you use q to quit mailx after reading messages, mailx moves the messages from your mailbox and saves them in the mbox file in your home directory. mailx also saves any changes or deletions you've made.

If you type x at the mailx prompt and then press Return, the mailx program does not save any changes or deletions, nor does it move any messages you've already read into the mbox file.