well Sharad, mailx Syntax Examples Related commands Unix main page. About mailx. Mail interactive message processing system.
Purpose: Sends and receives mail.
Syntax:To Read Incoming Mail
mail -e
mail -f [ -dlHNn ] [ -F ] [ FileName ]
mail [ -dlHNn ] [ -F ] [ -u UserID ]
To Send Mail
mail [ -s Subject ] [ -c Address(es) ] [ -dinNv ] Address
Description
The mail command invokes the mail utility, enabling you to:
* Read incoming mail.
* Send mail.
In addition, you can use the available options and subcommands to customize the way you send and receive mail.
The mail command operates on two types of mailboxes, the system mailbox and the personal mailbox.
Incoming mail is stored in the system mailbox. By default, a user's system mailbox is a file located in the /var/spool/mail directory. The mailbox file is named after the userID. For example, if your user ID is jeanne, then your system mailbox is /var/spool/mail/jeanne.
By default, when a user has read, deleted, or saved all the mail in their system mailbox, the mailbox is deleted. To prevent the mailbox from being deleted, use the set subcommand to set the keep option.
In addition to the system mailbox, there is the user's personal mailbox. As messages are read, if they are not deleted or saved to a file, they will be marked to be moved to the personal mailbox. The personal mailbox, by default, is $HOME/mbox. For example, if your home directory is /home/lance, then /home/lance/mbox is your personal mailbox. The messages remain in your personal mailbox until you move them to a folder or delete them.
Folders provide a way to save messages in an organized fashion. You can create as many folders as you need. Name each folder with a name that pertains to the subject matter of the messages it contains.
Note:
Results can be unpredictable when running multiple instances of the mail command on one mailbox.
For more information , please do visit source site:
http://publib.boulder.i bm.com/infocenter/pseries/v5r3 /index.jsp?topic=/com.ibm.aix. cmds/doc/aixcmds3/mail.htm
Hope it will help you out.
Answered by
Uttam
, an ibibo Master,
at
8:42 PM on May 21, 2008