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