BSD 2 development
[unix-history] / man / Mail.u
CommitLineData
a74e24c2
KS
1.TH MAIL UCB 2/24/79 UCB
2.SH NAME
3Mail \- interactive mail processing system
4.SH SYNOPSIS
5.B Mail
6[
7.B \-f
8[
9name
10]
11]
12[
13people ...
14]
15.SH DESCRIPTION
16.I Mail
17is a intelligent mail processing system, which has
18a command syntax reminiscent of
19.I ed
20with lines replaced by messages.
21In normal usage, it is given no arguments and checks your mail out of the
22post office, then
23printing out a one line header of each message there.
24The current message is initially the first message (numbered 1)
25and can be printed using the
26.B print
27command (which can be abbreviated \fBp\fR).
28You can move among the messages much as you move between lines in
29.I ed,
30with the commands `+' and `-' moving backwards and forwards, and
31simple numbers typing the addressed message.
32.PP
33After examining a message you can
34.B delete
35(\fBd\fR)
36the message or
37.B reply
38(\fBr\fR)
39to it.
40Deletion causes the
41.I Mail
42program to forget about the message.
43This is not irreversible, the message can be
44.B undeleted
45(\fBu\fR)
46by giving its number, or
47the
48.I Mail
49session can be aborted by giving the
50.B exit
51(\fBx\fR)
52command.
53Deleted messages will, however, usually disappear never to be seen again.
54.PP
55When you give the
56.B reply
57command,
58.I Mail
59sets up a response to the original message, sending it back to the
60person who it was from.
61Text you then type in, up to an end-of-file, defines the contents of
62the message.
63While you are composing a message,
64.I Mail
65treats lines beginning with the character `~' specially.
66The following `~' escapes are the most useful:
67.TP 5
68.B ~m
69Places a copy of the current message in the response message text,
70right shifting it by a tab stop.
71.TP 5
72.B ~s
73Sets a subject for the message. The subject follows the `~s' on
74the same line, and appears in the header for the message when received
75with
76.I Mail.
77If there was a subject in the mail being responded to, then this is the
78subject of the response unless you give a new one.
79.TP 5
80.B ~c
81Adds carbon copies, users who will receive the message also.
82By default, only the originator of the message receives a
83.B reply.
84.TP 5
85.B ~e
86Invokes an editor on the response composed so far.
87When editing terminates, message composition continues.
88.TP 5
89.B ~p
90Prints the message composed so far.
91.PP
92You can end a
93.I Mail
94session with the
95.B quit
96(\fBq\fR)
97command.
98Messages which have been examined go to your
99.I mbox
100file unless they have been deleted in which case they are discarded.
101Unexamined messages go back to the post office.
102.PP
103By giving `people' arguments to
104.I Mail
105on the command line, or by using the internal
106.B mail
107(\fBm\fR)
108command you can originate mail.
109The escapes available during
110.I reply
111commands are available here also.
112.PP
113The
114.B \-f
115option causes
116.I Mail
117to read in the contents of your
118.I mbox
119(or the specified file)
120for processing; when you
121.B quit
122.I Mail
123writes undeleted messages back to this file.
124.PP
125.I Mail
126has a number of other facilities as well as options which can be set
127in the file
128.I \&.mailrc
129in your home directory.
130See the `Mail Reference Manual' for details.
131.SH FILES
132.if n .ta 2.5i
133.if t .ta 1.8i
134/usr/spool/mail/* post office
135.br
136~/mbox your old mail
137.br
138~/.mailrc file giving initial mail commands
139.br
140/tmp/R# temporary for editor escape
141.br
142/usr/lib/Mail.groups named groupings for bulk mailing
143.br
144/usr/lib/Mail.help* help files
145.br
146/usr/lib/Mail.rc system-wide initialization file
147.br
148/bin/mail to do actual mailing
149.SH "SEE ALSO"
150mail(1),
151`The Mail Reference Manual'
152.SH AUTHOR
153Kurt Shoens
154.SH BUGS