tabstr changed to indentprefix to be Sun compatible
[unix-history] / usr / src / usr.bin / mail / mail.1
CommitLineData
91d7df00 1.\" Copyright (c) 1980 Regents of the University of California.
2470c0cd 2.\" All rights reserved.
91d7df00 3.\"
2470c0cd
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
0f642f7e 16.\" @(#)mail.1 6.13 (Berkeley) %G%
91d7df00 17.\"
bb04cec6 18.TH MAIL 1 ""
91d7df00
KM
19.UC 4
20.SH NAME
21mail \- send and receive mail
22.SH SYNOPSIS
23.B mail
24[
84931b71 25.B \-iInv
dcee403d
KM
26]
27[
28.B \-s
29subject
30]
31[
692b0644
EW
32.B \-c
33cc-addr
dcee403d
KM
34]
35[
692b0644
EW
36.B \-b
37bcc-addr
dcee403d 38]
692b0644
EW
39to-addr...
40.br
41.B mail
dcee403d 42[
84931b71 43.B \-iInNv
dcee403d 44]
91d7df00
KM
45.B \-f
46[
47name
48]
dcee403d
KM
49.br
50.B mail
51[
84931b71 52.B \-iInNv
91d7df00 53]
dcee403d 54[
dcee403d
KM
55.B \-u
56user
692b0644 57]
91d7df00
KM
58.SH INTRODUCTION
59.I Mail
60is a intelligent mail processing system, which has
61a command syntax reminiscent of
62.I ed
63with lines replaced by messages.
64.PP
dcee403d
KM
65The
66.B \-v
67flag puts mail into verbose mode; the details of
68delivery are displayed on the users terminal.
69The
70.B \-i
71flag causes tty interrupt signals to be ignored. This is
72particularly useful when using
73.I mail
74on noisy phone lines.
75The
84931b71
EW
76.B \-I
77flag forces mail to run in interactive mode even when
78input isn't a terminal. In particular, the `~' special
79character when sending mail is only active in interactive mode.
80The
dcee403d
KM
81.B \-n
82flag inhibits the reading of /usr/lib/Mail.rc.
84931b71
EW
83The
84.B \-N
85flag inhibits the initial display of message headers
86when reading mail or editing a mail folder.
dcee403d 87.PP
91d7df00 88.I "Sending mail.\ "
bfe02f44 89To send a message to one or more people,
91d7df00 90.I mail
bfe02f44
AH
91can be invoked with arguments which are the names of people to
92whom the mail will be sent. You are then expected to type in
93your message, followed
91d7df00 94by an \s-2EOT\s0 (control\-D) at the beginning of a line.
dcee403d
KM
95A subject may be specified on the command line by using the
96.B \-s
97flag. (Only the first argument after the
98.B \-s
99flag is used as a subject; be careful to quote subjects
692b0644
EW
100containing spaces.) Lists of users to send carbon copies and
101blind carbon copies to may be specified using the
102.B \-c
103and
104.B \-b
105options, respectively. The single argument following the
106flag is taken to be a comma-separated list of names.
91d7df00
KM
107The section below, labeled
108.I "Replying to or originating mail,"
109describes some features of
110.I mail
111available to help you compose your letter.
112.PP
113.I "Reading mail.\ "
dcee403d 114In normal usage
91d7df00
KM
115.I mail
116is given no arguments and checks your mail out of the
117post office, then
dcee403d 118prints out a one line header of each message there.
91d7df00
KM
119The current message is initially the first message (numbered 1)
120and can be printed using the
121.B print
122command (which can be abbreviated \fBp\fR).
123You can move among the messages much as you move between lines in
dcee403d 124.IR ed ,
91d7df00 125with the commands `+' and `\-' moving backwards and forwards, and
dcee403d 126simple numbers.
91d7df00
KM
127.PP
128.I "Disposing of mail.\ "
129After examining a message you can
130.B delete
131(\fBd\fR)
132the message or
133.B reply
134(\fBr\fR)
135to it.
136Deletion causes the
137.I mail
138program to forget about the message.
dcee403d 139This is not irreversible; the message can be
91d7df00
KM
140.B undeleted
141(\fBu\fR)
142by giving its number, or the
143.I mail
144session can be aborted by giving the
145.B exit
146(\fBx\fR)
147command.
148Deleted messages will, however, usually disappear never to be seen again.
149.PP
150.I "Specifying messages.\ "
151Commands such as
152.B print
153and
154.B delete
dcee403d 155can be given a list of message numbers as arguments to apply
91d7df00
KM
156to a number of messages at once.
157Thus ``delete 1 2'' deletes messages 1 and 2, while ``delete 1\-5''
158deletes messages 1 through 5.
159The special name ``*'' addresses all messages, and ``$'' addresses
160the last message; thus the command
161.B top
162which prints the first few lines of a message could be used in
163``top *'' to print the first few lines of all messages.
164.PP
165.I "Replying to or originating mail.\ "
166You can use the
167.B reply
168command to
169set up a response to a message, sending it back to the
170person who it was from.
dcee403d
KM
171Text you then type in, up to an end-of-file,
172defines the contents of the message.
91d7df00
KM
173While you are composing a message,
174.I mail
175treats lines beginning with the character `~' specially.
176For instance, typing ``~m'' (alone on a line) will place a copy
692b0644 177of the current message into the response right shifting it by a tabstop
0f642f7e 178(see ``indentprefix'' variable, below).
91d7df00
KM
179Other escapes will set up subject fields, add and delete recipients
180to the message and allow you to escape to an editor to revise the
181message or to a shell to run some commands. (These options
dcee403d 182are given in the summary below.)
91d7df00
KM
183.PP
184.I "Ending a mail processing session.\ "
185You can end a
186.I mail
187session with the
188.B quit
189(\fBq\fR)
190command.
191Messages which have been examined go to your
192.I mbox
193file unless they have been deleted in which case they are discarded.
194Unexamined messages go back to the post office.
195The
196.B \-f
197option causes
198.I mail
199to read in the contents of your
200.I mbox
201(or the specified file)
202for processing; when you
dcee403d 203.BR quit ,
91d7df00
KM
204.I mail
205writes undeleted messages back to this file.
dcee403d
KM
206The
207.B \-u
208flag is a short way of doing
209"mail
210.B \-f
211/usr/spool/mail/user".
91d7df00
KM
212.PP
213.I "Personal and systemwide distribution lists.\ "
214It is also possible to create a personal distribution lists so that,
215for instance, you can send mail to ``cohorts'' and have it go
216to a group of people.
217Such lists can be defined by placing a line like
218.IP
dcee403d 219alias cohorts bill ozalp jkf mark kridle@ucbcory
91d7df00
KM
220.PP
221in the file \&.mailrc in your home directory.
dcee403d 222The current list of such aliases can be displayed with the
91d7df00
KM
223.B alias
224.B (a)
225command in
dcee403d 226.IR mail .
91d7df00
KM
227System wide distribution lists can be created by editing
228/usr/lib/aliases, see
229.IR aliases (5)
230and
dcee403d
KM
231.IR sendmail (8);
232these are kept in a different syntax.
91d7df00
KM
233In mail you send, personal aliases will be expanded in mail sent
234to others so that they will be able to \fBreply\fR to the recipients.
235System wide \fIaliases\fR are not expanded when the mail is sent,
236but any reply returned to the machine will have the system wide
237alias expanded as all mail goes through
dcee403d 238.IR sendmail .
91d7df00
KM
239.PP
240.I "Network mail (ARPA, UUCP, Berknet)\ "
dcee403d
KM
241See
242.IR mailaddr(7)
243for a description of network addresses.
91d7df00
KM
244.PP
245.I Mail
dcee403d 246has a number of options which can be set in the
91d7df00
KM
247.I \&.mailrc
248file to alter its behavior; thus ``set askcc'' enables the ``askcc''
249feature. (These options are summarized below.)
250.SH SUMMARY
251(Adapted from the `Mail Reference Manual')
dcee403d 252.PP
91d7df00
KM
253Each command is typed on a line by itself, and may take arguments
254following the command word. The command need not be typed in its
255entirety \- the first command which matches the typed prefix is used.
dcee403d 256For commands which take message lists as arguments, if no message
91d7df00
KM
257list is given, then the next message forward which satisfies the
258command's requirements is used. If there are no messages forward of
259the current message, the search proceeds backwards, and if there are no
260good messages at all,
261.I mail
262types ``No applicable messages'' and
263aborts the command.
264.TP 12n
265.B \-
266Goes to the previous message and prints it out. If given a numeric
267argument
dcee403d 268.IR n ,
91d7df00 269goes to the
dcee403d 270.IR n -th
91d7df00
KM
271previous message and prints it.
272.TP
273.B ?
274Prints a brief summary of commands.
275.TP
276.B !
277Executes the \s-2UNIX\s0 shell command which follows.
278.TP
dcee403d
KM
279.B Print
280(\fBP\fR)
281Like
282.B print
283but also prints out ignored header fields. See also
284.B print
bb04cec6
KM
285,
286.B ignore
dcee403d 287and
bb04cec6 288.B retain.
dcee403d
KM
289.TP
290.B Reply
e7dd39cf 291(\fBR\fR)
dcee403d
KM
292Reply to originator. Does not reply to other
293recipients of the original message.
294.TP
295.B Type
e7dd39cf 296(\fBT\fR)
dcee403d
KM
297Identical to the
298.B Print
299command.
300.TP
91d7df00
KM
301.B alias
302(\fBa\fR) With no arguments, prints out all currently-defined aliases. With one
dcee403d 303argument, prints out that alias. With more than one argument, creates
692b0644 304a new alias or changes an old one.
dcee403d
KM
305.TP
306.B alternates
307(\fBalt\fR)
308The
309.B alternates
310command is useful if you have accounts on several machines.
311It can be used to inform
312.I mail
313that the listed addresses are really you. When you
314.B reply
315to messages,
316.I mail
317will not send a copy of the message to any of the addresses
318listed on the
319.I alternates
320list. If the
321.B alternates
322command is given with no argument, the current set of alternate
323names is displayed.
91d7df00
KM
324.TP
325.B chdir
326(\fBc\fR) Changes the user's working directory to that specified, if given. If
327no directory is given, then changes to the user's login directory.
328.TP
dcee403d
KM
329.B copy
330(\fBco\fR)
331The
332.B copy
333command does the same thing that
334.B save
335does, except that it does not mark the messages it
336is used on for deletion when you quit.
337.TP
91d7df00
KM
338.B delete
339(\fBd\fR) Takes a list of messages as argument and marks them all as deleted.
340Deleted messages will not be saved in
dcee403d 341.IR mbox ,
91d7df00
KM
342nor will they be available for most other commands.
343.TP
344.B dp
345(also \fBdt\fR) Deletes the current message and prints the next message.
346If there is no next message,
347.I mail
348says ``at EOF.''
349.TP
350.B edit
351(\fBe\fR) Takes a list of messages and points the text editor at each one in
352turn. On return from the editor, the message is read back in.
353.TP
354.B exit
355(\fBex\fR or \fBx\fR) Effects an immediate return to the Shell without
356modifying the user's system mailbox, his
357.I mbox
358file, or his edit file in
dcee403d
KM
359.BR \-f .
360.TP
361.B file
362(\fBfi\fR)
363The same as
364.BR folder .
365.TP
366.B folders
367List the names of the folders in your folder directory.
368.TP
369.B folder
370(\fBfo\fR)
371The
372.B folder
373command switches to a new mail file or folder. With no
374arguments, it tells you which file you are currently reading.
375If you give it an argument, it will write out changes (such
376as deletions) you have made in the current file and read in
377the new file. Some special conventions are recognized for
378the name. # means the previous file, % means your system
379mailbox, %user means user's system mailbox, & means
84931b71 380your \fImbox\fP file, and +folder means a file in your folder
dcee403d 381directory.
91d7df00
KM
382.TP
383.B from
384(\fBf\fR) Takes a list of messages and prints their message headers.
385.TP
386.B headers
692b0644
EW
387(\fBh\fR) Lists the current range of headers, which is an 18\-message group. If
388a ``+'' argument is given, then the next 18\-message group is printed, and if
389a ``\-'' argument is given, the previous 18\-message group is printed.
91d7df00
KM
390.TP
391.B help
392A synonym for ?
393.TP
394.B hold
395(\fBho\fR, also \fBpreserve\fR) Takes a message list and marks each
396message therein to be saved in the
397user's system mailbox instead of in
dcee403d 398.IR mbox .
91d7df00
KM
399Does not override the
400.B delete
401command.
402.TP
dcee403d 403.B ignore
bb04cec6
KM
404.B N.B.:
405.I Ignore
406has been superseded by
407.I retain.
408.br
dcee403d
KM
409Add the list of header fields named to the
410.IR "ignored list" .
411Header fields in the ignore list are not printed
412on your terminal when you print a message. This
413command is very handy for suppression of certain machine-generated
414header fields. The
415.B Type
416and
417.B Print
418commands can be used to print a message in its entirety, including
419ignored fields. If
420.B ignore
421is executed with no arguments, it lists the current set of
422ignored fields.
423.TP
91d7df00
KM
424.B mail
425(\fBm\fR) Takes as argument login names and distribution group names and sends
426mail to those people.
427.TP
dcee403d
KM
428.B mbox
429Indicate that a list of messages be sent to
430.I mbox
431in your home directory when you quit. This is the default
432action for messages if you do
433.I not
434have the
435.I hold
436option set.
437.TP
91d7df00
KM
438.B next
439(\fBn\fR like \fB+\fR or CR) Goes to the next message in sequence and types it.
440With an argument list, types the next matching message.
441.TP
442.B preserve
dcee403d 443(\fBpre\fR)
91d7df00 444A synonym for
dcee403d 445.BR hold .
91d7df00
KM
446.TP
447.B print
dcee403d
KM
448(\fBp\fR)
449Takes a message list and types out each message on the user's terminal.
91d7df00
KM
450.TP
451.B quit
452(\fBq\fR) Terminates the session, saving all undeleted, unsaved messages in
453the user's
454.I mbox
455file in his login directory, preserving all messages marked with
456.B hold
457or
458.B preserve
459or never referenced
460in his system mailbox, and removing all other messages from his system
461mailbox. If new mail has arrived during the session, the message
462``You have new mail'' is given. If given while editing a
463mailbox file with the
464.B \-f
465flag, then the edit file is rewritten. A return to the Shell is
466effected, unless the rewrite of edit file fails, in which case the user
467can escape with the
468.B exit
469command.
470.TP
471.B reply
dcee403d
KM
472(\fBr\fR)
473Takes a message list and sends mail to the sender and all
474recipients of the specified message.
475The default message must not be deleted.
91d7df00
KM
476.TP
477.B respond
478A synonym for
dcee403d 479.BR reply .
91d7df00 480.TP
bb04cec6
KM
481.B retain
482Add the list of header fields named to the
483.IR "retained list" .
484Only the header fields in the retain list
485are shown on your terminal when you print a message.
486All other header fields are suppressed.
487The
488.B Type
489and
490.B Print
491commands can be used to print a message in its entirety.
492If
493.B retain
494is executed with no arguments, it lists the current set of
495retained fields.
496.TP
91d7df00
KM
497.B save
498(\fBs\fR) Takes a message list and a filename and appends each message in
499turn to the end of the file. The filename in quotes, followed by the line
500count and character count is echoed on the user's terminal.
501.TP
502.B set
503(\fBse\fR) With no arguments, prints all variable values. Otherwise, sets
504option. Arguments are of the form
505``option=value''
bb04cec6 506(no space before or after =) or
91d7df00 507``option.''
692b0644 508Quotation marks may be placed around any part of the assignment statement to
0f642f7e 509quote blanks or tabs, i.e. ``set indentprefix="-> "''.
91d7df00 510.TP
02c3f688
EW
511.B saveignore
512\fBSaveignore\fP is to \fBsave\fP what \fBignore\fP is to \fBprint\fP
513and \fBtype\fP. Header fields thus marked are filtered out when
84931b71 514saving a message by \fBsave\fP or when automatically saving to \fImbox\fP.
02c3f688
EW
515.TP
516.B saveretain
517\fBSaveretain\fP is to \fBsave\fP what \fBretain\fP is to \fBprint\fP
518and \fBtype\fP. Header fields thus marked are the only ones saved
84931b71
EW
519with a message when saving by \fBsave\fP or when automatically saving to
520\fImbox\fP.
02c3f688
EW
521\fBSaveretain\fP overrides \fBsaveignore\fP.
522.TP
91d7df00
KM
523.B shell
524(\fBsh\fR) Invokes an interactive version of the shell.
525.TP
526.B size
527Takes a message list and prints out the size in characters of each
528message.
529.TP
dcee403d
KM
530.B source
531(\fBso\fR)
532The
533.B source
534command reads
535.I mail
536commands from a file.
537.TP
91d7df00
KM
538.B top
539Takes a message list and prints the top few lines of each. The number of
540lines printed is controlled by the variable
541.B toplines
542and defaults to five.
543.TP
544.B type
545(\fBt\fR) A synonym for
dcee403d 546.BR print .
91d7df00
KM
547.TP
548.B unalias
549Takes a list of names defined by
550.B alias
551commands and discards the remembered groups of users. The group names
552no longer have any significance.
553.TP
554.B undelete
634278dc 555(\fBu\fR) Takes a message list and marks each message as
91d7df00
KM
556.I not
557being deleted.
558.TP
634278dc
S
559.B unread
560(\fBU\fR) Takes a message list and marks each message as
561.I not
562having been read.
563.TP
91d7df00
KM
564.B unset
565Takes a list of option names and discards their remembered values;
566the inverse of
dcee403d 567.BR set .
91d7df00
KM
568.TP
569.B visual
570(\fBv\fR) Takes a message list and invokes the display editor on each message.
571.TP
572.B write
b3f2d791
S
573(\fBw\fR) Similar to
574.BR save ,
575except that
576.I only
577the message body (\fIwithout\fP the header) is saved.
578Extremely useful for such tasks as sending and receiving source
579program text over the message system.
91d7df00
KM
580.TP
581.B xit
582(\fBx\fR) A synonym for
dcee403d
KM
583.BR exit .
584.TP
585.B z
586.I Mail
587presents message headers in windowfuls as described under the
588.B headers
589command. You can move
590.IR mail 's
591attention forward to the next window with the
592.B z
593command. Also, you can move to the previous window by using
594.BR z\- .
91d7df00
KM
595.PP
596Here is a summary of the tilde escapes,
597which are used when composing messages to perform
598special functions. Tilde escapes are only recognized at the beginning
599of lines. The name
600``tilde\ escape''
601is somewhat of a misnomer since the actual escape character can be set
602by the option
603.B escape.
604.TP 12n
dcee403d 605.BR ~! command
91d7df00
KM
606Execute the indicated shell command, then return to the message.
607.TP
cb530a2d
KM
608\fB~b\fR name ...
609Add the given names to the list of carbon copy recipients but do not make
610the names visible in the Cc: line ("blind" carbon copy).
611.TP
91d7df00
KM
612\fB~c\fR name ...
613Add the given names to the list of carbon copy recipients.
614.TP
615.B ~d
616Read the file ``dead.letter'' from your home directory into the message.
617.TP
618.B ~e
619Invoke the text editor on the message collected so far. After the
620editing session is finished, you may continue appending text to the
621message.
622.TP
dcee403d
KM
623\fB~f\fR messages
624Read the named messages into the message being sent.
625If no messages are specified, read in the current message.
84931b71
EW
626Message headers currently being ignored (by the \fIignore\fP or \fIretain\fP
627command) are not included.
628.TP
629\fB~F\fR messages
630Identical to \fB~f\fP, except all message headers are included.
dcee403d 631.TP
91d7df00
KM
632.B ~h
633Edit the message header fields by typing each one in turn and allowing
634the user to append text to the end or modify the field by using the
635current terminal erase and kill characters.
636.TP
637\fB~m\fR messages
0f642f7e
EW
638Read the named messages into the message being sent, indented by a
639tab or by the value of \fIindentprefix\fP. If no messages are specified,
84931b71
EW
640read the current message.
641Message headers currently being ignored (by the \fIignore\fP or \fIretain\fP
642command) are not included.
643.TP
644\fB~M\fR messages
645Identical to \fB~m\fP, except all message headers are included.
91d7df00
KM
646.TP
647.B ~p
648Print out the message collected so far, prefaced by the message header
649fields.
650.TP
651.B ~q
652Abort the message being sent, copying the message to
653``dead.letter''
654in your home directory if
655.B save
656is set.
657.TP
658\fB~r\fR filename
659Read the named file into the message.
660.TP
661\fB~s\fR string
662Cause the named string to become the current subject field.
663.TP
664\fB~t\fR name ...
665Add the given names to the direct recipient list.
666.TP
667.B ~v
668Invoke an alternate editor (defined by the VISUAL option) on the
669message collected so far. Usually, the alternate editor will be a
670screen editor. After you quit the editor, you may resume appending
671text to the end of your message.
672.TP
673\fB~w\fR filename
674Write the message onto the named file.
675.TP
676\fB~\||\|\fRcommand
677Pipe the message through the command as a filter. If the command gives
678no output or terminates abnormally, retain the original text of the
679message. The command
680.IR fmt (1)
681is often used as
682.I command
683to rejustify the message.
684.TP
84931b71
EW
685\fB~:\fR mail-command
686Execute the given mail command. Not all commands, however, are allowed.
687.TP
dcee403d 688.BR ~~ string
91d7df00
KM
689Insert the string of text in the message prefaced by a single ~. If
690you have changed the escape character, then you should double
691that character in order to send it.
692.PP
693Options are controlled via the
694.B set
695and
696.B unset
697commands. Options may be either binary, in which case it is only
bfe02f44 698significant to see whether they are set or not; or string, in which
91d7df00
KM
699case the actual value is of interest.
700The binary options include the following:
701.TP 15n
702.B append
703Causes messages saved in
704.I mbox
705to be appended to the end rather than prepended.
84931b71 706This should always be set (perhaps in /usr/lib/Mail.rc).
91d7df00
KM
707.TP
708.B ask
709Causes
710.I mail
711to prompt you for the subject of each message you send. If
712you respond with simply a newline, no subject field will be sent.
713.TP
714.B askcc
715Causes you to be prompted for additional carbon copy recipients at the
716end of each message. Responding with a newline indicates your
717satisfaction with the current list.
718.TP
719.B autoprint
720Causes the
721.B delete
722command to behave like
723.B dp
724\- thus, after deleting a message, the next one will be typed
725automatically.
726.TP
dcee403d
KM
727.B debug
728Setting the binary option
729.I debug
730is the same as specifying
731.B \-d
732on the command line and causes
733.I mail
734to output all sorts of information useful for debugging
735.IR mail .
736.TP
737.B dot
738The binary option
739.I dot
740causes
741.I mail
742to interpret a period alone on a line as the terminator
743of a message you are sending.
744.TP
745.B hold
746This option is used to hold messages in the system mailbox
747by default.
748.TP
91d7df00
KM
749.B ignore
750Causes interrupt signals from your terminal to be ignored and echoed as
751@'s.
752.TP
dcee403d
KM
753.B ignoreeof
754An option related to
755.I dot
756is
757.I ignoreeof
758which makes
759.I mail
760refuse to accept a control-d as the end of a message.
761.I Ignoreeof
762also applies to
763.I mail
764command mode.
765.TP
91d7df00
KM
766.B metoo
767Usually, when a group is expanded that contains the sender, the sender
768is removed from the expansion. Setting this option causes the sender
769to be included in the group.
770.TP
84931b71
EW
771.B noheader
772Setting the option
773.I noheader
774is the same as giving the
775.B \-N
776flag on the command line.
777.TP
dcee403d
KM
778.B nosave
779Normally, when you abort a message with two \s-2RUBOUT\s0,
780.I mail
781copies the partial letter to the file ``dead.letter''
782in your home directory. Setting the binary option
783.I nosave
784prevents this.
785.TP
634278dc
S
786.B Replyall
787Reverses the sense of
788.I reply
789and
790.I Reply
791commands.
792.TP
91d7df00
KM
793.B quiet
794Suppresses the printing of the version when first invoked.
795.TP
dcee403d
KM
796.B verbose
797Setting the option
798.I verbose
799is the same as using the
800.B \-v
801flag on the command line. When mail runs in verbose mode,
802the actual delivery of messages is displayed on he users
803terminal.
91d7df00
KM
804.PP
805The following options have string values:
806.TP 15n
807EDITOR
808Pathname of the text editor to use in the
809.B edit
810command and ~e escape. If not defined, then a default editor is used.
811.TP
84931b71
EW
812LISTER
813Pathname of the directory lister to use in the
814.B folders
815command. Default is /bin/ls.
816.TP
634278dc
S
817PAGER
818Pathname of the program to use in the
819.B more
820command or when
821.I crt
692b0644
EW
822variable is set. The default paginator
823.I more(1)
824is used if this option is not defined.
634278dc 825.TP
91d7df00
KM
826SHELL
827Pathname of the shell to use in the
828.B !
829command and the ~! escape. A default shell is used if this option is
830not defined.
831.TP
832VISUAL
833Pathname of the text editor to use in the
834.B visual
835command and ~v escape.
836.TP
dcee403d
KM
837.B crt
838The valued option
839.I crt
840is used as a threshold to determine how long a message must
841be before
634278dc 842.B PAGER
84931b71
EW
843is used to read it. If \fIcrt\fP is set without a value,
844then the height of the terminal screen stored in the system
845is used to compute the threshold (see \fIstty(1)\fP).
dcee403d 846.TP
91d7df00
KM
847.B escape
848If defined, the first character of this option gives the character to
849use in the place of ~ to denote escapes.
850.TP
dcee403d
KM
851.B folder
852The name of the directory to use for storing folders of
853messages. If this name begins with a `/',
854.I mail
855considers it to be an absolute pathname; otherwise, the
856folder directory is found relative to your home directory.
857.TP
6504a3f0 858.B MBOX
84931b71
EW
859The name of the \fImbox\fP file. It can be the name of a folder.
860The default is ``mbox'' in the user's home directory.
861.TP
91d7df00
KM
862.B record
863If defined, gives the pathname of the file used to record all outgoing
864mail. If not defined, then outgoing mail is not so saved.
865.TP
0f642f7e
EW
866.B indentprefix
867String used by the ``~m'' tilde escape for indenting messages, in place of
692b0644
EW
868the normal tab character (^I). Be sure to quote the value if it contains
869spaces or tabs.
870.TP
91d7df00
KM
871.B toplines
872If defined, gives the number of lines of a message to be printed out
873with the
874.B top
875command; normally, the first five lines are printed.
876.SH FILES
877.if n .ta 2.5i
878.if t .ta 1.8i
879/usr/spool/mail/* post office
880.br
881~/mbox your old mail
882.br
883~/.mailrc file giving initial mail commands
884.br
84931b71 885/tmp/R* temporary files
91d7df00
KM
886.br
887/usr/lib/Mail.help* help files
888.br
889/usr/lib/Mail.rc system initialization file
91d7df00 890.SH "SEE ALSO"
56ecde3b 891binmail(1), fmt(1), newaliases(1), vacation(1), aliases(5),
dcee403d 892mailaddr(7), sendmail(8)
91d7df00
KM
893.br
894`The Mail Reference Manual'
dcee403d 895.SH BUGS
84931b71 896There are some flags that are not documented here. Most are
dcee403d
KM
897not useful to the general user.
898.br
899Usually,
900.I mail
901is just a link to
902.IR Mail ,
903which can be confusing.