SESSION 13		ELECTRONIC MAIL (***this file redundant!!!***)


1. Electronic mail allows you to compose and send messages to other users on
your UNIX system and possibly to users on other systems (worldwide even). 
Mail received by you is stored in the directory /usr/spool/mail and in a
file with the same name as your user id. You should be able to receive mail 
(and send) on the DECathena workstations, the solbourne and serdlm40 (pcunix). 



2. To send mail:

To send mail to other users on your system you must first know their login-ids.
You may also send mail messages to yourself (as a reminder, say). 

To send a message to `barrhc', type

			mail barrhc

The response will be (omitted on some systems)

			Subject:

You may enter some text here or merely press return. The cursor will move to 
next line and wait for you to enter your message. You are in SEND MODE. Type
your message.

To send your message, press return so that the cursor appears on a line by 
itself, then press

			ctrl d

The message will be sent and you will be returned to the shell prompt.

To send a file `filename', you may redirect your input to mail by typing

			mail  barrhc  < filename

To INCLUDE a file `filename' within a mail message, type

			~r  filename

within the message on a line by itself.

When submitting your homeworks use one of the two methods above.


3. Receiving mail:

The UNIX system will notify you if you have received mail with a message 
something like

			you have new mail

To read your mailbox, type

			mail

and you will see a list of one-line `headers' which look something like

		>	N   5   barrhc	Sept 11 1515	8/128	try

where
	>		indicates the current message
	N		message status (N for `new', U for `unread', 
                                        otherwise blank)
	5		message number
	barrhc		sender's login_id (or email address)
	Sept 11 1515	date and time sent
	8/128		number of lines/characters
	try		subject

To view a particular message, type the message number and return. The message
will be displayed. 

Type

			q

to quit mail and return to the shell prompt.


4. Mail commands:

	d		        deletes current message
	return		        display next message
	p 		        display the current message again
	q		        quit the mail command
	h		        redisplays message headers
	s [number] [filename]	save the message [number] to the named file
	?		        display a list of all the mail commands



5. Exercises:

a) Try sending messages to yourself and to one of your fellow classmates.
b) Read these messages
c) Save one message in a file
d) Delete the other file


WARNING: the email system should not be abused. Remember `big brother'
can monitor your activities!!


END OF SESSION 13					file: mail13
