xref: /freebsd/usr.bin/mail/mail.1 (revision bdcbfde31e8e9b343f113a1956384bdf30d1ed62)
19b50d902SRodney W. Grimes.\" Copyright (c) 1980, 1990, 1993
29b50d902SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
39b50d902SRodney W. Grimes.\"
49b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
59b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions
69b50d902SRodney W. Grimes.\" are met:
79b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
89b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
99b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
109b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
119b50d902SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
12fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
139b50d902SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
149b50d902SRodney W. Grimes.\"    without specific prior written permission.
159b50d902SRodney W. Grimes.\"
169b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
179b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
189b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
199b50d902SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
209b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
219b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
229b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
239b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
249b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
259b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
269b50d902SRodney W. Grimes.\" SUCH DAMAGE.
279b50d902SRodney W. Grimes.\"
28*47cc9ee1SAlan Somers.Dd August 8, 2018
299b50d902SRodney W. Grimes.Dt MAIL 1
3062500372SRuslan Ermilov.Os
319b50d902SRodney W. Grimes.Sh NAME
32856f23edSMike Heffner.Nm mail ,
3394ef258fSMike Heffner.Nm Mail ,
3494ef258fSMike Heffner.Nm mailx
359b50d902SRodney W. Grimes.Nd send and receive mail
369b50d902SRodney W. Grimes.Sh SYNOPSIS
378fe908efSRuslan Ermilov.Nm
386fcf85bcSYaroslav Tykhiy.Op Fl dEiInv
399b50d902SRodney W. Grimes.Op Fl s Ar subject
409b50d902SRodney W. Grimes.Op Fl c Ar cc-addr
419b50d902SRodney W. Grimes.Op Fl b Ar bcc-addr
42c92dfc23SMike Heffner.Op Fl F
439b50d902SRodney W. Grimes.Ar to-addr ...
4481135783SRuslan Ermilov.Op Fl Ar sendmail-option ...
458fe908efSRuslan Ermilov.Nm
466fcf85bcSYaroslav Tykhiy.Op Fl dEHiInNv
47c92dfc23SMike Heffner.Op Fl F
489b50d902SRodney W. Grimes.Fl f
499b50d902SRodney W. Grimes.Op Ar name
508fe908efSRuslan Ermilov.Nm
516fcf85bcSYaroslav Tykhiy.Op Fl dEHiInNv
52c92dfc23SMike Heffner.Op Fl F
539b50d902SRodney W. Grimes.Op Fl u Ar user
54c92dfc23SMike Heffner.Nm
556fcf85bcSYaroslav Tykhiy.Op Fl d
56c92dfc23SMike Heffner.Fl e
57c92dfc23SMike Heffner.Op Fl f Ar name
589b50d902SRodney W. Grimes.Sh INTRODUCTION
59e8937ba0SPhilippe CharnierThe
60e8937ba0SPhilippe Charnier.Nm
61e8937ba0SPhilippe Charnierutility is an intelligent mail processing system, which has
629b50d902SRodney W. Grimesa command syntax reminiscent of
6381135783SRuslan Ermilov.Xr ed 1
649b50d902SRodney W. Grimeswith lines replaced by messages.
6557906e00SPhilippe Charnier.Pp
6657906e00SPhilippe CharnierThe following options are available:
673e048b59SRuslan Ermilov.Bl -tag -width indent
689b50d902SRodney W. Grimes.It Fl v
699b50d902SRodney W. GrimesVerbose mode.
709b50d902SRodney W. GrimesThe details of
719b50d902SRodney W. Grimesdelivery are displayed on the user's terminal.
726fcf85bcSYaroslav Tykhiy.It Fl d
736fcf85bcSYaroslav TykhiyDebugging mode.
746fcf85bcSYaroslav TykhiySee the
756fcf85bcSYaroslav Tykhiy.Va debug
766fcf85bcSYaroslav Tykhiymail option for details.
77c92dfc23SMike Heffner.It Fl e
78c92dfc23SMike HeffnerTest for the presence of mail in the (by default, system)
79032a157fSRuslan Ermilovmailbox.
80032a157fSRuslan ErmilovAn exit status of 0 is returned if
81c92dfc23SMike Heffnerit has mail; otherwise, an exit status
82c92dfc23SMike Heffnerof 1 is returned.
83c92dfc23SMike Heffner.It Fl H
846fcf85bcSYaroslav TykhiyWrite a header summary only, then exit.
85dcd24e27SMike Heffner.It Fl E
86b7cd452dSRuslan ErmilovDo not send messages with an empty body.
87b7cd452dSRuslan ErmilovThis is useful for piping errors from
88b7cd452dSRuslan Ermilov.Xr cron 8
89b7cd452dSRuslan Ermilovscripts.
909b50d902SRodney W. Grimes.It Fl i
919b50d902SRodney W. GrimesIgnore tty interrupt signals.
929b50d902SRodney W. GrimesThis is
939b50d902SRodney W. Grimesparticularly useful when using
948fe908efSRuslan Ermilov.Nm
959b50d902SRodney W. Grimeson noisy phone lines.
969b50d902SRodney W. Grimes.It Fl I
9757906e00SPhilippe CharnierForce
9881135783SRuslan Ermilov.Nm
9981135783SRuslan Ermilovto run in interactive mode even when
100b7cd452dSRuslan Ermilovinput is not a terminal.
1019b50d902SRodney W. GrimesIn particular, the
10281135783SRuslan Ermilov.Ql ~
1039b50d902SRodney W. Grimesspecial
1049b50d902SRodney W. Grimescharacter when sending mail is only active in interactive mode.
1059b50d902SRodney W. Grimes.It Fl n
10657906e00SPhilippe CharnierInhibit reading the system-wide
107e9b074c3SJordan K. Hubbard.Pa mail.rc
108e9b074c3SJordan K. Hubbardfiles upon startup.
1099b50d902SRodney W. Grimes.It Fl N
11057906e00SPhilippe CharnierInhibit the initial display of message headers
1119b50d902SRodney W. Grimeswhen reading mail or editing a mail folder.
11257906e00SPhilippe Charnier.It Fl s Ar subject
11357906e00SPhilippe CharnierSpecify
11457906e00SPhilippe Charnier.Ar subject
11557906e00SPhilippe Charnieron command line.
11681135783SRuslan Ermilov(Only the first argument after the
1179b50d902SRodney W. Grimes.Fl s
1189b50d902SRodney W. Grimesflag is used as a subject; be careful to quote subjects
1199b50d902SRodney W. Grimescontaining spaces.)
12057906e00SPhilippe Charnier.It Fl c Ar cc-addr
1219b50d902SRodney W. GrimesSend carbon copies to
12281135783SRuslan Ermilov.Ar cc-addr
12381135783SRuslan Ermilovlist of users.
12457906e00SPhilippe CharnierThe
12557906e00SPhilippe Charnier.Ar cc-addr
12657906e00SPhilippe Charnierargument should be a comma-separated list of names.
12757906e00SPhilippe Charnier.It Fl b Ar bcc-addr
1289b50d902SRodney W. GrimesSend blind carbon copies to
12957906e00SPhilippe Charnier.Ar bcc-addr
13057906e00SPhilippe Charnierlist of users.
13157906e00SPhilippe CharnierThe
13257906e00SPhilippe Charnier.Ar bcc-addr
13357906e00SPhilippe Charnierargument should be a comma-separated list of names.
13457906e00SPhilippe Charnier.It Fl f Op Ar mbox
1359b50d902SRodney W. GrimesRead in the contents of your
13681135783SRuslan Ermilov.Pa mbox
1379b50d902SRodney W. Grimes(or the specified file)
1389b50d902SRodney W. Grimesfor processing; when you
13981135783SRuslan Ermilov.Ic quit ,
1408fe908efSRuslan Ermilov.Nm
1419b50d902SRodney W. Grimeswrites undeleted messages back to this file.
142c92dfc23SMike Heffner.It Fl F
143c92dfc23SMike HeffnerRecord the message in a file named after the first
144032a157fSRuslan Ermilovrecipient.
145032a157fSRuslan ErmilovThe name is the login-name portion of the
146c92dfc23SMike Heffneraddress found first on the
147c92dfc23SMike Heffner.Dq Li To:
148c92dfc23SMike Heffnerline in the mail header.
149c92dfc23SMike HeffnerOverrides the
150c92dfc23SMike Heffner.Va record
151c92dfc23SMike Heffnervariable, if set.
15250ca181eSMaxim Konovalov.It Fl u Ar user
1539b50d902SRodney W. GrimesIs equivalent to:
1549b50d902SRodney W. Grimes.Pp
15581135783SRuslan Ermilov.Dl "mail -f /var/mail/user"
1569b50d902SRodney W. Grimes.El
15781135783SRuslan Ermilov.Ss "Startup Actions"
158727c1440SJoseph KoshyAt startup time
159727c1440SJoseph Koshy.Nm
160727c1440SJoseph Koshywill execute commands in the system command files
161727c1440SJoseph Koshy.Pa /usr/share/misc/mail.rc ,
162727c1440SJoseph Koshy.Pa /usr/local/etc/mail.rc
163727c1440SJoseph Koshyand
164727c1440SJoseph Koshy.Pa /etc/mail.rc
165727c1440SJoseph Koshyin order, unless explicitly told not to by the use of the
166727c1440SJoseph Koshy.Fl n
167727c1440SJoseph Koshyoption.
168727c1440SJoseph KoshyNext, the commands in the user's personal command file
169727c1440SJoseph Koshy.Pa ~/.mailrc
170727c1440SJoseph Koshyare executed.
171e8937ba0SPhilippe CharnierThe
172727c1440SJoseph Koshy.Nm
173e8937ba0SPhilippe Charnierutility then examines its command line options to determine whether a
174727c1440SJoseph Koshynew message is to be sent, or whether an existing mailbox is to
175727c1440SJoseph Koshybe read.
17681135783SRuslan Ermilov.Ss "Sending Mail"
1779b50d902SRodney W. GrimesTo send a message to one or more people,
1788fe908efSRuslan Ermilov.Nm
1799b50d902SRodney W. Grimescan be invoked with arguments which are the names of people to
1809b50d902SRodney W. Grimeswhom the mail will be sent.
1819b50d902SRodney W. GrimesYou are then expected to type in
1829b50d902SRodney W. Grimesyour message, followed
183f3456b7eSJames Raynardby a
18481135783SRuslan Ermilov.Aq Li control-D
1859b50d902SRodney W. Grimesat the beginning of a line.
1869b50d902SRodney W. GrimesThe section below
18781135783SRuslan Ermilov.Sx "Replying To or Originating Mail" ,
1889b50d902SRodney W. Grimesdescribes some features of
1898fe908efSRuslan Ermilov.Nm
1909b50d902SRodney W. Grimesavailable to help you compose your letter.
19181135783SRuslan Ermilov.Ss "Reading Mail"
1929b50d902SRodney W. GrimesIn normal usage
1938fe908efSRuslan Ermilov.Nm
1949b50d902SRodney W. Grimesis given no arguments and checks your mail out of the
1959b50d902SRodney W. Grimespost office, then
1969b50d902SRodney W. Grimesprints out a one line header of each message found.
1979b50d902SRodney W. GrimesThe current message is initially the first message (numbered 1)
1989b50d902SRodney W. Grimesand can be printed using the
1999b50d902SRodney W. Grimes.Ic print
2009b50d902SRodney W. Grimescommand (which can be abbreviated
20181135783SRuslan Ermilov.Ic p ) .
2029b50d902SRodney W. GrimesYou can move among the messages much as you move between lines in
20381135783SRuslan Ermilov.Xr ed 1 ,
2049b50d902SRodney W. Grimeswith the commands
20581135783SRuslan Ermilov.Ic +
2069b50d902SRodney W. Grimesand
20781135783SRuslan Ermilov.Ic \-
2089b50d902SRodney W. Grimesmoving backwards and forwards, and
2099b50d902SRodney W. Grimessimple numbers.
21081135783SRuslan Ermilov.Ss "Disposing of Mail"
2119b50d902SRodney W. GrimesAfter examining a message you can
2129b50d902SRodney W. Grimes.Ic delete
213f3456b7eSJames Raynard.Pq Ic d
2149b50d902SRodney W. Grimesthe message or
2159b50d902SRodney W. Grimes.Ic reply
216f3456b7eSJames Raynard.Pq Ic r
2179b50d902SRodney W. Grimesto it.
2189b50d902SRodney W. GrimesDeletion causes the
2198fe908efSRuslan Ermilov.Nm
2209b50d902SRodney W. Grimesprogram to forget about the message.
2219b50d902SRodney W. GrimesThis is not irreversible; the message can be
2229b50d902SRodney W. Grimes.Ic undeleted
223f3456b7eSJames Raynard.Pq Ic u
2249b50d902SRodney W. Grimesby giving its number, or the
2258fe908efSRuslan Ermilov.Nm
2269b50d902SRodney W. Grimessession can be aborted by giving the
2279b50d902SRodney W. Grimes.Ic exit
228f3456b7eSJames Raynard.Pq Ic x
2299b50d902SRodney W. Grimescommand.
2309b50d902SRodney W. GrimesDeleted messages will, however, usually disappear never to be seen again.
23181135783SRuslan Ermilov.Ss "Specifying Messages"
2329b50d902SRodney W. GrimesCommands such as
2339b50d902SRodney W. Grimes.Ic print
2349b50d902SRodney W. Grimesand
2359b50d902SRodney W. Grimes.Ic delete
2369b50d902SRodney W. Grimescan be given a list of message numbers as arguments to apply
2379b50d902SRodney W. Grimesto a number of messages at once.
2389b50d902SRodney W. GrimesThus
23981135783SRuslan Ermilov.Dq Li "delete 1 2"
2409b50d902SRodney W. Grimesdeletes messages 1 and 2, while
24181135783SRuslan Ermilov.Dq Li "delete 1\-5"
2429b50d902SRodney W. Grimesdeletes messages 1 through 5.
2439b50d902SRodney W. GrimesThe special name
24481135783SRuslan Ermilov.Ql *
2459b50d902SRodney W. Grimesaddresses all messages, and
24681135783SRuslan Ermilov.Ql $
2479b50d902SRodney W. Grimesaddresses
2489b50d902SRodney W. Grimesthe last message; thus the command
2499b50d902SRodney W. Grimes.Ic top
2509b50d902SRodney W. Grimeswhich prints the first few lines of a message could be used in
25181135783SRuslan Ermilov.Dq Li "top *"
2529b50d902SRodney W. Grimesto print the first few lines of all messages.
25381135783SRuslan Ermilov.Ss "Replying To or Originating Mail"
2549b50d902SRodney W. GrimesYou can use the
2559b50d902SRodney W. Grimes.Ic reply
2569b50d902SRodney W. Grimescommand to
2579b50d902SRodney W. Grimesset up a response to a message, sending it back to the
2589b50d902SRodney W. Grimesperson who it was from.
2599b50d902SRodney W. GrimesText you then type in, up to an end-of-file,
2609b50d902SRodney W. Grimesdefines the contents of the message.
2619b50d902SRodney W. GrimesWhile you are composing a message,
2628fe908efSRuslan Ermilov.Nm
2639b50d902SRodney W. Grimestreats lines beginning with the character
26481135783SRuslan Ermilov.Ql ~
2659b50d902SRodney W. Grimesspecially.
2669b50d902SRodney W. GrimesFor instance, typing
26781135783SRuslan Ermilov.Ic ~m
2689b50d902SRodney W. Grimes(alone on a line) will place a copy
2699b50d902SRodney W. Grimesof the current message into the response right shifting it by a tabstop
2709b50d902SRodney W. Grimes(see
27181135783SRuslan Ermilov.Va indentprefix
2729b50d902SRodney W. Grimesvariable, below).
2739b50d902SRodney W. GrimesOther escapes will set up subject fields, add and delete recipients
2749b50d902SRodney W. Grimesto the message and allow you to escape to an editor to revise the
2759b50d902SRodney W. Grimesmessage or to a shell to run some commands.
2769b50d902SRodney W. Grimes(These options
2779b50d902SRodney W. Grimesare given in the summary below.)
27881135783SRuslan Ermilov.Ss "Ending a Mail Processing Session"
2799b50d902SRodney W. GrimesYou can end a
2808fe908efSRuslan Ermilov.Nm
2819b50d902SRodney W. Grimessession with the
2829b50d902SRodney W. Grimes.Ic quit
283f3456b7eSJames Raynard.Pq Ic q
2849b50d902SRodney W. Grimescommand.
2859b50d902SRodney W. GrimesMessages which have been examined go to your
28681135783SRuslan Ermilov.Pa mbox
2879b50d902SRodney W. Grimesfile unless they have been deleted in which case they are discarded.
2889b50d902SRodney W. GrimesUnexamined messages go back to the post office.
2899b50d902SRodney W. Grimes(See the
2909b50d902SRodney W. Grimes.Fl f
2919b50d902SRodney W. Grimesoption above).
29281135783SRuslan Ermilov.Ss "Personal and System Wide Distribution Lists"
2939b50d902SRodney W. GrimesIt is also possible to create a personal distribution lists so that,
2949b50d902SRodney W. Grimesfor instance, you can send mail to
2959b50d902SRodney W. Grimes.Dq Li cohorts
2969b50d902SRodney W. Grimesand have it go
2979b50d902SRodney W. Grimesto a group of people.
2989b50d902SRodney W. GrimesSuch lists can be defined by placing a line like
2999b50d902SRodney W. Grimes.Pp
30081135783SRuslan Ermilov.Dl "alias cohorts bill ozalp jkf mark kridle@ucbcory"
3019b50d902SRodney W. Grimes.Pp
3029b50d902SRodney W. Grimesin the file
30381135783SRuslan Ermilov.Pa .mailrc
3049b50d902SRodney W. Grimesin your home directory.
3059b50d902SRodney W. GrimesThe current list of such aliases can be displayed with the
3069b50d902SRodney W. Grimes.Ic alias
3079b50d902SRodney W. Grimescommand in
3088fe908efSRuslan Ermilov.Nm .
3099b50d902SRodney W. GrimesSystem wide distribution lists can be created by editing
3102216e2a2SGregory Neil Shapiro.Pa /etc/mail/aliases ,
3119b50d902SRodney W. Grimessee
3129b50d902SRodney W. Grimes.Xr aliases 5
3139b50d902SRodney W. Grimesand
3149b50d902SRodney W. Grimes.Xr sendmail 8 ;
3159b50d902SRodney W. Grimesthese are kept in a different syntax.
3169b50d902SRodney W. GrimesIn mail you send, personal aliases will be expanded in mail sent
3179b50d902SRodney W. Grimesto others so that they will be able to
3189b50d902SRodney W. Grimes.Ic reply
3199b50d902SRodney W. Grimesto the recipients.
3209b50d902SRodney W. GrimesSystem wide
32181135783SRuslan Ermilovaliases
3229b50d902SRodney W. Grimesare not expanded when the mail is sent,
3239b50d902SRodney W. Grimesbut any reply returned to the machine will have the system wide
3249b50d902SRodney W. Grimesalias expanded as all mail goes through
325856f23edSMike Heffner.Xr sendmail 8 .
32681135783SRuslan Ermilov.Ss "Network Mail (ARPA, UUCP, Berknet)"
3279b50d902SRodney W. Grimes.Pp
328e8937ba0SPhilippe CharnierThe
329e8937ba0SPhilippe Charnier.Nm
330e8937ba0SPhilippe Charnierutility has a number of options which can be set in the
3319b50d902SRodney W. Grimes.Pa .mailrc
3329b50d902SRodney W. Grimesfile to alter its behavior; thus
33381135783SRuslan Ermilov.Dq Li "set askcc"
3349b50d902SRodney W. Grimesenables the
33581135783SRuslan Ermilov.Va askcc
3369b50d902SRodney W. Grimesfeature.
3379b50d902SRodney W. Grimes(These options are summarized below.)
3389b50d902SRodney W. Grimes.Sh SUMMARY
33981135783SRuslan Ermilov(Adapted from the
34081135783SRuslan Ermilov.%T "Mail Reference Manual" . )
3419b50d902SRodney W. Grimes.Pp
3429b50d902SRodney W. GrimesEach command is typed on a line by itself, and may take arguments
3439b50d902SRodney W. Grimesfollowing the command word.
3449b50d902SRodney W. GrimesThe command need not be typed in its
34581135783SRuslan Ermiloventirety \(em the first command which matches the typed prefix is used.
3469b50d902SRodney W. GrimesFor commands which take message lists as arguments, if no message
3479b50d902SRodney W. Grimeslist is given, then the next message forward which satisfies the
3489b50d902SRodney W. Grimescommand's requirements is used.
3499b50d902SRodney W. GrimesIf there are no messages forward of
3509b50d902SRodney W. Grimesthe current message, the search proceeds backwards, and if there are no
3519b50d902SRodney W. Grimesgood messages at all,
3528fe908efSRuslan Ermilov.Nm
3539b50d902SRodney W. Grimestypes
35481135783SRuslan Ermilov.Dq Li "No applicable messages"
3559b50d902SRodney W. Grimesand
3569b50d902SRodney W. Grimesaborts the command.
3573e048b59SRuslan Ermilov.Bl -tag -width indent
35881135783SRuslan Ermilov.It Ic \-
3599b50d902SRodney W. GrimesPrint out the preceding message.
3609b50d902SRodney W. GrimesIf given a numeric
3619b50d902SRodney W. Grimesargument
3629b50d902SRodney W. Grimes.Ar n ,
3639b50d902SRodney W. Grimesgoes to the
3649b50d902SRodney W. Grimes.Ar n Ns 'th
3659b50d902SRodney W. Grimesprevious message and prints it.
36681135783SRuslan Ermilov.It Ic #
367b5cfa4b2SJoerg Wunschignore the remainder of the line as a comment.
3689b50d902SRodney W. Grimes.It Ic \&?
3699b50d902SRodney W. GrimesPrints a brief summary of commands.
3709b50d902SRodney W. Grimes.It Ic \&!
3719b50d902SRodney W. GrimesExecutes the shell
3729b50d902SRodney W. Grimes(see
3739b50d902SRodney W. Grimes.Xr sh 1
3749b50d902SRodney W. Grimesand
3759b50d902SRodney W. Grimes.Xr csh 1 )
3769b50d902SRodney W. Grimescommand which follows.
3779b50d902SRodney W. Grimes.It Ic Print
3789b50d902SRodney W. Grimes.Pq Ic P
3799b50d902SRodney W. GrimesLike
3809b50d902SRodney W. Grimes.Ic print
3819b50d902SRodney W. Grimesbut also prints out ignored header fields.
3829b50d902SRodney W. GrimesSee also
38381135783SRuslan Ermilov.Ic print , ignore
3849b50d902SRodney W. Grimesand
3859b50d902SRodney W. Grimes.Ic retain .
3869b50d902SRodney W. Grimes.It Ic Reply
3879b50d902SRodney W. Grimes.Pq Ic R
3889b50d902SRodney W. GrimesReply to originator.
3899b50d902SRodney W. GrimesDoes not reply to other
3909b50d902SRodney W. Grimesrecipients of the original message.
3919b50d902SRodney W. Grimes.It Ic Type
3929b50d902SRodney W. Grimes.Pq Ic T
3939b50d902SRodney W. GrimesIdentical to the
3949b50d902SRodney W. Grimes.Ic Print
3959b50d902SRodney W. Grimescommand.
3969b50d902SRodney W. Grimes.It Ic alias
3979b50d902SRodney W. Grimes.Pq Ic a
3989b50d902SRodney W. GrimesWith no arguments, prints out all currently-defined aliases.
3999b50d902SRodney W. GrimesWith one
4009b50d902SRodney W. Grimesargument, prints out that alias.
4019b50d902SRodney W. GrimesWith more than one argument, creates
4029b50d902SRodney W. Grimesa new alias or changes an old one.
4039b50d902SRodney W. Grimes.It Ic alternates
4049b50d902SRodney W. Grimes.Pq Ic alt
4059b50d902SRodney W. GrimesThe
4069b50d902SRodney W. Grimes.Ic alternates
4079b50d902SRodney W. Grimescommand is useful if you have accounts on several machines.
4089b50d902SRodney W. GrimesIt can be used to inform
4098fe908efSRuslan Ermilov.Nm
4109b50d902SRodney W. Grimesthat the listed addresses are really you.
4119b50d902SRodney W. GrimesWhen you
4129b50d902SRodney W. Grimes.Ic reply
4139b50d902SRodney W. Grimesto messages,
4148fe908efSRuslan Ermilov.Nm
4159b50d902SRodney W. Grimeswill not send a copy of the message to any of the addresses
4169b50d902SRodney W. Grimeslisted on the
4179b50d902SRodney W. Grimes.Ic alternates
4189b50d902SRodney W. Grimeslist.
4199b50d902SRodney W. GrimesIf the
4209b50d902SRodney W. Grimes.Ic alternates
421856f23edSMike Heffnercommand is given with no argument, the current set of alternative
4229b50d902SRodney W. Grimesnames is displayed.
4239b50d902SRodney W. Grimes.It Ic chdir
4249b50d902SRodney W. Grimes.Pq Ic c
4259b50d902SRodney W. GrimesChanges the user's working directory to that specified, if given.
4269b50d902SRodney W. GrimesIf
4279b50d902SRodney W. Grimesno directory is given, then changes to the user's login directory.
4289b50d902SRodney W. Grimes.It Ic copy
4299b50d902SRodney W. Grimes.Pq Ic co
4309b50d902SRodney W. GrimesThe
4319b50d902SRodney W. Grimes.Ic copy
4329b50d902SRodney W. Grimescommand does the same thing that
4339b50d902SRodney W. Grimes.Ic save
4349b50d902SRodney W. Grimesdoes, except that it does not mark the messages it
43581135783SRuslan Ermilovis used on for deletion when you
43681135783SRuslan Ermilov.Ic quit .
4379b50d902SRodney W. Grimes.It Ic delete
4389b50d902SRodney W. Grimes.Pq Ic d
4399b50d902SRodney W. GrimesTakes a list of messages as argument and marks them all as deleted.
4409b50d902SRodney W. GrimesDeleted messages will not be saved in
44181135783SRuslan Ermilov.Pa mbox ,
4429b50d902SRodney W. Grimesnor will they be available for most other commands.
4439b50d902SRodney W. Grimes.It Ic dp
4449b50d902SRodney W. Grimes(also
4459b50d902SRodney W. Grimes.Ic dt )
4469b50d902SRodney W. GrimesDeletes the current message and prints the next message.
4479b50d902SRodney W. GrimesIf there is no next message,
4488fe908efSRuslan Ermilov.Nm
4499b50d902SRodney W. Grimessays
4509b50d902SRodney W. Grimes.Dq Li "at EOF" .
4519b50d902SRodney W. Grimes.It Ic edit
4529b50d902SRodney W. Grimes.Pq Ic e
4539b50d902SRodney W. GrimesTakes a list of messages and points the text editor at each one in
4549b50d902SRodney W. Grimesturn.
4559b50d902SRodney W. GrimesOn return from the editor, the message is read back in.
4569b50d902SRodney W. Grimes.It Ic exit
457d0353b83SRuslan Ermilov.Ic ( ex
4589b50d902SRodney W. Grimesor
4599b50d902SRodney W. Grimes.Ic x )
46081135783SRuslan ErmilovEffects an immediate return to the shell without
4619b50d902SRodney W. Grimesmodifying the user's system mailbox, his
46281135783SRuslan Ermilov.Pa mbox
4639b50d902SRodney W. Grimesfile, or his edit file in
4649b50d902SRodney W. Grimes.Fl f .
4659b50d902SRodney W. Grimes.It Ic file
4669b50d902SRodney W. Grimes.Pq Ic fi
4679b50d902SRodney W. GrimesThe same as
4689b50d902SRodney W. Grimes.Ic folder .
4699b50d902SRodney W. Grimes.It Ic folders
4709b50d902SRodney W. GrimesList the names of the folders in your folder directory.
4719b50d902SRodney W. Grimes.It Ic folder
4729b50d902SRodney W. Grimes.Pq Ic fo
4739b50d902SRodney W. GrimesThe
4749b50d902SRodney W. Grimes.Ic folder
4759b50d902SRodney W. Grimescommand switches to a new mail file or folder.
4769b50d902SRodney W. GrimesWith no
4779b50d902SRodney W. Grimesarguments, it tells you which file you are currently reading.
4789b50d902SRodney W. GrimesIf you give it an argument, it will write out changes (such
4799b50d902SRodney W. Grimesas deletions) you have made in the current file and read in
4809b50d902SRodney W. Grimesthe new file.
4819b50d902SRodney W. GrimesSome special conventions are recognized for
4829b50d902SRodney W. Grimesthe name.
48381135783SRuslan Ermilov.Ql #
48481135783SRuslan Ermilovmeans the previous file,
48581135783SRuslan Ermilov.Ql %
48681135783SRuslan Ermilovmeans your system mailbox,
48781135783SRuslan Ermilov.Dq Li % Ns Ar user
48881135783SRuslan Ermilovmeans user's system mailbox,
48981135783SRuslan Ermilov.Ql &
49081135783SRuslan Ermilovmeans your
49181135783SRuslan Ermilov.Pa mbox
4929b50d902SRodney W. Grimesfile, and
49381135783SRuslan Ermilov.Dq Li + Ns Ar folder
49481135783SRuslan Ermilovmeans a file in your folder
4959b50d902SRodney W. Grimesdirectory.
4969b50d902SRodney W. Grimes.It Ic from
4979b50d902SRodney W. Grimes.Pq Ic f
4989b50d902SRodney W. GrimesTakes a list of messages and prints their message headers.
4999b50d902SRodney W. Grimes.It Ic headers
5009b50d902SRodney W. Grimes.Pq Ic h
50181135783SRuslan ErmilovLists the current range of headers, which is an 18-message group.
5029b50d902SRodney W. GrimesIf
5039b50d902SRodney W. Grimesa
50481135783SRuslan Ermilov.Ql +
50581135783SRuslan Ermilovargument is given, then the next 18-message group is printed, and if
5069b50d902SRodney W. Grimesa
50781135783SRuslan Ermilov.Ql \-
50881135783SRuslan Ermilovargument is given, the previous 18-message group is printed.
5099b50d902SRodney W. Grimes.It Ic help
5109b50d902SRodney W. GrimesA synonym for
51181135783SRuslan Ermilov.Ic \&? .
5129b50d902SRodney W. Grimes.It Ic hold
513d0353b83SRuslan Ermilov.Ic ( ho ,
5149b50d902SRodney W. Grimesalso
5159b50d902SRodney W. Grimes.Ic preserve )
5169b50d902SRodney W. GrimesTakes a message list and marks each
5179b50d902SRodney W. Grimesmessage therein to be saved in the
5189b50d902SRodney W. Grimesuser's system mailbox instead of in
51981135783SRuslan Ermilov.Pa mbox .
5209b50d902SRodney W. GrimesDoes not override the
5219b50d902SRodney W. Grimes.Ic delete
5229b50d902SRodney W. Grimescommand.
5239b50d902SRodney W. Grimes.It Ic ignore
5249b50d902SRodney W. GrimesAdd the list of header fields named to the
5259b50d902SRodney W. Grimes.Ar ignored list .
5269b50d902SRodney W. GrimesHeader fields in the ignore list are not printed
5279b50d902SRodney W. Grimeson your terminal when you print a message.
5289b50d902SRodney W. GrimesThis
5299b50d902SRodney W. Grimescommand is very handy for suppression of certain machine-generated
5309b50d902SRodney W. Grimesheader fields.
5319b50d902SRodney W. GrimesThe
5329b50d902SRodney W. Grimes.Ic Type
5339b50d902SRodney W. Grimesand
5349b50d902SRodney W. Grimes.Ic Print
5359b50d902SRodney W. Grimescommands can be used to print a message in its entirety, including
5369b50d902SRodney W. Grimesignored fields.
5379b50d902SRodney W. GrimesIf
5389b50d902SRodney W. Grimes.Ic ignore
5399b50d902SRodney W. Grimesis executed with no arguments, it lists the current set of
5409b50d902SRodney W. Grimesignored fields.
541856f23edSMike Heffner.It Ic inc
542856f23edSMike HeffnerIncorporate any new messages that have arrived while mail
543856f23edSMike Heffneris being read.
544856f23edSMike HeffnerThe new messages are added to the end of the message list,
545856f23edSMike Heffnerand the current message is reset to be the first new mail message.
54681135783SRuslan ErmilovThis does not renumber the existing message list, nor
547856f23edSMike Heffnerdoes it cause any changes made so far to be saved.
5489b50d902SRodney W. Grimes.It Ic mail
5499b50d902SRodney W. Grimes.Pq Ic m
5509b50d902SRodney W. GrimesTakes as argument login names and distribution group names and sends
5519b50d902SRodney W. Grimesmail to those people.
5529b50d902SRodney W. Grimes.It Ic mbox
5539b50d902SRodney W. GrimesIndicate that a list of messages be sent to
55481135783SRuslan Ermilov.Pa mbox
5559b50d902SRodney W. Grimesin your home directory when you quit.
5569b50d902SRodney W. GrimesThis is the default
5579b50d902SRodney W. Grimesaction for messages if you do
5589b50d902SRodney W. Grimes.Em not
5599b50d902SRodney W. Grimeshave the
5609b50d902SRodney W. Grimes.Ic hold
5619b50d902SRodney W. Grimesoption set.
562856f23edSMike Heffner.It Ic more
56381135783SRuslan Ermilov.Pq Ic mo
564856f23edSMike HeffnerTakes a list of messages and invokes the pager on that list.
5659b50d902SRodney W. Grimes.It Ic next
566856f23edSMike Heffner.Ic ( n ,
5679b50d902SRodney W. Grimeslike
56881135783SRuslan Ermilov.Ic +
5699b50d902SRodney W. Grimesor
5709b50d902SRodney W. Grimes.Tn CR )
5719b50d902SRodney W. GrimesGoes to the next message in sequence and types it.
5729b50d902SRodney W. GrimesWith an argument list, types the next matching message.
5739b50d902SRodney W. Grimes.It Ic preserve
5749b50d902SRodney W. Grimes.Pq Ic pre
5759b50d902SRodney W. GrimesA synonym for
5769b50d902SRodney W. Grimes.Ic hold .
5779b50d902SRodney W. Grimes.It Ic print
5789b50d902SRodney W. Grimes.Pq Ic p
5799b50d902SRodney W. GrimesTakes a message list and types out each message on the user's terminal.
5809b50d902SRodney W. Grimes.It Ic quit
5819b50d902SRodney W. Grimes.Pq Ic q
5829b50d902SRodney W. GrimesTerminates the session, saving all undeleted, unsaved messages in
5839b50d902SRodney W. Grimesthe user's
58481135783SRuslan Ermilov.Pa mbox
5859b50d902SRodney W. Grimesfile in his login directory, preserving all messages marked with
5869b50d902SRodney W. Grimes.Ic hold
5879b50d902SRodney W. Grimesor
5889b50d902SRodney W. Grimes.Ic preserve
5899b50d902SRodney W. Grimesor never referenced
5909b50d902SRodney W. Grimesin his system mailbox, and removing all other messages from his system
5919b50d902SRodney W. Grimesmailbox.
5929b50d902SRodney W. GrimesIf new mail has arrived during the session, the message
5939b50d902SRodney W. Grimes.Dq Li "You have new mail"
5949b50d902SRodney W. Grimesis given.
5959b50d902SRodney W. GrimesIf given while editing a
5969b50d902SRodney W. Grimesmailbox file with the
5979b50d902SRodney W. Grimes.Fl f
5989b50d902SRodney W. Grimesflag, then the edit file is rewritten.
59981135783SRuslan ErmilovA return to the shell is
6009b50d902SRodney W. Grimeseffected, unless the rewrite of edit file fails, in which case the user
6019b50d902SRodney W. Grimescan escape with the
6029b50d902SRodney W. Grimes.Ic exit
6039b50d902SRodney W. Grimescommand.
6049b50d902SRodney W. Grimes.It Ic reply
6059b50d902SRodney W. Grimes.Pq Ic r
6069b50d902SRodney W. GrimesTakes a message list and sends mail to the sender and all
6079b50d902SRodney W. Grimesrecipients of the specified message.
6089b50d902SRodney W. GrimesThe default message must not be deleted.
6099b50d902SRodney W. Grimes.It Ic respond
6109b50d902SRodney W. GrimesA synonym for
6119b50d902SRodney W. Grimes.Ic reply .
6129b50d902SRodney W. Grimes.It Ic retain
6139b50d902SRodney W. GrimesAdd the list of header fields named to the
614856f23edSMike Heffner.Em "retained list" .
615856f23edSMike HeffnerOnly the header fields in the retained list
6169b50d902SRodney W. Grimesare shown on your terminal when you print a message.
6179b50d902SRodney W. GrimesAll other header fields are suppressed.
6189b50d902SRodney W. GrimesThe
619856f23edSMike Heffner.Ic type
6209b50d902SRodney W. Grimesand
621856f23edSMike Heffner.Ic print
6229b50d902SRodney W. Grimescommands can be used to print a message in its entirety.
6239b50d902SRodney W. GrimesIf
6249b50d902SRodney W. Grimes.Ic retain
6259b50d902SRodney W. Grimesis executed with no arguments, it lists the current set of
6269b50d902SRodney W. Grimesretained fields.
6279b50d902SRodney W. Grimes.It Ic save
6289b50d902SRodney W. Grimes.Pq Ic s
6299b50d902SRodney W. GrimesTakes a message list and a filename and appends each message in
6309b50d902SRodney W. Grimesturn to the end of the file.
6319b50d902SRodney W. GrimesThe filename in quotes, followed by the line
6329b50d902SRodney W. Grimescount and character count is echoed on the user's terminal.
6339b50d902SRodney W. Grimes.It Ic set
6349b50d902SRodney W. Grimes.Pq Ic se
6359b50d902SRodney W. GrimesWith no arguments, prints all variable values.
6369b50d902SRodney W. GrimesOtherwise, sets
6379b50d902SRodney W. Grimesoption.
6389b50d902SRodney W. GrimesArguments are of the form
63981135783SRuslan Ermilov.Ar option Ns Li = Ns Ar value
64081135783SRuslan Ermilov(no space before or after
64181135783SRuslan Ermilov.Ql = )
64281135783SRuslan Ermilovor
6439b50d902SRodney W. Grimes.Ar option .
6449b50d902SRodney W. GrimesQuotation marks may be placed around any part of the assignment statement to
64557e4378bSRuslan Ermilovquote blanks or tabs, i.e.\&
6469b50d902SRodney W. Grimes.Dq Li "set indentprefix=\*q->\*q"
6479b50d902SRodney W. Grimes.It Ic saveignore
6489b50d902SRodney W. Grimes.Ic Saveignore
6499b50d902SRodney W. Grimesis to
6509b50d902SRodney W. Grimes.Ic save
6519b50d902SRodney W. Grimeswhat
6529b50d902SRodney W. Grimes.Ic ignore
6539b50d902SRodney W. Grimesis to
6549b50d902SRodney W. Grimes.Ic print
6559b50d902SRodney W. Grimesand
6569b50d902SRodney W. Grimes.Ic type .
6579b50d902SRodney W. GrimesHeader fields thus marked are filtered out when
6589b50d902SRodney W. Grimessaving a message by
6599b50d902SRodney W. Grimes.Ic save
6609b50d902SRodney W. Grimesor when automatically saving to
66181135783SRuslan Ermilov.Pa mbox .
6629b50d902SRodney W. Grimes.It Ic saveretain
6639b50d902SRodney W. Grimes.Ic Saveretain
6649b50d902SRodney W. Grimesis to
6659b50d902SRodney W. Grimes.Ic save
6669b50d902SRodney W. Grimeswhat
6679b50d902SRodney W. Grimes.Ic retain
6689b50d902SRodney W. Grimesis to
6699b50d902SRodney W. Grimes.Ic print
6709b50d902SRodney W. Grimesand
6719b50d902SRodney W. Grimes.Ic type .
6729b50d902SRodney W. GrimesHeader fields thus marked are the only ones saved
6739b50d902SRodney W. Grimeswith a message when saving by
6749b50d902SRodney W. Grimes.Ic save
6759b50d902SRodney W. Grimesor when automatically saving to
67681135783SRuslan Ermilov.Pa mbox .
6779b50d902SRodney W. Grimes.Ic Saveretain
6789b50d902SRodney W. Grimesoverrides
6799b50d902SRodney W. Grimes.Ic saveignore .
6809b50d902SRodney W. Grimes.It Ic shell
6819b50d902SRodney W. Grimes.Pq Ic sh
6829b50d902SRodney W. GrimesInvokes an interactive version of the shell.
6839b50d902SRodney W. Grimes.It Ic size
6849b50d902SRodney W. GrimesTakes a message list and prints out the size in characters of each
6859b50d902SRodney W. Grimesmessage.
6869b50d902SRodney W. Grimes.It Ic source
6879b50d902SRodney W. GrimesThe
6889b50d902SRodney W. Grimes.Ic source
6899b50d902SRodney W. Grimescommand reads
6909b50d902SRodney W. Grimescommands from a file.
6919b50d902SRodney W. Grimes.It Ic top
6929b50d902SRodney W. GrimesTakes a message list and prints the top few lines of each.
6939b50d902SRodney W. GrimesThe number of
6949b50d902SRodney W. Grimeslines printed is controlled by the variable
69581135783SRuslan Ermilov.Va toplines
69681135783SRuslan Ermilovand defaults to 5.
6979b50d902SRodney W. Grimes.It Ic type
6989b50d902SRodney W. Grimes.Pq Ic t
6999b50d902SRodney W. GrimesA synonym for
7009b50d902SRodney W. Grimes.Ic print .
7019b50d902SRodney W. Grimes.It Ic unalias
7029b50d902SRodney W. GrimesTakes a list of names defined by
7039b50d902SRodney W. Grimes.Ic alias
7049b50d902SRodney W. Grimescommands and discards the remembered groups of users.
7059b50d902SRodney W. GrimesThe group names
7069b50d902SRodney W. Grimesno longer have any significance.
7079b50d902SRodney W. Grimes.It Ic undelete
7089b50d902SRodney W. Grimes.Pq Ic u
7099b50d902SRodney W. GrimesTakes a message list and marks each message as
71081135783SRuslan Ermilov.Em not
7119b50d902SRodney W. Grimesbeing deleted.
7129b50d902SRodney W. Grimes.It Ic unread
7139b50d902SRodney W. Grimes.Pq Ic U
7149b50d902SRodney W. GrimesTakes a message list and marks each message as
71581135783SRuslan Ermilov.Em not
7169b50d902SRodney W. Grimeshaving been read.
7179b50d902SRodney W. Grimes.It Ic unset
7189b50d902SRodney W. GrimesTakes a list of option names and discards their remembered values;
7199b50d902SRodney W. Grimesthe inverse of
7209b50d902SRodney W. Grimes.Ic set .
7219b50d902SRodney W. Grimes.It Ic visual
7229b50d902SRodney W. Grimes.Pq Ic v
7239b50d902SRodney W. GrimesTakes a message list and invokes the display editor on each message.
7249b50d902SRodney W. Grimes.It Ic write
7259b50d902SRodney W. Grimes.Pq Ic w
7269b50d902SRodney W. GrimesSimilar to
7279b50d902SRodney W. Grimes.Ic save ,
7289b50d902SRodney W. Grimesexcept that
72981135783SRuslan Ermilov.Em only
7309b50d902SRodney W. Grimesthe message body
73181135783SRuslan Ermilov.Em ( without
7329b50d902SRodney W. Grimesthe header) is saved.
7339b50d902SRodney W. GrimesExtremely useful for such tasks as sending and receiving source
7349b50d902SRodney W. Grimesprogram text over the message system.
7359b50d902SRodney W. Grimes.It Ic xit
7369b50d902SRodney W. Grimes.Pq Ic x
7379b50d902SRodney W. GrimesA synonym for
7389b50d902SRodney W. Grimes.Ic exit .
7399b50d902SRodney W. Grimes.It Ic z
740e8937ba0SPhilippe CharnierThe
741e8937ba0SPhilippe Charnier.Nm
742e8937ba0SPhilippe Charnierutility presents message headers in windowfuls as described under the
7439b50d902SRodney W. Grimes.Ic headers
7449b50d902SRodney W. Grimescommand.
7459b50d902SRodney W. GrimesYou can move
7468fe908efSRuslan Ermilov.Nm Ns 's
7479b50d902SRodney W. Grimesattention forward to the next window with the
74881135783SRuslan Ermilov.Ic z
7499b50d902SRodney W. Grimescommand.
7509b50d902SRodney W. GrimesAlso, you can move to the previous window by using
75181135783SRuslan Ermilov.Ic z\- .
7529b50d902SRodney W. Grimes.El
7539b50d902SRodney W. Grimes.Ss Tilde/Escapes
7549b50d902SRodney W. GrimesHere is a summary of the tilde escapes,
7559b50d902SRodney W. Grimeswhich are used when composing messages to perform
7569b50d902SRodney W. Grimesspecial functions.
7579b50d902SRodney W. GrimesTilde escapes are only recognized at the beginning
7589b50d902SRodney W. Grimesof lines.
7599b50d902SRodney W. GrimesThe name
76081135783SRuslan Ermilov.Dq "tilde escape"
7619b50d902SRodney W. Grimesis somewhat of a misnomer since the actual escape character can be set
7629b50d902SRodney W. Grimesby the option
76381135783SRuslan Ermilov.Va escape .
76481135783SRuslan Ermilov.Bl -tag -width indent
76581135783SRuslan Ermilov.It Ic ~a
76669131e40SMike HeffnerInserts the autograph string from the sign= option into the message.
76781135783SRuslan Ermilov.It Ic ~A
76869131e40SMike HeffnerInserts the autograph string from the Sign= option into the message.
76981135783SRuslan Ermilov.It Ic ~b Ar name ...
7709b50d902SRodney W. GrimesAdd the given names to the list of carbon copy recipients but do not make
77181135783SRuslan Ermilovthe names visible in the Cc: line
77281135783SRuslan Ermilov.Dq ( blind
77381135783SRuslan Ermilovcarbon copy).
77481135783SRuslan Ermilov.It Ic ~c Ar name ...
7759b50d902SRodney W. GrimesAdd the given names to the list of carbon copy recipients.
77681135783SRuslan Ermilov.It Ic ~d
7779b50d902SRodney W. GrimesRead the file
77881135783SRuslan Ermilov.Pa dead.letter
7799b50d902SRodney W. Grimesfrom your home directory into the message.
78081135783SRuslan Ermilov.It Ic ~e
7819b50d902SRodney W. GrimesInvoke the text editor on the message collected so far.
7829b50d902SRodney W. GrimesAfter the
7839b50d902SRodney W. Grimesediting session is finished, you may continue appending text to the
7849b50d902SRodney W. Grimesmessage.
78581135783SRuslan Ermilov.It Ic ~f Ar messages
7869b50d902SRodney W. GrimesRead the named messages into the message being sent.
7879b50d902SRodney W. GrimesIf no messages are specified, read in the current message.
7889b50d902SRodney W. GrimesMessage headers currently being ignored (by the
7899b50d902SRodney W. Grimes.Ic ignore
7909b50d902SRodney W. Grimesor
7919b50d902SRodney W. Grimes.Ic retain
7929b50d902SRodney W. Grimescommand) are not included.
79381135783SRuslan Ermilov.It Ic ~F Ar messages
7949b50d902SRodney W. GrimesIdentical to
79581135783SRuslan Ermilov.Ic ~f ,
7969b50d902SRodney W. Grimesexcept all message headers are included.
79781135783SRuslan Ermilov.It Ic ~h
7989b50d902SRodney W. GrimesEdit the message header fields by typing each one in turn and allowing
7999b50d902SRodney W. Grimesthe user to append text to the end or modify the field by using the
8009b50d902SRodney W. Grimescurrent terminal erase and kill characters.
80181135783SRuslan Ermilov.It Ic ~i Ar string
80269131e40SMike HeffnerInserts the value of the named option into the text of the message.
80381135783SRuslan Ermilov.It Ic ~m Ar messages
8049b50d902SRodney W. GrimesRead the named messages into the message being sent, indented by a
8059b50d902SRodney W. Grimestab or by the value of
80681135783SRuslan Ermilov.Va indentprefix .
8079b50d902SRodney W. GrimesIf no messages are specified,
8089b50d902SRodney W. Grimesread the current message.
8099b50d902SRodney W. GrimesMessage headers currently being ignored (by the
8109b50d902SRodney W. Grimes.Ic ignore
8119b50d902SRodney W. Grimesor
8129b50d902SRodney W. Grimes.Ic retain
8139b50d902SRodney W. Grimescommand) are not included.
81481135783SRuslan Ermilov.It Ic ~M Ar messages
8159b50d902SRodney W. GrimesIdentical to
81681135783SRuslan Ermilov.Ic ~m ,
8179b50d902SRodney W. Grimesexcept all message headers are included.
81881135783SRuslan Ermilov.It Ic ~p
8199b50d902SRodney W. GrimesPrint out the message collected so far, prefaced by the message header
8209b50d902SRodney W. Grimesfields.
82181135783SRuslan Ermilov.It Ic ~q
8229b50d902SRodney W. GrimesAbort the message being sent, copying the message to
82381135783SRuslan Ermilov.Pa dead.letter
8249b50d902SRodney W. Grimesin your home directory if
82581135783SRuslan Ermilov.Va save
8269b50d902SRodney W. Grimesis set.
82781135783SRuslan Ermilov.It Ic ~r Ar filename , Ic ~r Li \&! Ns Ar command
82881135783SRuslan Ermilov.It Ic ~< Ar filename , Ic ~< Li \&! Ns Ar command
8299b50d902SRodney W. GrimesRead the named file into the message.
83081135783SRuslan ErmilovIf the argument begins with a
83181135783SRuslan Ermilov.Ql \&! ,
83269131e40SMike Heffnerthe rest of the string is taken as an arbitrary system command and is
83369131e40SMike Heffnerexecuted, with the standard output inserted into the message.
83481135783SRuslan Ermilov.It Ic ~R Ar string
83599bd6601SJoerg WunschUse
83699bd6601SJoerg Wunsch.Ar string
83799bd6601SJoerg Wunschas the Reply-To field.
83881135783SRuslan Ermilov.It Ic ~s Ar string
8399b50d902SRodney W. GrimesCause the named string to become the current subject field.
84081135783SRuslan Ermilov.It Ic ~t Ar name ...
8419b50d902SRodney W. GrimesAdd the given names to the direct recipient list.
84281135783SRuslan Ermilov.It Ic ~v
843856f23edSMike HeffnerInvoke an alternative editor (defined by the
8449b50d902SRodney W. Grimes.Ev VISUAL
84557906e00SPhilippe Charnierenvironment variable) on the
8469b50d902SRodney W. Grimesmessage collected so far.
847856f23edSMike HeffnerUsually, the alternative editor will be a
8489b50d902SRodney W. Grimesscreen editor.
8499b50d902SRodney W. GrimesAfter you quit the editor, you may resume appending
8509b50d902SRodney W. Grimestext to the end of your message.
85181135783SRuslan Ermilov.It Ic ~w Ar filename
8529b50d902SRodney W. GrimesWrite the message onto the named file.
85381135783SRuslan Ermilov.It Ic ~x
85481135783SRuslan ErmilovExits as with
85581135783SRuslan Ermilov.Ic ~q ,
85681135783SRuslan Ermilovexcept the message is not saved in
85781135783SRuslan Ermilov.Pa dead.letter .
85881135783SRuslan Ermilov.It Ic ~! Ar command
85969131e40SMike HeffnerExecute the indicated shell command, then return to the message.
86081135783SRuslan Ermilov.It Ic ~| Ar command , Ic ~^ Ar command
8619b50d902SRodney W. GrimesPipe the message through the command as a filter.
8629b50d902SRodney W. GrimesIf the command gives
8639b50d902SRodney W. Grimesno output or terminates abnormally, retain the original text of the
8649b50d902SRodney W. Grimesmessage.
8659b50d902SRodney W. GrimesThe command
8669b50d902SRodney W. Grimes.Xr fmt 1
8679b50d902SRodney W. Grimesis often used as
86881135783SRuslan Ermilov.Ar command
8699b50d902SRodney W. Grimesto rejustify the message.
87081135783SRuslan Ermilov.It Ic ~: Ar mail-command , Ic ~_ Ar mail-command
87181135783SRuslan ErmilovExecute the given
87281135783SRuslan Ermilov.Nm
87381135783SRuslan Ermilovcommand.
8749b50d902SRodney W. GrimesNot all commands, however, are allowed.
87592739f56SMike Heffner.It Ic ~.
87692739f56SMike HeffnerSimulate end-of-file on input.
87792739f56SMike Heffner.It Ic ~?
87892739f56SMike HeffnerPrint a summary of the available command escapes.
87981135783SRuslan Ermilov.It Ic ~~ Ar string
88081135783SRuslan ErmilovInsert the string of text in the message prefaced by a single
88181135783SRuslan Ermilov.Ql ~ .
8829b50d902SRodney W. GrimesIf
8839b50d902SRodney W. Grimesyou have changed the escape character, then you should double
8849b50d902SRodney W. Grimesthat character in order to send it.
8859b50d902SRodney W. Grimes.El
88681135783SRuslan Ermilov.Ss "Mail Options"
887d1821d3dSMike HeffnerOptions can be set with the
8889b50d902SRodney W. Grimes.Ic set
889d1821d3dSMike Heffnercommand
890d1821d3dSMike Heffnerand can be disabled with the
8919b50d902SRodney W. Grimes.Ic unset
892d1821d3dSMike Heffneror
893d1821d3dSMike Heffner.Ic set Cm no Ns Ar name
8949b50d902SRodney W. Grimescommands.
8959b50d902SRodney W. GrimesOptions may be either binary, in which case it is only
8969b50d902SRodney W. Grimessignificant to see whether they are set or not; or string, in which
8979b50d902SRodney W. Grimescase the actual value is of interest.
89859c3f4f7SMike HeffnerIf an option is not set,
89959c3f4f7SMike Heffner.Nm
90059c3f4f7SMike Heffnerwill look for an environment variable of the same name.
90143acc706SMike HeffnerThe available options include the following:
9023e048b59SRuslan Ermilov.Bl -tag -width indent
90381135783SRuslan Ermilov.It Va append
9049b50d902SRodney W. GrimesCauses messages saved in
90581135783SRuslan Ermilov.Pa mbox
9069b50d902SRodney W. Grimesto be appended to the end rather than prepended.
907e9b074c3SJordan K. HubbardThis should always be set (preferably in one of the system-wide
908e9b074c3SJordan K. Hubbard.Pa mail.rc
909e9b074c3SJordan K. Hubbardfiles).
910d1821d3dSMike HeffnerDefault is
911d1821d3dSMike Heffner.Va noappend .
91281135783SRuslan Ermilov.It Va ask , asksub
9139b50d902SRodney W. GrimesCauses
9148fe908efSRuslan Ermilov.Nm
9159b50d902SRodney W. Grimesto prompt you for the subject of each message you send.
9169b50d902SRodney W. GrimesIf
9179b50d902SRodney W. Grimesyou respond with simply a newline, no subject field will be sent.
918d1821d3dSMike HeffnerDefault is
919d1821d3dSMike Heffner.Va asksub .
92081135783SRuslan Ermilov.It Va askbcc
921856f23edSMike HeffnerCauses you to be prompted for additional blind carbon copy recipients at the
922856f23edSMike Heffnerend of each message.
923856f23edSMike HeffnerResponding with a newline indicates your
924856f23edSMike Heffnersatisfaction with the current list.
925d1821d3dSMike HeffnerDefault is
926d1821d3dSMike Heffner.Va noaskbcc .
92781135783SRuslan Ermilov.It Va askcc
9289b50d902SRodney W. GrimesCauses you to be prompted for additional carbon copy recipients at the
9299b50d902SRodney W. Grimesend of each message.
9309b50d902SRodney W. GrimesResponding with a newline indicates your
9319b50d902SRodney W. Grimessatisfaction with the current list.
932d1821d3dSMike HeffnerDefault is
933d1821d3dSMike Heffner.Va noaskcc .
93481135783SRuslan Ermilov.It Va autoinc
935856f23edSMike HeffnerCauses new mail to be automatically incorporated when it arrives.
936856f23edSMike HeffnerSetting this is similar to issuing the
937856f23edSMike Heffner.Ic inc
938856f23edSMike Heffnercommand at each prompt, except that the current message is not
939856f23edSMike Heffnerreset when new mail arrives.
940d1821d3dSMike HeffnerDefault is
941d1821d3dSMike Heffner.Va noautoinc .
94281135783SRuslan Ermilov.It Va autoprint
9439b50d902SRodney W. GrimesCauses the
9449b50d902SRodney W. Grimes.Ic delete
9459b50d902SRodney W. Grimescommand to behave like
94681135783SRuslan Ermilov.Ic dp ;
94781135783SRuslan Ermilovthus, after deleting a message, the next one will be typed
9489b50d902SRodney W. Grimesautomatically.
949d1821d3dSMike HeffnerDefault is
950d1821d3dSMike Heffner.Va noautoprint .
951d1821d3dSMike Heffner.It Va crt
952d1821d3dSMike HeffnerThe valued option
953d1821d3dSMike Heffner.Va crt
954d1821d3dSMike Heffneris used as a threshold to determine how long a message must
955d1821d3dSMike Heffnerbe before
956d1821d3dSMike Heffner.Ev PAGER
957d1821d3dSMike Heffneris used to read it.
958d1821d3dSMike HeffnerIf
959d1821d3dSMike Heffner.Va crt
960d1821d3dSMike Heffneris set without a value,
961d1821d3dSMike Heffnerthen the height of the terminal screen stored in the system
962d1821d3dSMike Heffneris used to compute the threshold (see
963d1821d3dSMike Heffner.Xr stty 1 ) .
964d1821d3dSMike HeffnerDefault is
965d1821d3dSMike Heffner.Va nocrt .
96681135783SRuslan Ermilov.It Va debug
9679b50d902SRodney W. GrimesSetting the binary option
96881135783SRuslan Ermilov.Va debug
9699b50d902SRodney W. Grimesis the same as specifying
9709b50d902SRodney W. Grimes.Fl d
9719b50d902SRodney W. Grimeson the command line and causes
9728fe908efSRuslan Ermilov.Nm
9739b50d902SRodney W. Grimesto output all sorts of information useful for debugging
9748fe908efSRuslan Ermilov.Nm .
9756fcf85bcSYaroslav TykhiyIn case
9766fcf85bcSYaroslav Tykhiy.Nm
9776fcf85bcSYaroslav Tykhiyis invoked in this mode to send mail, all preparations
9786fcf85bcSYaroslav Tykhiywill be performed and reported about, but the mail will
9796fcf85bcSYaroslav Tykhiynot be actually sent.
980d1821d3dSMike HeffnerDefault is
981d1821d3dSMike Heffner.Va nodebug .
98281135783SRuslan Ermilov.It Va dot
9839b50d902SRodney W. GrimesThe binary option
98481135783SRuslan Ermilov.Va dot
9859b50d902SRodney W. Grimescauses
9868fe908efSRuslan Ermilov.Nm
9879b50d902SRodney W. Grimesto interpret a period alone on a line as the terminator
9889b50d902SRodney W. Grimesof a message you are sending.
989d1821d3dSMike HeffnerDefault is
990d1821d3dSMike Heffner.Va nodot .
991d1821d3dSMike Heffner.It Va escape
992d1821d3dSMike HeffnerIf defined, the first character of this option gives the character to
993d1821d3dSMike Heffneruse in place of
994d1821d3dSMike Heffner.Ql ~
995d1821d3dSMike Heffnerto denote escapes.
9960077673eSMike Heffner.It Va flipr
9970077673eSMike HeffnerReverses the sense of
9980077673eSMike Heffner.Ic reply
9990077673eSMike Heffnerand
10000077673eSMike Heffner.Ic Reply
10010077673eSMike Heffnercommands.
10020077673eSMike HeffnerDefault is
10030077673eSMike Heffner.Va noflipr .
1004d1821d3dSMike Heffner.It Va folder
1005d1821d3dSMike HeffnerThe name of the directory to use for storing folders of
1006d1821d3dSMike Heffnermessages.
1007d1821d3dSMike HeffnerIf this name begins with a
1008d1821d3dSMike Heffner.Ql / ,
1009d1821d3dSMike Heffner.Nm
1010d1821d3dSMike Heffnerconsiders it to be an absolute pathname; otherwise, the
1011d1821d3dSMike Heffnerfolder directory is found relative to your home directory.
1012d1821d3dSMike Heffner.It Va header
1013d1821d3dSMike HeffnerIf defined, initially display message headers when reading mail or
1014d1821d3dSMike Heffnerediting a mail folder.
1015d1821d3dSMike HeffnerDefault is
1016d1821d3dSMike Heffner.Va header .
1017d1821d3dSMike HeffnerThis option can be disabled by giving the
1018d1821d3dSMike Heffner.Fl N
1019d1821d3dSMike Heffnerflag on the command line.
102081135783SRuslan Ermilov.It Va hold
10219b50d902SRodney W. GrimesThis option is used to hold messages in the system mailbox
10229b50d902SRodney W. Grimesby default.
1023d1821d3dSMike HeffnerDefault is
1024d1821d3dSMike Heffner.Va nohold .
102581135783SRuslan Ermilov.It Va ignore
10269b50d902SRodney W. GrimesCauses interrupt signals from your terminal to be ignored and echoed as
102781135783SRuslan Ermilov.Li @ Ns 's.
1028d1821d3dSMike HeffnerDefault is
1029d1821d3dSMike Heffner.Va noignore .
103081135783SRuslan Ermilov.It Va ignoreeof
10319b50d902SRodney W. GrimesAn option related to
103281135783SRuslan Ermilov.Va dot
10339b50d902SRodney W. Grimesis
103481135783SRuslan Ermilov.Va ignoreeof
10359b50d902SRodney W. Grimeswhich makes
10368fe908efSRuslan Ermilov.Nm
103781135783SRuslan Ermilovrefuse to accept a
103881135783SRuslan Ermilov.Aq Li control-D
103981135783SRuslan Ermilovas the end of a message.
10409b50d902SRodney W. Grimes.Ar Ignoreeof
10419b50d902SRodney W. Grimesalso applies to
10428fe908efSRuslan Ermilov.Nm
10439b50d902SRodney W. Grimescommand mode.
1044d1821d3dSMike HeffnerDefault is
1045d1821d3dSMike Heffner.Va noignoreeof .
1046d1821d3dSMike Heffner.It Va indentprefix
1047d1821d3dSMike HeffnerString used by the
1048d1821d3dSMike Heffner.Ic ~m
1049d1821d3dSMike Heffnertilde escape for indenting messages, in place of
1050d1821d3dSMike Heffnerthe normal tab character
1051d1821d3dSMike Heffner.Pq Li ^I .
1052d1821d3dSMike HeffnerBe sure to quote the value if it contains
1053d1821d3dSMike Heffnerspaces or tabs.
105481135783SRuslan Ermilov.It Va metoo
10559b50d902SRodney W. GrimesUsually, when a group is expanded that contains the sender, the sender
10569b50d902SRodney W. Grimesis removed from the expansion.
10579b50d902SRodney W. GrimesSetting this option causes the sender
10589b50d902SRodney W. Grimesto be included in the group.
1059d1821d3dSMike HeffnerDefault is
1060d1821d3dSMike Heffner.Va nometoo .
1061d1821d3dSMike Heffner.It Va quiet
1062d1821d3dSMike HeffnerSuppresses the printing of the version when first invoked.
1063d1821d3dSMike HeffnerDefault is
1064d1821d3dSMike Heffner.Va noquiet .
1065d1821d3dSMike Heffner.It Va record
1066d1821d3dSMike HeffnerIf defined, gives the pathname of the file used to record all outgoing
1067d1821d3dSMike Heffnermail.
1068d1821d3dSMike HeffnerIf not defined, outgoing mail is not saved.
1069d1821d3dSMike HeffnerDefault is
1070d1821d3dSMike Heffner.Va norecord .
107181135783SRuslan Ermilov.It Va Replyall
10729b50d902SRodney W. GrimesReverses the sense of
10739b50d902SRodney W. Grimes.Ic reply
10749b50d902SRodney W. Grimesand
10759b50d902SRodney W. Grimes.Ic Reply
10769b50d902SRodney W. Grimescommands.
1077d1821d3dSMike HeffnerDefault is
1078d1821d3dSMike Heffner.Va noReplyall .
1079d1821d3dSMike Heffner.It Va save
1080d1821d3dSMike HeffnerIf this option is set, and you abort a message with two
1081d1821d3dSMike Heffner.Tn RUBOUT
1082d1821d3dSMike Heffner(erase or delete),
1083d1821d3dSMike Heffner.Nm
1084d1821d3dSMike Heffnerwill copy the partial letter to the file
1085d1821d3dSMike Heffner.Pa dead.letter
1086d1821d3dSMike Heffnerin your home directory.
1087d1821d3dSMike HeffnerDefault is
1088d1821d3dSMike Heffner.Va save .
108981135783SRuslan Ermilov.It Va searchheaders
1090856f23edSMike HeffnerIf this option is set, then a message-list specifier in the form
1091dae6dcb7SBaptiste Daroussin.Dq Li / Ns Ar x Ns : Ns Ar y
1092856f23edSMike Heffnerwill expand to all messages containing the substring
109381135783SRuslan Ermilov.Ar y
1094856f23edSMike Heffnerin the header field
109581135783SRuslan Ermilov.Ar x .
1096856f23edSMike HeffnerThe string search is case insensitive.
1097856f23edSMike HeffnerIf
109881135783SRuslan Ermilov.Ar x
10997f61ad1cSMaxim Konovalovis omitted, it will default to the
1100856f23edSMike Heffner.Dq Li Subject
1101856f23edSMike Heffnerheader field.
1102856f23edSMike HeffnerThe form
1103856f23edSMike Heffner.Dq Li /to: Ns Ar y
1104856f23edSMike Heffneris a special case, and will expand
1105856f23edSMike Heffnerto all messages containing the substring
110681135783SRuslan Ermilov.Ar y
1107856f23edSMike Heffnerin the
1108856f23edSMike Heffner.Dq Li To ,
1109856f23edSMike Heffner.Dq Li Cc
1110856f23edSMike Heffneror
1111856f23edSMike Heffner.Dq Li Bcc
1112856f23edSMike Heffnerheader fields.
1113856f23edSMike HeffnerThe check for
1114856f23edSMike Heffner.Qq Li "to"
1115856f23edSMike Heffneris case sensitive, so that
111627c7d5ffSMike Heffner.Dq Li /To: Ns Ar y
1117856f23edSMike Heffnercan be used to limit the search for
111881135783SRuslan Ermilov.Ar y
1119856f23edSMike Heffnerto just the
1120856f23edSMike Heffner.Dq Li To:
1121856f23edSMike Heffnerfield.
1122d1821d3dSMike HeffnerDefault is
1123d1821d3dSMike Heffner.Va nosearchheaders .
1124d1821d3dSMike Heffner.It Va toplines
1125d1821d3dSMike HeffnerIf defined, gives the number of lines of a message to be printed out
1126d1821d3dSMike Heffnerwith the
1127d1821d3dSMike Heffner.Ic top
1128d1821d3dSMike Heffnercommand; normally, the first five lines are printed.
112981135783SRuslan Ermilov.It Va verbose
11309b50d902SRodney W. GrimesSetting the option
113181135783SRuslan Ermilov.Va verbose
11329b50d902SRodney W. Grimesis the same as using the
11339b50d902SRodney W. Grimes.Fl v
11349b50d902SRodney W. Grimesflag on the command line.
113581135783SRuslan ErmilovWhen
113681135783SRuslan Ermilov.Nm
113781135783SRuslan Ermilovruns in verbose mode,
11389b50d902SRodney W. Grimesthe actual delivery of messages is displayed on the user's
11399b50d902SRodney W. Grimesterminal.
1140d1821d3dSMike HeffnerDefault is
1141d1821d3dSMike Heffner.Va noverbose .
11429b50d902SRodney W. Grimes.El
1143d1821d3dSMike Heffner.Sh ENVIRONMENT
1144d1821d3dSMike Heffner.Bl -tag -width ".Ev REPLYTO"
1145d1821d3dSMike Heffner.It Ev DEAD
1146d1821d3dSMike HeffnerPathname of the file to save partial messages to in case of interrupts
1147d1821d3dSMike Heffneror delivery errors.
1148d1821d3dSMike HeffnerDefault is
1149d1821d3dSMike Heffner.Pa ~/dead.letter .
11509b50d902SRodney W. Grimes.It Ev EDITOR
11519b50d902SRodney W. GrimesPathname of the text editor to use in the
11529b50d902SRodney W. Grimes.Ic edit
11539b50d902SRodney W. Grimescommand and
115481135783SRuslan Ermilov.Ic ~e
11559b50d902SRodney W. Grimesescape.
11569b50d902SRodney W. GrimesIf not defined, then a default editor is used.
1157d1821d3dSMike Heffner.It Ev HOME
1158d1821d3dSMike HeffnerPathname of the user's home directory.
11599b50d902SRodney W. Grimes.It Ev LISTER
11609b50d902SRodney W. GrimesPathname of the directory lister to use in the
11619b50d902SRodney W. Grimes.Ic folders
11629b50d902SRodney W. Grimescommand.
11639b50d902SRodney W. GrimesDefault is
11649b50d902SRodney W. Grimes.Pa /bin/ls .
1165d1821d3dSMike Heffner.It Ev MAIL
1166d1821d3dSMike HeffnerLocation of the user's mailbox.
1167d1821d3dSMike HeffnerDefault is
1168d1821d3dSMike Heffner.Pa /var/mail .
1169d1821d3dSMike Heffner.It Ev MAILRC
1170d1821d3dSMike HeffnerPathname of file containing initial
1171d1821d3dSMike Heffner.Nm
1172d1821d3dSMike Heffnercommands.
1173d1821d3dSMike HeffnerDefault is
1174d1821d3dSMike Heffner.Pa ~/.mailrc .
1175d1821d3dSMike Heffner.It Ev MBOX
1176d1821d3dSMike HeffnerThe name of the mailbox file.
1177d1821d3dSMike HeffnerIt can be the name of a folder.
1178d1821d3dSMike HeffnerThe default is
1179d1821d3dSMike Heffner.Pa mbox
1180d1821d3dSMike Heffnerin the user's home directory.
11819b50d902SRodney W. Grimes.It Ev PAGER
11829b50d902SRodney W. GrimesPathname of the program to use in the
11839b50d902SRodney W. Grimes.Ic more
11849b50d902SRodney W. Grimescommand or when
118581135783SRuslan Ermilov.Va crt
11869b50d902SRodney W. Grimesvariable is set.
11879b50d902SRodney W. GrimesThe default paginator
1188*47cc9ee1SAlan Somers.Xr less 1
11899b50d902SRodney W. Grimesis used if this option is not defined.
119099bd6601SJoerg Wunsch.It Ev REPLYTO
119199bd6601SJoerg WunschIf set, will be used to initialize the Reply-To field for outgoing
119299bd6601SJoerg Wunschmessages.
11939b50d902SRodney W. Grimes.It Ev SHELL
11949b50d902SRodney W. GrimesPathname of the shell to use in the
1195856f23edSMike Heffner.Ic \&!
11969b50d902SRodney W. Grimescommand and the
119781135783SRuslan Ermilov.Ic ~!
11989b50d902SRodney W. Grimesescape.
11999b50d902SRodney W. GrimesA default shell is used if this option is
12009b50d902SRodney W. Grimesnot defined.
1201f0982ce2SDiomidis Spinellis.It Ev TMPDIR
1202f0982ce2SDiomidis SpinellisPathname of the directory used for creating temporary files.
12039b50d902SRodney W. Grimes.It Ev VISUAL
12049b50d902SRodney W. GrimesPathname of the text editor to use in the
12059b50d902SRodney W. Grimes.Ic visual
12069b50d902SRodney W. Grimescommand and
120781135783SRuslan Ermilov.Ic ~v
12089b50d902SRodney W. Grimesescape.
1209d1821d3dSMike Heffner.It Ev USER
1210d1821d3dSMike HeffnerLogin name of the user executing mail.
12119b50d902SRodney W. Grimes.El
12129b50d902SRodney W. Grimes.Sh FILES
121381135783SRuslan Ermilov.Bl -tag -width ".Pa /usr/share/misc/mail.*help" -compact
1214ec07fbefSMark Murray.It Pa /var/mail/*
12159b50d902SRodney W. GrimesPost office.
1216d0353b83SRuslan Ermilov.It Pa ~/mbox
12179b50d902SRodney W. GrimesUser's old mail.
1218d0353b83SRuslan Ermilov.It Pa ~/.mailrc
121981135783SRuslan ErmilovFile giving initial
122081135783SRuslan Ermilov.Nm
122181135783SRuslan Ermilovcommands.
1222856f23edSMike HeffnerThis can be overridden by setting the
1223856f23edSMike Heffner.Ev MAILRC
1224856f23edSMike Heffnerenvironment variable.
12259b50d902SRodney W. Grimes.It Pa /tmp/R*
12269b50d902SRodney W. GrimesTemporary files.
1227e9b074c3SJordan K. Hubbard.It Pa /usr/share/misc/mail.*help
12289b50d902SRodney W. GrimesHelp files.
1229726b61abSRuslan Ermilov.Pp
1230e9b074c3SJordan K. Hubbard.It Pa /usr/share/misc/mail.rc
1231e9b074c3SJordan K. Hubbard.It Pa /usr/local/etc/mail.rc
1232000ee932SWolfram Schneider.It Pa /etc/mail.rc
123387faa07bSSheldon HearnSystem-wide initialization files.
123487faa07bSSheldon HearnEach file will be sourced, in order,
1235e9b074c3SJordan K. Hubbardif it exists.
12369b50d902SRodney W. Grimes.El
12379b50d902SRodney W. Grimes.Sh SEE ALSO
12389b50d902SRodney W. Grimes.Xr fmt 1 ,
12399b50d902SRodney W. Grimes.Xr newaliases 1 ,
12409b50d902SRodney W. Grimes.Xr vacation 1 ,
12419b50d902SRodney W. Grimes.Xr aliases 5 ,
12429b50d902SRodney W. Grimes.Xr sendmail 8
12439b50d902SRodney W. Grimes.Sh HISTORY
12449b50d902SRodney W. GrimesA
1245b8923d4cSWolfram Schneider.Nm
12469b50d902SRodney W. Grimescommand
12479b50d902SRodney W. Grimesappeared in
1248b8923d4cSWolfram Schneider.At v1 .
12499b50d902SRodney W. GrimesThis man page is derived from
12509b50d902SRodney W. Grimes.%T "The Mail Reference Manual"
125181135783SRuslan Ermilovoriginally written by
125281135783SRuslan Ermilov.An Kurt Shoens .
12539b50d902SRodney W. Grimes.Sh BUGS
12549b50d902SRodney W. GrimesThere are some flags that are not documented here.
12559b50d902SRodney W. GrimesMost are
12569b50d902SRodney W. Grimesnot useful to the general user.
12579b50d902SRodney W. Grimes.Pp
12589b50d902SRodney W. GrimesUsually,
12598fe908efSRuslan Ermilov.Nm
12609b50d902SRodney W. Grimesis just a link to
126194ef258fSMike Heffner.Nm Mail
126294ef258fSMike Heffnerand
126394ef258fSMike Heffner.Nm mailx ,
12649b50d902SRodney W. Grimeswhich can be confusing.
1265856f23edSMike Heffner.Pp
1266856f23edSMike HeffnerThe name of the
1267856f23edSMike Heffner.Ic alternates
1268856f23edSMike Heffnerlist is incorrect English (it should be
1269856f23edSMike Heffner.Dq alternatives ) ,
1270856f23edSMike Heffnerbut is retained for compatibility.
1271