1 .\" Copyright (c) 1980, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)mail2.nr 8.1 (Berkeley) 6/8/93
39 command has two distinct usages, according to whether one
40 wants to send or receive mail. Sending mail is simple: to send a
41 message to a user whose login name is, say,
48 then type your message. When you reach the end of the message, type
49 an EOT (control\-d) at the beginning of a line, which will cause
51 to echo \*(lqEOT\*(rq and return you to the Shell. When the user you sent mail
52 to next logs in, he will receive the message:
56 to alert him to the existence of your message.
58 If, while you are composing the message
59 you decide that you do not wish to send it after all, you can
60 abort the letter with a \s-2RUBOUT\s0. Typing a single \s-2RUBOUT\s0
65 (Interrupt -- one more to kill letter)
70 to save your partial letter on the file
72 in your home directory and abort the letter.
74 sent mail to someone, there is no way to undo the act, so be
77 The message your recipient reads will consist of the message you
78 typed, preceded by a line telling who sent the message (your login name)
79 and the date and time it
82 If you want to send the same message to several other people, you can list
83 their login names on the command line.
87 Tuition fees are due next Friday. Don't forget!!
92 will send the reminder to sam, bob, and john.
94 If, when you log in, you see the message,
98 you can read the mail by typing simply:
103 will respond by typing its version number and date and then listing
104 the messages you have waiting. Then it will type a prompt and await
105 your command. The messages are assigned numbers starting with 1 \*- you
106 refer to the messages with these numbers.
108 keeps track of which messages are
110 (have been sent since you last read your mail) and
112 (have been read by you). New messages have an
114 next to them in the header listing and old, but unread messages have
119 keeps track of new/old and read/unread messages by putting a
124 To look at a specific message, use the
126 command, which may be abbreviated to simply
128 For example, if you had the following messages:
130 N 1 root Wed Sep 21 09:21 "Tuition fees"
131 N 2 sam Tue Sep 20 22:55
133 you could examine the first message by giving the command:
139 to respond with, for example:
142 From root Wed Sep 21 09:21:45 1978
143 Subject: Tuition fees
146 Tuition fees are due next Wednesday. Don't forget!!
151 commands that operate on messages take a message number as an
154 command. For these commands, there is a notion of a current
155 message. When you enter the
157 program, the current message is initially the first one. Thus,
158 you can often omit the message number and use, for example,
162 to type the current message. As a further shorthand, you can type a message
163 by simply giving its message number. Hence,
167 would type the first message.
169 Frequently, it is useful to read the messages in your mailbox in order,
170 one after another. You can read the next message in
172 by simply typing a newline. As a special case, you can type a newline
173 as your first command to
175 to type the first message.
177 If, after typing a message, you wish to immediately send a reply,
178 you can do so with the
184 takes a message number as an argument.
186 then begins a message addressed to the user who sent you the message.
187 You may then type in your letter in reply, followed by a <control-d>
188 at the beginning of a line, as before.
190 will type EOT, then type the ampersand prompt to indicate its readiness
191 to accept another command. In our example, if, after typing the
192 first message, you wished to reply to it, you might give the command:
200 Subject: Re: Tuition fees
202 and waiting for you to enter your letter.
203 You are now in the message collection mode described at the beginning
206 will gather up your message up to a control\-d.
207 Note that it copies the subject
208 header from the original message. This is useful in that correspondence
209 about a particular matter will tend to retain the same subject heading,
210 making it easy to recognize. If there are other header fields in
211 the message, the information found will also be used.
212 For example, if the letter had a
214 header listing several recipients,
216 would arrange to send your replay to the same people as well.
217 Similarly, if the original message contained a
219 (carbon copies to) field,
221 would send your reply to
225 is careful, though, not too send the message to
227 even if you appear in the
231 field, unless you ask to be included explicitly. See section 4 for more
234 After typing in your letter, the dialog with
236 might look like the following:
240 Subject: Tuition fees
242 Thanks for the reminder
249 command is especially useful for sustaining extended conversations
250 over the message system, with other
252 users receiving copies of the conversation. The
254 command can be abbreviated to
257 Sometimes you will receive a message that has been sent to
258 several people and wish to reply
260 to the person who sent it.
264 replies to a message, but sends a copy to the sender only.
266 If you wish, while reading your mail, to send a message to someone,
267 but not as a reply to one of your messages, you can send the message
270 command, which takes as arguments the names of the recipients you wish
271 to send to. For example, to send a message to
276 This is to confirm our meeting next Friday at 4.
282 command can be abbreviated to
285 Normally, each message you receive is saved in the file
287 in your login directory at the time you leave
290 however, you will not want to save a particular message you
291 have received because it is only of passing interest. To avoid
294 you can delete it using the
296 command. In our example,
302 from saving message 1 (from root) in
304 In addition to not saving deleted messages,
307 you type them, either. The effect is to make the message disappear
308 altogether, along with its number. The
310 command can be abbreviated to simply
315 can be tailored to your liking with the
319 command has two forms, depending on whether you are setting
325 Binary options are either on or off. For example, the
329 that each time you send a message, you want it to prompt you for
330 a subject header, to be included in the message.
333 option, you would type
342 Unless told otherwise,
344 moves the messages from your system mailbox to the file
346 in your home directory when you leave
350 to keep your letters in the system mailbox instead, you can set the
354 Valued options are values which
356 uses to adapt to your tastes. For example, the
360 which shell you like to use, and is specified by
364 for example. Note that no spaces are allowed in
366 A complete list of the
368 options appears in section 5.
370 Another important valued option is
372 If you use a fast video terminal, you will find that when you
373 print long messages, they fly by too quickly for you to read them.
378 print any message larger than a given number of lines by sending
379 it through a paging program. This program is specified by the
380 valued option \fBPAGER\fP.
381 If \fBPAGER\fP is not set, a default paginator is used.
382 For example, most CRT users with 24-line screens should do:
386 to paginate messages that will not fit on their screens.
387 In the default state, \fImore\fP (default paginator) prints a screenful of
388 information, then types --More--. Type a space to see the next screenful.
390 Another adaptation to user needs that
394 An alias is simply a name which stands for one or more
397 sent to an alias is really sent to the list of real users
398 associated with it. For example, an alias can be defined for the
399 members of a project, so that you can send mail to the whole project
400 by sending mail to just a single name. The
404 defines an alias. Suppose that the users in a project are
405 named Sam, Sally, Steve, and Susan. To define an alias called
407 for them, you would use the
411 alias project sam sally steve susan
415 command can also be used to provide a convenient name for someone
416 whose user name is inconvenient. For example, if a user named
420 you might want to use:
424 so that you could send mail to the shorter name,
431 commands allow you to customize
433 they have the drawback that they must be retyped each time you enter
435 To make them more convenient to use,
437 always looks for two files when it is invoked. It first reads
440 then a user specific file,
442 which is found in the user's home directory.
444 is maintained by the system administrator and
447 commands that are applicable to all users of the system.
450 file is usually used by each user to set options the way he likes
451 and define individual aliases.
452 For example, my .mailrc file looks like this:
454 set ask nosave SHELL=/bin/csh
456 As you can see, it is possible to set many options in the
461 option is described in section 5.
463 Mail aliasing is implemented
464 at the system-wide level
468 These aliases are stored in the file /usr/lib/aliases and are
469 accessible to all users of the system.
470 The lines in /usr/lib/aliases are of
473 alias: name\*<1\*>, name\*<2\*>, name\*<3\*>
477 is the mailing list name and the
479 are the members of the list. Long lists can be continued onto the next
480 line by starting the next line with a space or tab. Remember that you
481 must execute the shell command
483 after editing /usr/lib/aliases since the delivery system
484 uses an indexed file created by
489 can be invoked with command line arguments which are people
490 to send the message to, or with no arguments to read mail.
493 flag on the command line causes
495 to read messages from a file other than your system mailbox.
496 For example, if you have a collection of messages in
508 commands described in this document to examine, modify, or delete
511 file, which will be rewritten when you leave
515 command described below.
517 Since mail that you read is saved in the file
519 in your home directory by default, you can read
521 in your home directory by using simply
526 Normally, messages that you examine using the
528 command are saved in the file
530 in your home directory if you leave
534 command described below.
535 If you wish to retain a message in your system mailbox
543 command accepts a list of message numbers, just like
545 and may be abbreviated to
548 Messages in your system mailbox that you do not examine are
549 normally retained in your system mailbox automatically.
550 If you wish to have such a message saved in
552 without reading it, you may use the
554 command to have them so saved. For example,
558 in our example would cause the second message (from sam)
565 is also the way to direct messages to your
567 file if you have set the
569 option described above.
571 can be abbreviated to
574 When you have perused all the messages of interest, you can leave
578 command, which saves the messages you have typed but not
581 in your login directory. Deleted messages are discarded irretrievably,
582 and messages left untouched are preserved in your system mailbox so
583 that you will see them the next time you type:
589 command can be abbreviated to simply
592 If you wish for some reason to leave
594 quickly without altering either your system mailbox or
600 which will immediately return you to the Shell without changing anything.
602 If, instead, you want to execute a Shell command without leaving
605 can type the command preceded by an exclamation point, just as in the
606 text editor. Thus, for instance:
610 will print the current date without leaving
615 command is available to print out a brief summary of the
617 commands, using only the single character command abbreviations.