[0m


BINMAIL(1)	    UNIX Programmer's Manual	       BINMAIL(1)



[1mNAME
     [0mbinmail - send or receive mail among users

[1mSYNOPSIS
     /usr/bin/mail [0mperson ...
     [1m/usr/bin/mail [0m[ [1m-e [0m] [ [1m-r|-b [0m] [ [1m-p [0m] [ [1m-q [0m] [ [1m-f [0mfile ]

[1mDESCRIPTION
     [0mNote: This is the old version 7 UNIX system mail program,
     with modifications to provide X/Open conformance.	The
     default _m_a_i_l command is described in _M_a_i_l(1), and its binary
     is in the directory /_u_s_r/_u_c_b.

     _m_a_i_l with no argument prints a user's mail, message-by-
     message, in last-in, first-out order; the optional argument
     [1m-r [0m(or [1m-b[0m) displays the mail messages in first-in, first-out
     order.  For each message, it reads a line from the standard
     input to direct disposition of the message.

     newline
	  Go on to next message.

     d	  Delete message and go on to the next.

     p	  Print message again.

     -	  Go back to previous message.

     s [ _f_i_l_e ] ...
	  Save the message in the named _f_i_l_e_s (`mbox' default).

     w [ _f_i_l_e ] ...
	  Save the message, without a header, in the named _f_i_l_e_s
	  (`mbox' default). Note that in version 7 systems, there
	  is only one line of header; thus only the first line is
	  stripped.

     m [ _p_e_r_s_o_n ] ...
	  Mail the message to the named _p_e_r_s_o_n_s (yourself is
	  default).

     EOT (control-D)
	  Put unexamined mail back in the mailbox and stop.

     q	  Same as EOT.

     !_c_o_m_m_a_n_d
	  Escape to the Shell to do _c_o_m_m_a_n_d.

     ?	  Print a command summary.





Printed 31/1/92     Revision 1.5 of 09/10/90			1






BINMAIL(1)	    UNIX Programmer's Manual	       BINMAIL(1)



     The flag [1m-e [0mcauses _m_a_i_l to just check for the presence of
     mail; if there is mail, it returns an exit status of zero,
     if not then it returns 1.	When this option is used, _m_a_i_l
     always exits immediately and does not alter the contents of
     the mailbox.

     The optional argument [1m-p [0mcauses _m_a_i_l to just print the mes-
     sages with no user interaction.

     After an interrupt, _m_a_i_l normally continues.  The optional
     argument [1m-q [0mcauses _m_a_i_l to terminate leaving the mail file
     unchanged.

     When _p_e_r_s_o_n_s are named, _m_a_i_l takes the standard input up to
     an end-of-file (or a line with just `.') and adds it to each
     _p_e_r_s_o_n'_s `mail' file.  The message is preceded by the
     sender's name and a postmark.  Lines that look like post-
     marks are prepended with `>'.  A _p_e_r_s_o_n is usually a user
     name recognized by _l_o_g_i_n(1).  To denote a recipient on a
     remote system, prefix _p_e_r_s_o_n by the system name and exclama-
     tion mark (see _u_u_c_p(1C)).

     The [1m-f [0moption causes the named file, for example, `mbox', to
     be printed as if it were the mail file.

     When a user logs in he is informed of the presence of mail.

[1mFILES
     [0m/etc/passwd	    to identify sender and locate persons
     /var/spool/mail/*	    incoming mail for user *
     mbox		    saved mail
     /var/tmp/ma*	    temp file
     /var/spool/mail/*.lock lock for mail directory
     dead.letter	    unmailable text

[1mSEE ALSO
     [0mMail(1), write(1), uucp(1C), uux(1C), sendmail(8)

[1mBUGS
     [0mRace conditions sometimes result in a failure to remove a
     lock file.














Printed 31/1/92     Revision 1.5 of 09/10/90			2



[0m