This is a extended mail system designed to replace the standard /bin/mail
and /bin/rmail.  It is functionly the same as the Berkley 'Mail' or the
AT&T 'mailx'.

The program is set-group-id to 'mail' but is NOT set-user-id to 'root'.
Therefore, the '/usr/mail' directory must have write permission to the group.
Likewise, the individual spool files must have 660 permission with 'mail' as
the group.  If you replace /bin/mail, remember to link this to rmail.

This code is 80% from the net, and 20% from me.  The original code was
posted to net.sources on Nov 27, 1985 by xtest@pyuxii.UUCP

I have 'Berkleyized' it quite a bit:

	1) it now has 'Cc' (carbon copy)
	2) the printing of the index is assumed
	3) the default file with the -f option is $HOME/mbox.
	4) the escape character while writing mail is '~'
	5) added the ~r (read) command
	6) 'answer' feature looks a lot like 'reply' now.
	7) a number preceding a command will force the current letter
	   to become that number.

The the shell script 'boxes.sh' will create the appropriate mail boxes
for all users in the /etc/passwd file.

Emmet P. Gray				US Army, HQ III Corps & Fort Hood
..!ihnp4!uiucuxc!fthood!egray		Attn: AFZF-DE-ENV
					DEH, Environmental & Natural Resources
					  Management Office
					Fort Hood, TX 76544-5057

Changes added since....



Added -s option on command line (see Doc file).
Added -u option.
Cleaned up aliasing.
Queues for remote transmit instead of trying right away.

11/30/89 (erc): made user@site work if pathalias file.
07/12/92 (erc): Changed 1.6 to require pathalias file if remote.
08/07/92 (erc): Bug fixes.

...by

Ed Carp
erc@apple.com
