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. 129b50d902SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 139b50d902SRodney W. Grimes.\" must display the following acknowledgement: 149b50d902SRodney W. Grimes.\" This product includes software developed by the University of 159b50d902SRodney W. Grimes.\" California, Berkeley and its contributors. 169b50d902SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 179b50d902SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 189b50d902SRodney W. Grimes.\" without specific prior written permission. 199b50d902SRodney W. Grimes.\" 209b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 219b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 229b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 239b50d902SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 249b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 259b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 269b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 279b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 289b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 299b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 309b50d902SRodney W. Grimes.\" SUCH DAMAGE. 319b50d902SRodney W. Grimes.\" 32856f23edSMike Heffner.\" @(#)mail.1 8.8 (Berkeley) 4/28/95 33c3aac50fSPeter Wemm.\" $FreeBSD$ 349b50d902SRodney W. Grimes.\" 35856f23edSMike Heffner.Dd April 28, 1995 369b50d902SRodney W. Grimes.Dt MAIL 1 3762500372SRuslan Ermilov.Os 389b50d902SRodney W. Grimes.Sh NAME 39856f23edSMike Heffner.Nm mail , 40856f23edSMike Heffner.Nm Mail 419b50d902SRodney W. Grimes.Nd send and receive mail 429b50d902SRodney W. Grimes.Sh SYNOPSIS 438fe908efSRuslan Ermilov.Nm 44dcd24e27SMike Heffner.Op Fl EiInv 459b50d902SRodney W. Grimes.Op Fl s Ar subject 469b50d902SRodney W. Grimes.Op Fl c Ar cc-addr 479b50d902SRodney W. Grimes.Op Fl b Ar bcc-addr 489b50d902SRodney W. Grimes.Ar to-addr ... 4981135783SRuslan Ermilov.Op Fl Ar sendmail-option ... 508fe908efSRuslan Ermilov.Nm 51dcd24e27SMike Heffner.Op Fl EiInNv 529b50d902SRodney W. Grimes.Fl f 539b50d902SRodney W. Grimes.Op Ar name 548fe908efSRuslan Ermilov.Nm 55dcd24e27SMike Heffner.Op Fl EiInNv 569b50d902SRodney W. Grimes.Op Fl u Ar user 579b50d902SRodney W. Grimes.Sh INTRODUCTION 589b50d902SRodney W. Grimes.Nm Mail 599b50d902SRodney W. Grimesis an intelligent mail processing system, which has 609b50d902SRodney W. Grimesa command syntax reminiscent of 6181135783SRuslan Ermilov.Xr ed 1 629b50d902SRodney W. Grimeswith lines replaced by messages. 633e048b59SRuslan Ermilov.Bl -tag -width indent 649b50d902SRodney W. Grimes.It Fl v 659b50d902SRodney W. GrimesVerbose mode. 669b50d902SRodney W. GrimesThe details of 679b50d902SRodney W. Grimesdelivery are displayed on the user's terminal. 68dcd24e27SMike Heffner.It Fl E 69b7cd452dSRuslan ErmilovDo not send messages with an empty body. 70b7cd452dSRuslan ErmilovThis is useful for piping errors from 71b7cd452dSRuslan Ermilov.Xr cron 8 72b7cd452dSRuslan Ermilovscripts. 739b50d902SRodney W. Grimes.It Fl i 749b50d902SRodney W. GrimesIgnore tty interrupt signals. 759b50d902SRodney W. GrimesThis is 769b50d902SRodney W. Grimesparticularly useful when using 778fe908efSRuslan Ermilov.Nm 789b50d902SRodney W. Grimeson noisy phone lines. 799b50d902SRodney W. Grimes.It Fl I 8081135783SRuslan ErmilovForces 8181135783SRuslan Ermilov.Nm 8281135783SRuslan Ermilovto run in interactive mode even when 83b7cd452dSRuslan Ermilovinput is not a terminal. 849b50d902SRodney W. GrimesIn particular, the 8581135783SRuslan Ermilov.Ql ~ 869b50d902SRodney W. Grimesspecial 879b50d902SRodney W. Grimescharacter when sending mail is only active in interactive mode. 889b50d902SRodney W. Grimes.It Fl n 89e9b074c3SJordan K. HubbardInhibits reading the system-wide 90e9b074c3SJordan K. Hubbard.Pa mail.rc 91e9b074c3SJordan K. Hubbardfiles upon startup. 929b50d902SRodney W. Grimes.It Fl N 939b50d902SRodney W. GrimesInhibits the initial display of message headers 949b50d902SRodney W. Grimeswhen reading mail or editing a mail folder. 959b50d902SRodney W. Grimes.It Fl s 9681135783SRuslan ErmilovSpecify subject on command line. 9781135783SRuslan Ermilov(Only the first argument after the 989b50d902SRodney W. Grimes.Fl s 999b50d902SRodney W. Grimesflag is used as a subject; be careful to quote subjects 1009b50d902SRodney W. Grimescontaining spaces.) 1019b50d902SRodney W. Grimes.It Fl c 1029b50d902SRodney W. GrimesSend carbon copies to 10381135783SRuslan Ermilov.Ar cc-addr 10481135783SRuslan Ermilovlist of users. 1059b50d902SRodney W. Grimes.It Fl b 1069b50d902SRodney W. GrimesSend blind carbon copies to 10781135783SRuslan Ermilov.Ar bcc-addr . 1089b50d902SRodney W. GrimesList should be a comma-separated list of names. 1099b50d902SRodney W. Grimes.It Fl f 1109b50d902SRodney W. GrimesRead in the contents of your 11181135783SRuslan Ermilov.Pa mbox 1129b50d902SRodney W. Grimes(or the specified file) 1139b50d902SRodney W. Grimesfor processing; when you 11481135783SRuslan Ermilov.Ic quit , 1158fe908efSRuslan Ermilov.Nm 1169b50d902SRodney W. Grimeswrites undeleted messages back to this file. 1179b50d902SRodney W. Grimes.It Fl u 1189b50d902SRodney W. GrimesIs equivalent to: 1199b50d902SRodney W. Grimes.Pp 12081135783SRuslan Ermilov.Dl "mail -f /var/mail/user" 1219b50d902SRodney W. Grimes.El 12281135783SRuslan Ermilov.Ss "Startup Actions" 123727c1440SJoseph KoshyAt startup time 124727c1440SJoseph Koshy.Nm 125727c1440SJoseph Koshywill execute commands in the system command files 126727c1440SJoseph Koshy.Pa /usr/share/misc/mail.rc , 127727c1440SJoseph Koshy.Pa /usr/local/etc/mail.rc 128727c1440SJoseph Koshyand 129727c1440SJoseph Koshy.Pa /etc/mail.rc 130727c1440SJoseph Koshyin order, unless explicitly told not to by the use of the 131727c1440SJoseph Koshy.Fl n 132727c1440SJoseph Koshyoption. 133727c1440SJoseph KoshyNext, the commands in the user's personal command file 134727c1440SJoseph Koshy.Pa ~/.mailrc 135727c1440SJoseph Koshyare executed. 136727c1440SJoseph Koshy.Nm 137727c1440SJoseph Koshythen examines its command line options to determine whether a 138727c1440SJoseph Koshynew message is to be sent, or whether an existing mailbox is to 139727c1440SJoseph Koshybe read. 14081135783SRuslan Ermilov.Ss "Sending Mail" 1419b50d902SRodney W. GrimesTo send a message to one or more people, 1428fe908efSRuslan Ermilov.Nm 1439b50d902SRodney W. Grimescan be invoked with arguments which are the names of people to 1449b50d902SRodney W. Grimeswhom the mail will be sent. 1459b50d902SRodney W. GrimesYou are then expected to type in 1469b50d902SRodney W. Grimesyour message, followed 147f3456b7eSJames Raynardby a 14881135783SRuslan Ermilov.Aq Li control-D 1499b50d902SRodney W. Grimesat the beginning of a line. 1509b50d902SRodney W. GrimesThe section below 15181135783SRuslan Ermilov.Sx "Replying To or Originating Mail" , 1529b50d902SRodney W. Grimesdescribes some features of 1538fe908efSRuslan Ermilov.Nm 1549b50d902SRodney W. Grimesavailable to help you compose your letter. 15581135783SRuslan Ermilov.Ss "Reading Mail" 1569b50d902SRodney W. GrimesIn normal usage 1578fe908efSRuslan Ermilov.Nm 1589b50d902SRodney W. Grimesis given no arguments and checks your mail out of the 1599b50d902SRodney W. Grimespost office, then 1609b50d902SRodney W. Grimesprints out a one line header of each message found. 1619b50d902SRodney W. GrimesThe current message is initially the first message (numbered 1) 1629b50d902SRodney W. Grimesand can be printed using the 1639b50d902SRodney W. Grimes.Ic print 1649b50d902SRodney W. Grimescommand (which can be abbreviated 16581135783SRuslan Ermilov.Ic p ) . 1669b50d902SRodney W. GrimesYou can move among the messages much as you move between lines in 16781135783SRuslan Ermilov.Xr ed 1 , 1689b50d902SRodney W. Grimeswith the commands 16981135783SRuslan Ermilov.Ic + 1709b50d902SRodney W. Grimesand 17181135783SRuslan Ermilov.Ic \- 1729b50d902SRodney W. Grimesmoving backwards and forwards, and 1739b50d902SRodney W. Grimessimple numbers. 17481135783SRuslan Ermilov.Ss "Disposing of Mail" 1759b50d902SRodney W. GrimesAfter examining a message you can 1769b50d902SRodney W. Grimes.Ic delete 177f3456b7eSJames Raynard.Pq Ic d 1789b50d902SRodney W. Grimesthe message or 1799b50d902SRodney W. Grimes.Ic reply 180f3456b7eSJames Raynard.Pq Ic r 1819b50d902SRodney W. Grimesto it. 1829b50d902SRodney W. GrimesDeletion causes the 1838fe908efSRuslan Ermilov.Nm 1849b50d902SRodney W. Grimesprogram to forget about the message. 1859b50d902SRodney W. GrimesThis is not irreversible; the message can be 1869b50d902SRodney W. Grimes.Ic undeleted 187f3456b7eSJames Raynard.Pq Ic u 1889b50d902SRodney W. Grimesby giving its number, or the 1898fe908efSRuslan Ermilov.Nm 1909b50d902SRodney W. Grimessession can be aborted by giving the 1919b50d902SRodney W. Grimes.Ic exit 192f3456b7eSJames Raynard.Pq Ic x 1939b50d902SRodney W. Grimescommand. 1949b50d902SRodney W. GrimesDeleted messages will, however, usually disappear never to be seen again. 19581135783SRuslan Ermilov.Ss "Specifying Messages" 1969b50d902SRodney W. GrimesCommands such as 1979b50d902SRodney W. Grimes.Ic print 1989b50d902SRodney W. Grimesand 1999b50d902SRodney W. Grimes.Ic delete 2009b50d902SRodney W. Grimescan be given a list of message numbers as arguments to apply 2019b50d902SRodney W. Grimesto a number of messages at once. 2029b50d902SRodney W. GrimesThus 20381135783SRuslan Ermilov.Dq Li "delete 1 2" 2049b50d902SRodney W. Grimesdeletes messages 1 and 2, while 20581135783SRuslan Ermilov.Dq Li "delete 1\-5" 2069b50d902SRodney W. Grimesdeletes messages 1 through 5. 2079b50d902SRodney W. GrimesThe special name 20881135783SRuslan Ermilov.Ql * 2099b50d902SRodney W. Grimesaddresses all messages, and 21081135783SRuslan Ermilov.Ql $ 2119b50d902SRodney W. Grimesaddresses 2129b50d902SRodney W. Grimesthe last message; thus the command 2139b50d902SRodney W. Grimes.Ic top 2149b50d902SRodney W. Grimeswhich prints the first few lines of a message could be used in 21581135783SRuslan Ermilov.Dq Li "top *" 2169b50d902SRodney W. Grimesto print the first few lines of all messages. 21781135783SRuslan Ermilov.Ss "Replying To or Originating Mail" 2189b50d902SRodney W. GrimesYou can use the 2199b50d902SRodney W. Grimes.Ic reply 2209b50d902SRodney W. Grimescommand to 2219b50d902SRodney W. Grimesset up a response to a message, sending it back to the 2229b50d902SRodney W. Grimesperson who it was from. 2239b50d902SRodney W. GrimesText you then type in, up to an end-of-file, 2249b50d902SRodney W. Grimesdefines the contents of the message. 2259b50d902SRodney W. GrimesWhile you are composing a message, 2268fe908efSRuslan Ermilov.Nm 2279b50d902SRodney W. Grimestreats lines beginning with the character 22881135783SRuslan Ermilov.Ql ~ 2299b50d902SRodney W. Grimesspecially. 2309b50d902SRodney W. GrimesFor instance, typing 23181135783SRuslan Ermilov.Ic ~m 2329b50d902SRodney W. Grimes(alone on a line) will place a copy 2339b50d902SRodney W. Grimesof the current message into the response right shifting it by a tabstop 2349b50d902SRodney W. Grimes(see 23581135783SRuslan Ermilov.Va indentprefix 2369b50d902SRodney W. Grimesvariable, below). 2379b50d902SRodney W. GrimesOther escapes will set up subject fields, add and delete recipients 2389b50d902SRodney W. Grimesto the message and allow you to escape to an editor to revise the 2399b50d902SRodney W. Grimesmessage or to a shell to run some commands. 2409b50d902SRodney W. Grimes(These options 2419b50d902SRodney W. Grimesare given in the summary below.) 24281135783SRuslan Ermilov.Ss "Ending a Mail Processing Session" 2439b50d902SRodney W. GrimesYou can end a 2448fe908efSRuslan Ermilov.Nm 2459b50d902SRodney W. Grimessession with the 2469b50d902SRodney W. Grimes.Ic quit 247f3456b7eSJames Raynard.Pq Ic q 2489b50d902SRodney W. Grimescommand. 2499b50d902SRodney W. GrimesMessages which have been examined go to your 25081135783SRuslan Ermilov.Pa mbox 2519b50d902SRodney W. Grimesfile unless they have been deleted in which case they are discarded. 2529b50d902SRodney W. GrimesUnexamined messages go back to the post office. 2539b50d902SRodney W. Grimes(See the 2549b50d902SRodney W. Grimes.Fl f 2559b50d902SRodney W. Grimesoption above). 25681135783SRuslan Ermilov.Ss "Personal and System Wide Distribution Lists" 2579b50d902SRodney W. GrimesIt is also possible to create a personal distribution lists so that, 2589b50d902SRodney W. Grimesfor instance, you can send mail to 2599b50d902SRodney W. Grimes.Dq Li cohorts 2609b50d902SRodney W. Grimesand have it go 2619b50d902SRodney W. Grimesto a group of people. 2629b50d902SRodney W. GrimesSuch lists can be defined by placing a line like 2639b50d902SRodney W. Grimes.Pp 26481135783SRuslan Ermilov.Dl "alias cohorts bill ozalp jkf mark kridle@ucbcory" 2659b50d902SRodney W. Grimes.Pp 2669b50d902SRodney W. Grimesin the file 26781135783SRuslan Ermilov.Pa .mailrc 2689b50d902SRodney W. Grimesin your home directory. 2699b50d902SRodney W. GrimesThe current list of such aliases can be displayed with the 2709b50d902SRodney W. Grimes.Ic alias 2719b50d902SRodney W. Grimescommand in 2728fe908efSRuslan Ermilov.Nm . 2739b50d902SRodney W. GrimesSystem wide distribution lists can be created by editing 2742216e2a2SGregory Neil Shapiro.Pa /etc/mail/aliases , 2759b50d902SRodney W. Grimessee 2769b50d902SRodney W. Grimes.Xr aliases 5 2779b50d902SRodney W. Grimesand 2789b50d902SRodney W. Grimes.Xr sendmail 8 ; 2799b50d902SRodney W. Grimesthese are kept in a different syntax. 2809b50d902SRodney W. GrimesIn mail you send, personal aliases will be expanded in mail sent 2819b50d902SRodney W. Grimesto others so that they will be able to 2829b50d902SRodney W. Grimes.Ic reply 2839b50d902SRodney W. Grimesto the recipients. 2849b50d902SRodney W. GrimesSystem wide 28581135783SRuslan Ermilovaliases 2869b50d902SRodney W. Grimesare not expanded when the mail is sent, 2879b50d902SRodney W. Grimesbut any reply returned to the machine will have the system wide 2889b50d902SRodney W. Grimesalias expanded as all mail goes through 289856f23edSMike Heffner.Xr sendmail 8 . 29081135783SRuslan Ermilov.Ss "Network Mail (ARPA, UUCP, Berknet)" 2919b50d902SRodney W. GrimesSee 2929b50d902SRodney W. Grimes.Xr mailaddr 7 2939b50d902SRodney W. Grimesfor a description of network addresses. 2949b50d902SRodney W. Grimes.Pp 2959b50d902SRodney W. Grimes.Nm Mail 2969b50d902SRodney W. Grimeshas a number of options which can be set in the 2979b50d902SRodney W. Grimes.Pa .mailrc 2989b50d902SRodney W. Grimesfile to alter its behavior; thus 29981135783SRuslan Ermilov.Dq Li "set askcc" 3009b50d902SRodney W. Grimesenables the 30181135783SRuslan Ermilov.Va askcc 3029b50d902SRodney W. Grimesfeature. 3039b50d902SRodney W. Grimes(These options are summarized below.) 3049b50d902SRodney W. Grimes.Sh SUMMARY 30581135783SRuslan Ermilov(Adapted from the 30681135783SRuslan Ermilov.%T "Mail Reference Manual" . ) 3079b50d902SRodney W. Grimes.Pp 3089b50d902SRodney W. GrimesEach command is typed on a line by itself, and may take arguments 3099b50d902SRodney W. Grimesfollowing the command word. 3109b50d902SRodney W. GrimesThe command need not be typed in its 31181135783SRuslan Ermiloventirety \(em the first command which matches the typed prefix is used. 3129b50d902SRodney W. GrimesFor commands which take message lists as arguments, if no message 3139b50d902SRodney W. Grimeslist is given, then the next message forward which satisfies the 3149b50d902SRodney W. Grimescommand's requirements is used. 3159b50d902SRodney W. GrimesIf there are no messages forward of 3169b50d902SRodney W. Grimesthe current message, the search proceeds backwards, and if there are no 3179b50d902SRodney W. Grimesgood messages at all, 3188fe908efSRuslan Ermilov.Nm 3199b50d902SRodney W. Grimestypes 32081135783SRuslan Ermilov.Dq Li "No applicable messages" 3219b50d902SRodney W. Grimesand 3229b50d902SRodney W. Grimesaborts the command. 3233e048b59SRuslan Ermilov.Bl -tag -width indent 32481135783SRuslan Ermilov.It Ic \- 3259b50d902SRodney W. GrimesPrint out the preceding message. 3269b50d902SRodney W. GrimesIf given a numeric 3279b50d902SRodney W. Grimesargument 3289b50d902SRodney W. Grimes.Ar n , 3299b50d902SRodney W. Grimesgoes to the 3309b50d902SRodney W. Grimes.Ar n Ns 'th 3319b50d902SRodney W. Grimesprevious message and prints it. 33281135783SRuslan Ermilov.It Ic # 333b5cfa4b2SJoerg Wunschignore the remainder of the line as a comment. 3349b50d902SRodney W. Grimes.It Ic \&? 3359b50d902SRodney W. GrimesPrints a brief summary of commands. 3369b50d902SRodney W. Grimes.It Ic \&! 3379b50d902SRodney W. GrimesExecutes the shell 3389b50d902SRodney W. Grimes(see 3399b50d902SRodney W. Grimes.Xr sh 1 3409b50d902SRodney W. Grimesand 3419b50d902SRodney W. Grimes.Xr csh 1 ) 3429b50d902SRodney W. Grimescommand which follows. 3439b50d902SRodney W. Grimes.It Ic Print 3449b50d902SRodney W. Grimes.Pq Ic P 3459b50d902SRodney W. GrimesLike 3469b50d902SRodney W. Grimes.Ic print 3479b50d902SRodney W. Grimesbut also prints out ignored header fields. 3489b50d902SRodney W. GrimesSee also 34981135783SRuslan Ermilov.Ic print , ignore 3509b50d902SRodney W. Grimesand 3519b50d902SRodney W. Grimes.Ic retain . 3529b50d902SRodney W. Grimes.It Ic Reply 3539b50d902SRodney W. Grimes.Pq Ic R 3549b50d902SRodney W. GrimesReply to originator. 3559b50d902SRodney W. GrimesDoes not reply to other 3569b50d902SRodney W. Grimesrecipients of the original message. 3579b50d902SRodney W. Grimes.It Ic Type 3589b50d902SRodney W. Grimes.Pq Ic T 3599b50d902SRodney W. GrimesIdentical to the 3609b50d902SRodney W. Grimes.Ic Print 3619b50d902SRodney W. Grimescommand. 3629b50d902SRodney W. Grimes.It Ic alias 3639b50d902SRodney W. Grimes.Pq Ic a 3649b50d902SRodney W. GrimesWith no arguments, prints out all currently-defined aliases. 3659b50d902SRodney W. GrimesWith one 3669b50d902SRodney W. Grimesargument, prints out that alias. 3679b50d902SRodney W. GrimesWith more than one argument, creates 3689b50d902SRodney W. Grimesa new alias or changes an old one. 3699b50d902SRodney W. Grimes.It Ic alternates 3709b50d902SRodney W. Grimes.Pq Ic alt 3719b50d902SRodney W. GrimesThe 3729b50d902SRodney W. Grimes.Ic alternates 3739b50d902SRodney W. Grimescommand is useful if you have accounts on several machines. 3749b50d902SRodney W. GrimesIt can be used to inform 3758fe908efSRuslan Ermilov.Nm 3769b50d902SRodney W. Grimesthat the listed addresses are really you. 3779b50d902SRodney W. GrimesWhen you 3789b50d902SRodney W. Grimes.Ic reply 3799b50d902SRodney W. Grimesto messages, 3808fe908efSRuslan Ermilov.Nm 3819b50d902SRodney W. Grimeswill not send a copy of the message to any of the addresses 3829b50d902SRodney W. Grimeslisted on the 3839b50d902SRodney W. Grimes.Ic alternates 3849b50d902SRodney W. Grimeslist. 3859b50d902SRodney W. GrimesIf the 3869b50d902SRodney W. Grimes.Ic alternates 387856f23edSMike Heffnercommand is given with no argument, the current set of alternative 3889b50d902SRodney W. Grimesnames is displayed. 3899b50d902SRodney W. Grimes.It Ic chdir 3909b50d902SRodney W. Grimes.Pq Ic c 3919b50d902SRodney W. GrimesChanges the user's working directory to that specified, if given. 3929b50d902SRodney W. GrimesIf 3939b50d902SRodney W. Grimesno directory is given, then changes to the user's login directory. 3949b50d902SRodney W. Grimes.It Ic copy 3959b50d902SRodney W. Grimes.Pq Ic co 3969b50d902SRodney W. GrimesThe 3979b50d902SRodney W. Grimes.Ic copy 3989b50d902SRodney W. Grimescommand does the same thing that 3999b50d902SRodney W. Grimes.Ic save 4009b50d902SRodney W. Grimesdoes, except that it does not mark the messages it 40181135783SRuslan Ermilovis used on for deletion when you 40281135783SRuslan Ermilov.Ic quit . 4039b50d902SRodney W. Grimes.It Ic delete 4049b50d902SRodney W. Grimes.Pq Ic d 4059b50d902SRodney W. GrimesTakes a list of messages as argument and marks them all as deleted. 4069b50d902SRodney W. GrimesDeleted messages will not be saved in 40781135783SRuslan Ermilov.Pa mbox , 4089b50d902SRodney W. Grimesnor will they be available for most other commands. 4099b50d902SRodney W. Grimes.It Ic dp 4109b50d902SRodney W. Grimes(also 4119b50d902SRodney W. Grimes.Ic dt ) 4129b50d902SRodney W. GrimesDeletes the current message and prints the next message. 4139b50d902SRodney W. GrimesIf there is no next message, 4148fe908efSRuslan Ermilov.Nm 4159b50d902SRodney W. Grimessays 4169b50d902SRodney W. Grimes.Dq Li "at EOF" . 4179b50d902SRodney W. Grimes.It Ic edit 4189b50d902SRodney W. Grimes.Pq Ic e 4199b50d902SRodney W. GrimesTakes a list of messages and points the text editor at each one in 4209b50d902SRodney W. Grimesturn. 4219b50d902SRodney W. GrimesOn return from the editor, the message is read back in. 4229b50d902SRodney W. Grimes.It Ic exit 423d0353b83SRuslan Ermilov.Ic ( ex 4249b50d902SRodney W. Grimesor 4259b50d902SRodney W. Grimes.Ic x ) 42681135783SRuslan ErmilovEffects an immediate return to the shell without 4279b50d902SRodney W. Grimesmodifying the user's system mailbox, his 42881135783SRuslan Ermilov.Pa mbox 4299b50d902SRodney W. Grimesfile, or his edit file in 4309b50d902SRodney W. Grimes.Fl f . 4319b50d902SRodney W. Grimes.It Ic file 4329b50d902SRodney W. Grimes.Pq Ic fi 4339b50d902SRodney W. GrimesThe same as 4349b50d902SRodney W. Grimes.Ic folder . 4359b50d902SRodney W. Grimes.It Ic folders 4369b50d902SRodney W. GrimesList the names of the folders in your folder directory. 4379b50d902SRodney W. Grimes.It Ic folder 4389b50d902SRodney W. Grimes.Pq Ic fo 4399b50d902SRodney W. GrimesThe 4409b50d902SRodney W. Grimes.Ic folder 4419b50d902SRodney W. Grimescommand switches to a new mail file or folder. 4429b50d902SRodney W. GrimesWith no 4439b50d902SRodney W. Grimesarguments, it tells you which file you are currently reading. 4449b50d902SRodney W. GrimesIf you give it an argument, it will write out changes (such 4459b50d902SRodney W. Grimesas deletions) you have made in the current file and read in 4469b50d902SRodney W. Grimesthe new file. 4479b50d902SRodney W. GrimesSome special conventions are recognized for 4489b50d902SRodney W. Grimesthe name. 44981135783SRuslan Ermilov.Ql # 45081135783SRuslan Ermilovmeans the previous file, 45181135783SRuslan Ermilov.Ql % 45281135783SRuslan Ermilovmeans your system mailbox, 45381135783SRuslan Ermilov.Dq Li % Ns Ar user 45481135783SRuslan Ermilovmeans user's system mailbox, 45581135783SRuslan Ermilov.Ql & 45681135783SRuslan Ermilovmeans your 45781135783SRuslan Ermilov.Pa mbox 4589b50d902SRodney W. Grimesfile, and 45981135783SRuslan Ermilov.Dq Li + Ns Ar folder 46081135783SRuslan Ermilovmeans a file in your folder 4619b50d902SRodney W. Grimesdirectory. 4629b50d902SRodney W. Grimes.It Ic from 4639b50d902SRodney W. Grimes.Pq Ic f 4649b50d902SRodney W. GrimesTakes a list of messages and prints their message headers. 4659b50d902SRodney W. Grimes.It Ic headers 4669b50d902SRodney W. Grimes.Pq Ic h 46781135783SRuslan ErmilovLists the current range of headers, which is an 18-message group. 4689b50d902SRodney W. GrimesIf 4699b50d902SRodney W. Grimesa 47081135783SRuslan Ermilov.Ql + 47181135783SRuslan Ermilovargument is given, then the next 18-message group is printed, and if 4729b50d902SRodney W. Grimesa 47381135783SRuslan Ermilov.Ql \- 47481135783SRuslan Ermilovargument is given, the previous 18-message group is printed. 4759b50d902SRodney W. Grimes.It Ic help 4769b50d902SRodney W. GrimesA synonym for 47781135783SRuslan Ermilov.Ic \&? . 4789b50d902SRodney W. Grimes.It Ic hold 479d0353b83SRuslan Ermilov.Ic ( ho , 4809b50d902SRodney W. Grimesalso 4819b50d902SRodney W. Grimes.Ic preserve ) 4829b50d902SRodney W. GrimesTakes a message list and marks each 4839b50d902SRodney W. Grimesmessage therein to be saved in the 4849b50d902SRodney W. Grimesuser's system mailbox instead of in 48581135783SRuslan Ermilov.Pa mbox . 4869b50d902SRodney W. GrimesDoes not override the 4879b50d902SRodney W. Grimes.Ic delete 4889b50d902SRodney W. Grimescommand. 4899b50d902SRodney W. Grimes.It Ic ignore 4909b50d902SRodney W. GrimesAdd the list of header fields named to the 4919b50d902SRodney W. Grimes.Ar ignored list . 4929b50d902SRodney W. GrimesHeader fields in the ignore list are not printed 4939b50d902SRodney W. Grimeson your terminal when you print a message. 4949b50d902SRodney W. GrimesThis 4959b50d902SRodney W. Grimescommand is very handy for suppression of certain machine-generated 4969b50d902SRodney W. Grimesheader fields. 4979b50d902SRodney W. GrimesThe 4989b50d902SRodney W. Grimes.Ic Type 4999b50d902SRodney W. Grimesand 5009b50d902SRodney W. Grimes.Ic Print 5019b50d902SRodney W. Grimescommands can be used to print a message in its entirety, including 5029b50d902SRodney W. Grimesignored fields. 5039b50d902SRodney W. GrimesIf 5049b50d902SRodney W. Grimes.Ic ignore 5059b50d902SRodney W. Grimesis executed with no arguments, it lists the current set of 5069b50d902SRodney W. Grimesignored fields. 507856f23edSMike Heffner.It Ic inc 508856f23edSMike HeffnerIncorporate any new messages that have arrived while mail 509856f23edSMike Heffneris being read. 510856f23edSMike HeffnerThe new messages are added to the end of the message list, 511856f23edSMike Heffnerand the current message is reset to be the first new mail message. 51281135783SRuslan ErmilovThis does not renumber the existing message list, nor 513856f23edSMike Heffnerdoes it cause any changes made so far to be saved. 5149b50d902SRodney W. Grimes.It Ic mail 5159b50d902SRodney W. Grimes.Pq Ic m 5169b50d902SRodney W. GrimesTakes as argument login names and distribution group names and sends 5179b50d902SRodney W. Grimesmail to those people. 5189b50d902SRodney W. Grimes.It Ic mbox 5199b50d902SRodney W. GrimesIndicate that a list of messages be sent to 52081135783SRuslan Ermilov.Pa mbox 5219b50d902SRodney W. Grimesin your home directory when you quit. 5229b50d902SRodney W. GrimesThis is the default 5239b50d902SRodney W. Grimesaction for messages if you do 5249b50d902SRodney W. Grimes.Em not 5259b50d902SRodney W. Grimeshave the 5269b50d902SRodney W. Grimes.Ic hold 5279b50d902SRodney W. Grimesoption set. 528856f23edSMike Heffner.It Ic more 52981135783SRuslan Ermilov.Pq Ic mo 530856f23edSMike HeffnerTakes a list of messages and invokes the pager on that list. 5319b50d902SRodney W. Grimes.It Ic next 532856f23edSMike Heffner.Ic ( n , 5339b50d902SRodney W. Grimeslike 53481135783SRuslan Ermilov.Ic + 5359b50d902SRodney W. Grimesor 5369b50d902SRodney W. Grimes.Tn CR ) 5379b50d902SRodney W. GrimesGoes to the next message in sequence and types it. 5389b50d902SRodney W. GrimesWith an argument list, types the next matching message. 5399b50d902SRodney W. Grimes.It Ic preserve 5409b50d902SRodney W. Grimes.Pq Ic pre 5419b50d902SRodney W. GrimesA synonym for 5429b50d902SRodney W. Grimes.Ic hold . 5439b50d902SRodney W. Grimes.It Ic print 5449b50d902SRodney W. Grimes.Pq Ic p 5459b50d902SRodney W. GrimesTakes a message list and types out each message on the user's terminal. 5469b50d902SRodney W. Grimes.It Ic quit 5479b50d902SRodney W. Grimes.Pq Ic q 5489b50d902SRodney W. GrimesTerminates the session, saving all undeleted, unsaved messages in 5499b50d902SRodney W. Grimesthe user's 55081135783SRuslan Ermilov.Pa mbox 5519b50d902SRodney W. Grimesfile in his login directory, preserving all messages marked with 5529b50d902SRodney W. Grimes.Ic hold 5539b50d902SRodney W. Grimesor 5549b50d902SRodney W. Grimes.Ic preserve 5559b50d902SRodney W. Grimesor never referenced 5569b50d902SRodney W. Grimesin his system mailbox, and removing all other messages from his system 5579b50d902SRodney W. Grimesmailbox. 5589b50d902SRodney W. GrimesIf new mail has arrived during the session, the message 5599b50d902SRodney W. Grimes.Dq Li "You have new mail" 5609b50d902SRodney W. Grimesis given. 5619b50d902SRodney W. GrimesIf given while editing a 5629b50d902SRodney W. Grimesmailbox file with the 5639b50d902SRodney W. Grimes.Fl f 5649b50d902SRodney W. Grimesflag, then the edit file is rewritten. 56581135783SRuslan ErmilovA return to the shell is 5669b50d902SRodney W. Grimeseffected, unless the rewrite of edit file fails, in which case the user 5679b50d902SRodney W. Grimescan escape with the 5689b50d902SRodney W. Grimes.Ic exit 5699b50d902SRodney W. Grimescommand. 5709b50d902SRodney W. Grimes.It Ic reply 5719b50d902SRodney W. Grimes.Pq Ic r 5729b50d902SRodney W. GrimesTakes a message list and sends mail to the sender and all 5739b50d902SRodney W. Grimesrecipients of the specified message. 5749b50d902SRodney W. GrimesThe default message must not be deleted. 5759b50d902SRodney W. Grimes.It Ic respond 5769b50d902SRodney W. GrimesA synonym for 5779b50d902SRodney W. Grimes.Ic reply . 5789b50d902SRodney W. Grimes.It Ic retain 5799b50d902SRodney W. GrimesAdd the list of header fields named to the 580856f23edSMike Heffner.Em "retained list" . 581856f23edSMike HeffnerOnly the header fields in the retained list 5829b50d902SRodney W. Grimesare shown on your terminal when you print a message. 5839b50d902SRodney W. GrimesAll other header fields are suppressed. 5849b50d902SRodney W. GrimesThe 585856f23edSMike Heffner.Ic type 5869b50d902SRodney W. Grimesand 587856f23edSMike Heffner.Ic print 5889b50d902SRodney W. Grimescommands can be used to print a message in its entirety. 5899b50d902SRodney W. GrimesIf 5909b50d902SRodney W. Grimes.Ic retain 5919b50d902SRodney W. Grimesis executed with no arguments, it lists the current set of 5929b50d902SRodney W. Grimesretained fields. 5939b50d902SRodney W. Grimes.It Ic save 5949b50d902SRodney W. Grimes.Pq Ic s 5959b50d902SRodney W. GrimesTakes a message list and a filename and appends each message in 5969b50d902SRodney W. Grimesturn to the end of the file. 5979b50d902SRodney W. GrimesThe filename in quotes, followed by the line 5989b50d902SRodney W. Grimescount and character count is echoed on the user's terminal. 5999b50d902SRodney W. Grimes.It Ic set 6009b50d902SRodney W. Grimes.Pq Ic se 6019b50d902SRodney W. GrimesWith no arguments, prints all variable values. 6029b50d902SRodney W. GrimesOtherwise, sets 6039b50d902SRodney W. Grimesoption. 6049b50d902SRodney W. GrimesArguments are of the form 60581135783SRuslan Ermilov.Ar option Ns Li = Ns Ar value 60681135783SRuslan Ermilov(no space before or after 60781135783SRuslan Ermilov.Ql = ) 60881135783SRuslan Ermilovor 6099b50d902SRodney W. Grimes.Ar option . 6109b50d902SRodney W. GrimesQuotation marks may be placed around any part of the assignment statement to 61157e4378bSRuslan Ermilovquote blanks or tabs, i.e.\& 6129b50d902SRodney W. Grimes.Dq Li "set indentprefix=\*q->\*q" 6139b50d902SRodney W. Grimes.It Ic saveignore 6149b50d902SRodney W. Grimes.Ic Saveignore 6159b50d902SRodney W. Grimesis to 6169b50d902SRodney W. Grimes.Ic save 6179b50d902SRodney W. Grimeswhat 6189b50d902SRodney W. Grimes.Ic ignore 6199b50d902SRodney W. Grimesis to 6209b50d902SRodney W. Grimes.Ic print 6219b50d902SRodney W. Grimesand 6229b50d902SRodney W. Grimes.Ic type . 6239b50d902SRodney W. GrimesHeader fields thus marked are filtered out when 6249b50d902SRodney W. Grimessaving a message by 6259b50d902SRodney W. Grimes.Ic save 6269b50d902SRodney W. Grimesor when automatically saving to 62781135783SRuslan Ermilov.Pa mbox . 6289b50d902SRodney W. Grimes.It Ic saveretain 6299b50d902SRodney W. Grimes.Ic Saveretain 6309b50d902SRodney W. Grimesis to 6319b50d902SRodney W. Grimes.Ic save 6329b50d902SRodney W. Grimeswhat 6339b50d902SRodney W. Grimes.Ic retain 6349b50d902SRodney W. Grimesis to 6359b50d902SRodney W. Grimes.Ic print 6369b50d902SRodney W. Grimesand 6379b50d902SRodney W. Grimes.Ic type . 6389b50d902SRodney W. GrimesHeader fields thus marked are the only ones saved 6399b50d902SRodney W. Grimeswith a message when saving by 6409b50d902SRodney W. Grimes.Ic save 6419b50d902SRodney W. Grimesor when automatically saving to 64281135783SRuslan Ermilov.Pa mbox . 6439b50d902SRodney W. Grimes.Ic Saveretain 6449b50d902SRodney W. Grimesoverrides 6459b50d902SRodney W. Grimes.Ic saveignore . 6469b50d902SRodney W. Grimes.It Ic shell 6479b50d902SRodney W. Grimes.Pq Ic sh 6489b50d902SRodney W. GrimesInvokes an interactive version of the shell. 6499b50d902SRodney W. Grimes.It Ic size 6509b50d902SRodney W. GrimesTakes a message list and prints out the size in characters of each 6519b50d902SRodney W. Grimesmessage. 6529b50d902SRodney W. Grimes.It Ic source 6539b50d902SRodney W. GrimesThe 6549b50d902SRodney W. Grimes.Ic source 6559b50d902SRodney W. Grimescommand reads 6569b50d902SRodney W. Grimescommands from a file. 6579b50d902SRodney W. Grimes.It Ic top 6589b50d902SRodney W. GrimesTakes a message list and prints the top few lines of each. 6599b50d902SRodney W. GrimesThe number of 6609b50d902SRodney W. Grimeslines printed is controlled by the variable 66181135783SRuslan Ermilov.Va toplines 66281135783SRuslan Ermilovand defaults to 5. 6639b50d902SRodney W. Grimes.It Ic type 6649b50d902SRodney W. Grimes.Pq Ic t 6659b50d902SRodney W. GrimesA synonym for 6669b50d902SRodney W. Grimes.Ic print . 6679b50d902SRodney W. Grimes.It Ic unalias 6689b50d902SRodney W. GrimesTakes a list of names defined by 6699b50d902SRodney W. Grimes.Ic alias 6709b50d902SRodney W. Grimescommands and discards the remembered groups of users. 6719b50d902SRodney W. GrimesThe group names 6729b50d902SRodney W. Grimesno longer have any significance. 6739b50d902SRodney W. Grimes.It Ic undelete 6749b50d902SRodney W. Grimes.Pq Ic u 6759b50d902SRodney W. GrimesTakes a message list and marks each message as 67681135783SRuslan Ermilov.Em not 6779b50d902SRodney W. Grimesbeing deleted. 6789b50d902SRodney W. Grimes.It Ic unread 6799b50d902SRodney W. Grimes.Pq Ic U 6809b50d902SRodney W. GrimesTakes a message list and marks each message as 68181135783SRuslan Ermilov.Em not 6829b50d902SRodney W. Grimeshaving been read. 6839b50d902SRodney W. Grimes.It Ic unset 6849b50d902SRodney W. GrimesTakes a list of option names and discards their remembered values; 6859b50d902SRodney W. Grimesthe inverse of 6869b50d902SRodney W. Grimes.Ic set . 6879b50d902SRodney W. Grimes.It Ic visual 6889b50d902SRodney W. Grimes.Pq Ic v 6899b50d902SRodney W. GrimesTakes a message list and invokes the display editor on each message. 6909b50d902SRodney W. Grimes.It Ic write 6919b50d902SRodney W. Grimes.Pq Ic w 6929b50d902SRodney W. GrimesSimilar to 6939b50d902SRodney W. Grimes.Ic save , 6949b50d902SRodney W. Grimesexcept that 69581135783SRuslan Ermilov.Em only 6969b50d902SRodney W. Grimesthe message body 69781135783SRuslan Ermilov.Em ( without 6989b50d902SRodney W. Grimesthe header) is saved. 6999b50d902SRodney W. GrimesExtremely useful for such tasks as sending and receiving source 7009b50d902SRodney W. Grimesprogram text over the message system. 7019b50d902SRodney W. Grimes.It Ic xit 7029b50d902SRodney W. Grimes.Pq Ic x 7039b50d902SRodney W. GrimesA synonym for 7049b50d902SRodney W. Grimes.Ic exit . 7059b50d902SRodney W. Grimes.It Ic z 7069b50d902SRodney W. Grimes.Nm Mail 7079b50d902SRodney W. Grimespresents message headers in windowfuls as described under the 7089b50d902SRodney W. Grimes.Ic headers 7099b50d902SRodney W. Grimescommand. 7109b50d902SRodney W. GrimesYou can move 7118fe908efSRuslan Ermilov.Nm Ns 's 7129b50d902SRodney W. Grimesattention forward to the next window with the 71381135783SRuslan Ermilov.Ic z 7149b50d902SRodney W. Grimescommand. 7159b50d902SRodney W. GrimesAlso, you can move to the previous window by using 71681135783SRuslan Ermilov.Ic z\- . 7179b50d902SRodney W. Grimes.El 7189b50d902SRodney W. Grimes.Ss Tilde/Escapes 7199b50d902SRodney W. GrimesHere is a summary of the tilde escapes, 7209b50d902SRodney W. Grimeswhich are used when composing messages to perform 7219b50d902SRodney W. Grimesspecial functions. 7229b50d902SRodney W. GrimesTilde escapes are only recognized at the beginning 7239b50d902SRodney W. Grimesof lines. 7249b50d902SRodney W. GrimesThe name 72581135783SRuslan Ermilov.Dq "tilde escape" 7269b50d902SRodney W. Grimesis somewhat of a misnomer since the actual escape character can be set 7279b50d902SRodney W. Grimesby the option 72881135783SRuslan Ermilov.Va escape . 72981135783SRuslan Ermilov.Bl -tag -width indent 73081135783SRuslan Ermilov.It Ic ~a 73169131e40SMike HeffnerInserts the autograph string from the sign= option into the message. 73281135783SRuslan Ermilov.It Ic ~A 73369131e40SMike HeffnerInserts the autograph string from the Sign= option into the message. 73481135783SRuslan Ermilov.It Ic ~b Ar name ... 7359b50d902SRodney W. GrimesAdd the given names to the list of carbon copy recipients but do not make 73681135783SRuslan Ermilovthe names visible in the Cc: line 73781135783SRuslan Ermilov.Dq ( blind 73881135783SRuslan Ermilovcarbon copy). 73981135783SRuslan Ermilov.It Ic ~c Ar name ... 7409b50d902SRodney W. GrimesAdd the given names to the list of carbon copy recipients. 74181135783SRuslan Ermilov.It Ic ~d 7429b50d902SRodney W. GrimesRead the file 74381135783SRuslan Ermilov.Pa dead.letter 7449b50d902SRodney W. Grimesfrom your home directory into the message. 74581135783SRuslan Ermilov.It Ic ~e 7469b50d902SRodney W. GrimesInvoke the text editor on the message collected so far. 7479b50d902SRodney W. GrimesAfter the 7489b50d902SRodney W. Grimesediting session is finished, you may continue appending text to the 7499b50d902SRodney W. Grimesmessage. 75081135783SRuslan Ermilov.It Ic ~f Ar messages 7519b50d902SRodney W. GrimesRead the named messages into the message being sent. 7529b50d902SRodney W. GrimesIf no messages are specified, read in the current message. 7539b50d902SRodney W. GrimesMessage headers currently being ignored (by the 7549b50d902SRodney W. Grimes.Ic ignore 7559b50d902SRodney W. Grimesor 7569b50d902SRodney W. Grimes.Ic retain 7579b50d902SRodney W. Grimescommand) are not included. 75881135783SRuslan Ermilov.It Ic ~F Ar messages 7599b50d902SRodney W. GrimesIdentical to 76081135783SRuslan Ermilov.Ic ~f , 7619b50d902SRodney W. Grimesexcept all message headers are included. 76281135783SRuslan Ermilov.It Ic ~h 7639b50d902SRodney W. GrimesEdit the message header fields by typing each one in turn and allowing 7649b50d902SRodney W. Grimesthe user to append text to the end or modify the field by using the 7659b50d902SRodney W. Grimescurrent terminal erase and kill characters. 76681135783SRuslan Ermilov.It Ic ~i Ar string 76769131e40SMike HeffnerInserts the value of the named option into the text of the message. 76881135783SRuslan Ermilov.It Ic ~m Ar messages 7699b50d902SRodney W. GrimesRead the named messages into the message being sent, indented by a 7709b50d902SRodney W. Grimestab or by the value of 77181135783SRuslan Ermilov.Va indentprefix . 7729b50d902SRodney W. GrimesIf no messages are specified, 7739b50d902SRodney W. Grimesread the current message. 7749b50d902SRodney W. GrimesMessage headers currently being ignored (by the 7759b50d902SRodney W. Grimes.Ic ignore 7769b50d902SRodney W. Grimesor 7779b50d902SRodney W. Grimes.Ic retain 7789b50d902SRodney W. Grimescommand) are not included. 77981135783SRuslan Ermilov.It Ic ~M Ar messages 7809b50d902SRodney W. GrimesIdentical to 78181135783SRuslan Ermilov.Ic ~m , 7829b50d902SRodney W. Grimesexcept all message headers are included. 78381135783SRuslan Ermilov.It Ic ~p 7849b50d902SRodney W. GrimesPrint out the message collected so far, prefaced by the message header 7859b50d902SRodney W. Grimesfields. 78681135783SRuslan Ermilov.It Ic ~q 7879b50d902SRodney W. GrimesAbort the message being sent, copying the message to 78881135783SRuslan Ermilov.Pa dead.letter 7899b50d902SRodney W. Grimesin your home directory if 79081135783SRuslan Ermilov.Va save 7919b50d902SRodney W. Grimesis set. 79281135783SRuslan Ermilov.It Ic ~r Ar filename , Ic ~r Li \&! Ns Ar command 79381135783SRuslan Ermilov.It Ic ~< Ar filename , Ic ~< Li \&! Ns Ar command 7949b50d902SRodney W. GrimesRead the named file into the message. 79581135783SRuslan ErmilovIf the argument begins with a 79681135783SRuslan Ermilov.Ql \&! , 79769131e40SMike Heffnerthe rest of the string is taken as an arbitrary system command and is 79869131e40SMike Heffnerexecuted, with the standard output inserted into the message. 79981135783SRuslan Ermilov.It Ic ~R Ar string 80099bd6601SJoerg WunschUse 80199bd6601SJoerg Wunsch.Ar string 80299bd6601SJoerg Wunschas the Reply-To field. 80381135783SRuslan Ermilov.It Ic ~s Ar string 8049b50d902SRodney W. GrimesCause the named string to become the current subject field. 80581135783SRuslan Ermilov.It Ic ~t Ar name ... 8069b50d902SRodney W. GrimesAdd the given names to the direct recipient list. 80781135783SRuslan Ermilov.It Ic ~v 808856f23edSMike HeffnerInvoke an alternative editor (defined by the 8099b50d902SRodney W. Grimes.Ev VISUAL 8109b50d902SRodney W. Grimesoption) on the 8119b50d902SRodney W. Grimesmessage collected so far. 812856f23edSMike HeffnerUsually, the alternative editor will be a 8139b50d902SRodney W. Grimesscreen editor. 8149b50d902SRodney W. GrimesAfter you quit the editor, you may resume appending 8159b50d902SRodney W. Grimestext to the end of your message. 81681135783SRuslan Ermilov.It Ic ~w Ar filename 8179b50d902SRodney W. GrimesWrite the message onto the named file. 81881135783SRuslan Ermilov.It Ic ~x 81981135783SRuslan ErmilovExits as with 82081135783SRuslan Ermilov.Ic ~q , 82181135783SRuslan Ermilovexcept the message is not saved in 82281135783SRuslan Ermilov.Pa dead.letter . 82381135783SRuslan Ermilov.It Ic ~! Ar command 82469131e40SMike HeffnerExecute the indicated shell command, then return to the message. 82581135783SRuslan Ermilov.It Ic ~| Ar command , Ic ~^ Ar command 8269b50d902SRodney W. GrimesPipe the message through the command as a filter. 8279b50d902SRodney W. GrimesIf the command gives 8289b50d902SRodney W. Grimesno output or terminates abnormally, retain the original text of the 8299b50d902SRodney W. Grimesmessage. 8309b50d902SRodney W. GrimesThe command 8319b50d902SRodney W. Grimes.Xr fmt 1 8329b50d902SRodney W. Grimesis often used as 83381135783SRuslan Ermilov.Ar command 8349b50d902SRodney W. Grimesto rejustify the message. 83581135783SRuslan Ermilov.It Ic ~: Ar mail-command , Ic ~_ Ar mail-command 83681135783SRuslan ErmilovExecute the given 83781135783SRuslan Ermilov.Nm 83881135783SRuslan Ermilovcommand. 8399b50d902SRodney W. GrimesNot all commands, however, are allowed. 84081135783SRuslan Ermilov.It Ic ~~ Ar string 84181135783SRuslan ErmilovInsert the string of text in the message prefaced by a single 84281135783SRuslan Ermilov.Ql ~ . 8439b50d902SRodney W. GrimesIf 8449b50d902SRodney W. Grimesyou have changed the escape character, then you should double 8459b50d902SRodney W. Grimesthat character in order to send it. 8469b50d902SRodney W. Grimes.El 84781135783SRuslan Ermilov.Ss "Mail Options" 8489b50d902SRodney W. GrimesOptions are controlled via 8499b50d902SRodney W. Grimes.Ic set 8509b50d902SRodney W. Grimesand 8519b50d902SRodney W. Grimes.Ic unset 8529b50d902SRodney W. Grimescommands. 8539b50d902SRodney W. GrimesOptions may be either binary, in which case it is only 8549b50d902SRodney W. Grimessignificant to see whether they are set or not; or string, in which 8559b50d902SRodney W. Grimescase the actual value is of interest. 85659c3f4f7SMike HeffnerIf an option is not set, 85759c3f4f7SMike Heffner.Nm 85859c3f4f7SMike Heffnerwill look for an environment variable of the same name. 8599b50d902SRodney W. GrimesThe binary options include the following: 8603e048b59SRuslan Ermilov.Bl -tag -width indent 86181135783SRuslan Ermilov.It Va append 8629b50d902SRodney W. GrimesCauses messages saved in 86381135783SRuslan Ermilov.Pa mbox 8649b50d902SRodney W. Grimesto be appended to the end rather than prepended. 865e9b074c3SJordan K. HubbardThis should always be set (preferably in one of the system-wide 866e9b074c3SJordan K. Hubbard.Pa mail.rc 867e9b074c3SJordan K. Hubbardfiles). 86881135783SRuslan Ermilov.It Va ask , asksub 8699b50d902SRodney W. GrimesCauses 8708fe908efSRuslan Ermilov.Nm 8719b50d902SRodney W. Grimesto prompt you for the subject of each message you send. 8729b50d902SRodney W. GrimesIf 8739b50d902SRodney W. Grimesyou respond with simply a newline, no subject field will be sent. 87481135783SRuslan Ermilov.It Va askbcc 875856f23edSMike HeffnerCauses you to be prompted for additional blind carbon copy recipients at the 876856f23edSMike Heffnerend of each message. 877856f23edSMike HeffnerResponding with a newline indicates your 878856f23edSMike Heffnersatisfaction with the current list. 87981135783SRuslan Ermilov.It Va askcc 8809b50d902SRodney W. GrimesCauses you to be prompted for additional carbon copy recipients at the 8819b50d902SRodney W. Grimesend of each message. 8829b50d902SRodney W. GrimesResponding with a newline indicates your 8839b50d902SRodney W. Grimessatisfaction with the current list. 88481135783SRuslan Ermilov.It Va autoinc 885856f23edSMike HeffnerCauses new mail to be automatically incorporated when it arrives. 886856f23edSMike HeffnerSetting this is similar to issuing the 887856f23edSMike Heffner.Ic inc 888856f23edSMike Heffnercommand at each prompt, except that the current message is not 889856f23edSMike Heffnerreset when new mail arrives. 89081135783SRuslan Ermilov.It Va autoprint 8919b50d902SRodney W. GrimesCauses the 8929b50d902SRodney W. Grimes.Ic delete 8939b50d902SRodney W. Grimescommand to behave like 89481135783SRuslan Ermilov.Ic dp ; 89581135783SRuslan Ermilovthus, after deleting a message, the next one will be typed 8969b50d902SRodney W. Grimesautomatically. 89781135783SRuslan Ermilov.It Va debug 8989b50d902SRodney W. GrimesSetting the binary option 89981135783SRuslan Ermilov.Va debug 9009b50d902SRodney W. Grimesis the same as specifying 9019b50d902SRodney W. Grimes.Fl d 9029b50d902SRodney W. Grimeson the command line and causes 9038fe908efSRuslan Ermilov.Nm 9049b50d902SRodney W. Grimesto output all sorts of information useful for debugging 9058fe908efSRuslan Ermilov.Nm . 90681135783SRuslan Ermilov.It Va dot 9079b50d902SRodney W. GrimesThe binary option 90881135783SRuslan Ermilov.Va dot 9099b50d902SRodney W. Grimescauses 9108fe908efSRuslan Ermilov.Nm 9119b50d902SRodney W. Grimesto interpret a period alone on a line as the terminator 9129b50d902SRodney W. Grimesof a message you are sending. 91381135783SRuslan Ermilov.It Va hold 9149b50d902SRodney W. GrimesThis option is used to hold messages in the system mailbox 9159b50d902SRodney W. Grimesby default. 91681135783SRuslan Ermilov.It Va ignore 9179b50d902SRodney W. GrimesCauses interrupt signals from your terminal to be ignored and echoed as 91881135783SRuslan Ermilov.Li @ Ns 's. 91981135783SRuslan Ermilov.It Va ignoreeof 9209b50d902SRodney W. GrimesAn option related to 92181135783SRuslan Ermilov.Va dot 9229b50d902SRodney W. Grimesis 92381135783SRuslan Ermilov.Va ignoreeof 9249b50d902SRodney W. Grimeswhich makes 9258fe908efSRuslan Ermilov.Nm 92681135783SRuslan Ermilovrefuse to accept a 92781135783SRuslan Ermilov.Aq Li control-D 92881135783SRuslan Ermilovas the end of a message. 9299b50d902SRodney W. Grimes.Ar Ignoreeof 9309b50d902SRodney W. Grimesalso applies to 9318fe908efSRuslan Ermilov.Nm 9329b50d902SRodney W. Grimescommand mode. 93381135783SRuslan Ermilov.It Va metoo 9349b50d902SRodney W. GrimesUsually, when a group is expanded that contains the sender, the sender 9359b50d902SRodney W. Grimesis removed from the expansion. 9369b50d902SRodney W. GrimesSetting this option causes the sender 9379b50d902SRodney W. Grimesto be included in the group. 93881135783SRuslan Ermilov.It Va noheader 9399b50d902SRodney W. GrimesSetting the option 94081135783SRuslan Ermilov.Va noheader 9419b50d902SRodney W. Grimesis the same as giving the 9429b50d902SRodney W. Grimes.Fl N 9439b50d902SRodney W. Grimesflag on the command line. 94481135783SRuslan Ermilov.It Va nosave 9459b50d902SRodney W. GrimesNormally, when you abort a message with two 9469b50d902SRodney W. Grimes.Tn RUBOUT 94781135783SRuslan Ermilov(erase or delete), 9488fe908efSRuslan Ermilov.Nm 9499b50d902SRodney W. Grimescopies the partial letter to the file 95081135783SRuslan Ermilov.Pa dead.letter 9519b50d902SRodney W. Grimesin your home directory. 9529b50d902SRodney W. GrimesSetting the binary option 95381135783SRuslan Ermilov.Va nosave 9549b50d902SRodney W. Grimesprevents this. 95581135783SRuslan Ermilov.It Va Replyall 9569b50d902SRodney W. GrimesReverses the sense of 9579b50d902SRodney W. Grimes.Ic reply 9589b50d902SRodney W. Grimesand 9599b50d902SRodney W. Grimes.Ic Reply 9609b50d902SRodney W. Grimescommands. 96181135783SRuslan Ermilov.It Va quiet 9629b50d902SRodney W. GrimesSuppresses the printing of the version when first invoked. 96381135783SRuslan Ermilov.It Va searchheaders 964856f23edSMike HeffnerIf this option is set, then a message-list specifier in the form 965856f23edSMike Heffner.Dq Li / Ns Ar x Ns Li : Ns Ar y 966856f23edSMike Heffnerwill expand to all messages containing the substring 96781135783SRuslan Ermilov.Ar y 968856f23edSMike Heffnerin the header field 96981135783SRuslan Ermilov.Ar x . 970856f23edSMike HeffnerThe string search is case insensitive. 971856f23edSMike HeffnerIf 97281135783SRuslan Ermilov.Ar x 973856f23edSMike Heffneris ommitted, it will default to the 974856f23edSMike Heffner.Dq Li Subject 975856f23edSMike Heffnerheader field. 976856f23edSMike HeffnerThe form 977856f23edSMike Heffner.Dq Li /to: Ns Ar y 978856f23edSMike Heffneris a special case, and will expand 979856f23edSMike Heffnerto all messages containing the substring 98081135783SRuslan Ermilov.Ar y 981856f23edSMike Heffnerin the 982856f23edSMike Heffner.Dq Li To , 983856f23edSMike Heffner.Dq Li Cc 984856f23edSMike Heffneror 985856f23edSMike Heffner.Dq Li Bcc 986856f23edSMike Heffnerheader fields. 987856f23edSMike HeffnerThe check for 988856f23edSMike Heffner.Qq Li "to" 989856f23edSMike Heffneris case sensitive, so that 990856f23edSMike Heffner.Dq Li /to: Ns Ar y 991856f23edSMike Heffnercan be used to limit the search for 99281135783SRuslan Ermilov.Ar y 993856f23edSMike Heffnerto just the 994856f23edSMike Heffner.Dq Li To: 995856f23edSMike Heffnerfield. 99681135783SRuslan Ermilov.It Va verbose 9979b50d902SRodney W. GrimesSetting the option 99881135783SRuslan Ermilov.Va verbose 9999b50d902SRodney W. Grimesis the same as using the 10009b50d902SRodney W. Grimes.Fl v 10019b50d902SRodney W. Grimesflag on the command line. 100281135783SRuslan ErmilovWhen 100381135783SRuslan Ermilov.Nm 100481135783SRuslan Ermilovruns in verbose mode, 10059b50d902SRodney W. Grimesthe actual delivery of messages is displayed on the user's 10069b50d902SRodney W. Grimesterminal. 10079b50d902SRodney W. Grimes.El 100881135783SRuslan Ermilov.Ss "Option String Values" 10093e048b59SRuslan Ermilov.Bl -tag -width indent 10109b50d902SRodney W. Grimes.It Ev EDITOR 10119b50d902SRodney W. GrimesPathname of the text editor to use in the 10129b50d902SRodney W. Grimes.Ic edit 10139b50d902SRodney W. Grimescommand and 101481135783SRuslan Ermilov.Ic ~e 10159b50d902SRodney W. Grimesescape. 10169b50d902SRodney W. GrimesIf not defined, then a default editor is used. 10179b50d902SRodney W. Grimes.It Ev LISTER 10189b50d902SRodney W. GrimesPathname of the directory lister to use in the 10199b50d902SRodney W. Grimes.Ic folders 10209b50d902SRodney W. Grimescommand. 10219b50d902SRodney W. GrimesDefault is 10229b50d902SRodney W. Grimes.Pa /bin/ls . 10239b50d902SRodney W. Grimes.It Ev PAGER 10249b50d902SRodney W. GrimesPathname of the program to use in the 10259b50d902SRodney W. Grimes.Ic more 10269b50d902SRodney W. Grimescommand or when 102781135783SRuslan Ermilov.Va crt 10289b50d902SRodney W. Grimesvariable is set. 10299b50d902SRodney W. GrimesThe default paginator 10309b50d902SRodney W. Grimes.Xr more 1 10319b50d902SRodney W. Grimesis used if this option is not defined. 103299bd6601SJoerg Wunsch.It Ev REPLYTO 103399bd6601SJoerg WunschIf set, will be used to initialize the Reply-To field for outgoing 103499bd6601SJoerg Wunschmessages. 10359b50d902SRodney W. Grimes.It Ev SHELL 10369b50d902SRodney W. GrimesPathname of the shell to use in the 1037856f23edSMike Heffner.Ic \&! 10389b50d902SRodney W. Grimescommand and the 103981135783SRuslan Ermilov.Ic ~! 10409b50d902SRodney W. Grimesescape. 10419b50d902SRodney W. GrimesA default shell is used if this option is 10429b50d902SRodney W. Grimesnot defined. 10439b50d902SRodney W. Grimes.It Ev VISUAL 10449b50d902SRodney W. GrimesPathname of the text editor to use in the 10459b50d902SRodney W. Grimes.Ic visual 10469b50d902SRodney W. Grimescommand and 104781135783SRuslan Ermilov.Ic ~v 10489b50d902SRodney W. Grimesescape. 10499b50d902SRodney W. Grimes.It Va crt 10509b50d902SRodney W. GrimesThe valued option 10519b50d902SRodney W. Grimes.Va crt 10529b50d902SRodney W. Grimesis used as a threshold to determine how long a message must 10539b50d902SRodney W. Grimesbe before 10549b50d902SRodney W. Grimes.Ev PAGER 10559b50d902SRodney W. Grimesis used to read it. 10569b50d902SRodney W. GrimesIf 10579b50d902SRodney W. Grimes.Va crt 10589b50d902SRodney W. Grimesis set without a value, 10599b50d902SRodney W. Grimesthen the height of the terminal screen stored in the system 10609b50d902SRodney W. Grimesis used to compute the threshold (see 10619b50d902SRodney W. Grimes.Xr stty 1 ) . 106281135783SRuslan Ermilov.It Va escape 10639b50d902SRodney W. GrimesIf defined, the first character of this option gives the character to 106481135783SRuslan Ermilovuse in the place of 106581135783SRuslan Ermilov.Ql ~ 106681135783SRuslan Ermilovto denote escapes. 106781135783SRuslan Ermilov.It Va folder 10689b50d902SRodney W. GrimesThe name of the directory to use for storing folders of 10699b50d902SRodney W. Grimesmessages. 107081135783SRuslan ErmilovIf this name begins with a 107181135783SRuslan Ermilov.Ql / , 10728fe908efSRuslan Ermilov.Nm 10739b50d902SRodney W. Grimesconsiders it to be an absolute pathname; otherwise, the 10749b50d902SRodney W. Grimesfolder directory is found relative to your home directory. 10759b50d902SRodney W. Grimes.It Ev MBOX 107681135783SRuslan ErmilovThe name of the mailbox file. 10779b50d902SRodney W. GrimesIt can be the name of a folder. 10789b50d902SRodney W. GrimesThe default is 107981135783SRuslan Ermilov.Pa mbox 10809b50d902SRodney W. Grimesin the user's home directory. 108181135783SRuslan Ermilov.It Va record 10829b50d902SRodney W. GrimesIf defined, gives the pathname of the file used to record all outgoing 10839b50d902SRodney W. Grimesmail. 10849b50d902SRodney W. GrimesIf not defined, then outgoing mail is not so saved. 108581135783SRuslan Ermilov.It Va indentprefix 108681135783SRuslan ErmilovString used by the 108781135783SRuslan Ermilov.Ic ~m 108881135783SRuslan Ermilovtilde escape for indenting messages, in place of 108981135783SRuslan Ermilovthe normal tab character 109081135783SRuslan Ermilov.Pq Li ^I . 10919b50d902SRodney W. GrimesBe sure to quote the value if it contains 10929b50d902SRodney W. Grimesspaces or tabs. 109381135783SRuslan Ermilov.It Va toplines 10949b50d902SRodney W. GrimesIf defined, gives the number of lines of a message to be printed out 10959b50d902SRodney W. Grimeswith the 10969b50d902SRodney W. Grimes.Ic top 10979b50d902SRodney W. Grimescommand; normally, the first five lines are printed. 10989b50d902SRodney W. Grimes.El 10999b50d902SRodney W. Grimes.Sh ENVIRONMENT 11009b50d902SRodney W. Grimes.Nm Mail 11019b50d902SRodney W. Grimesutilizes the 11029b50d902SRodney W. Grimes.Ev HOME 11039b50d902SRodney W. Grimesand 11049b50d902SRodney W. Grimes.Ev USER 110581135783SRuslan Ermilovenvironment variables. 110681135783SRuslan ErmilovAlso, if the 1107d34dd133SJordan K. Hubbard.Ev MAIL 1108d34dd133SJordan K. Hubbardenvironment variable is set, it is used as the 1109d34dd133SJordan K. Hubbardlocation of the user's mailbox instead of the 111081135783SRuslan Ermilovdefault in 111181135783SRuslan Ermilov.Pa /var/mail . 11129b50d902SRodney W. Grimes.Sh FILES 111381135783SRuslan Ermilov.Bl -tag -width ".Pa /usr/share/misc/mail.*help" -compact 1114ec07fbefSMark Murray.It Pa /var/mail/* 11159b50d902SRodney W. GrimesPost office. 1116d0353b83SRuslan Ermilov.It Pa ~/mbox 11179b50d902SRodney W. GrimesUser's old mail. 1118d0353b83SRuslan Ermilov.It Pa ~/.mailrc 111981135783SRuslan ErmilovFile giving initial 112081135783SRuslan Ermilov.Nm 112181135783SRuslan Ermilovcommands. 1122856f23edSMike HeffnerThis can be overridden by setting the 1123856f23edSMike Heffner.Ev MAILRC 1124856f23edSMike Heffnerenvironment variable. 11259b50d902SRodney W. Grimes.It Pa /tmp/R* 11269b50d902SRodney W. GrimesTemporary files. 1127e9b074c3SJordan K. Hubbard.It Pa /usr/share/misc/mail.*help 11289b50d902SRodney W. GrimesHelp files. 1129726b61abSRuslan Ermilov.Pp 1130e9b074c3SJordan K. Hubbard.It Pa /usr/share/misc/mail.rc 1131e9b074c3SJordan K. Hubbard.It Pa /usr/local/etc/mail.rc 1132000ee932SWolfram Schneider.It Pa /etc/mail.rc 113387faa07bSSheldon HearnSystem-wide initialization files. 113487faa07bSSheldon HearnEach file will be sourced, in order, 1135e9b074c3SJordan K. Hubbardif it exists. 11369b50d902SRodney W. Grimes.El 11379b50d902SRodney W. Grimes.Sh SEE ALSO 11389b50d902SRodney W. Grimes.Xr fmt 1 , 11399b50d902SRodney W. Grimes.Xr newaliases 1 , 11409b50d902SRodney W. Grimes.Xr vacation 1 , 11419b50d902SRodney W. Grimes.Xr aliases 5 , 11429b50d902SRodney W. Grimes.Xr mailaddr 7 , 11439b50d902SRodney W. Grimes.Xr sendmail 8 11449b50d902SRodney W. Grimes.Rs 114598849115SRuslan Ermilov.%T "The Mail Reference Manual" 11469b50d902SRodney W. Grimes.Re 11479b50d902SRodney W. Grimes.Sh HISTORY 11489b50d902SRodney W. GrimesA 1149b8923d4cSWolfram Schneider.Nm 11509b50d902SRodney W. Grimescommand 11519b50d902SRodney W. Grimesappeared in 1152b8923d4cSWolfram Schneider.At v1 . 11539b50d902SRodney W. GrimesThis man page is derived from 11549b50d902SRodney W. Grimes.%T "The Mail Reference Manual" 115581135783SRuslan Ermilovoriginally written by 115681135783SRuslan Ermilov.An Kurt Shoens . 11579b50d902SRodney W. Grimes.Sh BUGS 11589b50d902SRodney W. GrimesThere are some flags that are not documented here. 11599b50d902SRodney W. GrimesMost are 11609b50d902SRodney W. Grimesnot useful to the general user. 11619b50d902SRodney W. Grimes.Pp 11629b50d902SRodney W. GrimesUsually, 11638fe908efSRuslan Ermilov.Nm 11649b50d902SRodney W. Grimesis just a link to 11659b50d902SRodney W. Grimes.Nm Mail , 11669b50d902SRodney W. Grimeswhich can be confusing. 1167856f23edSMike Heffner.Pp 1168856f23edSMike HeffnerThe name of the 1169856f23edSMike Heffner.Ic alternates 1170856f23edSMike Heffnerlist is incorrect English (it should be 1171856f23edSMike Heffner.Dq alternatives ) , 1172856f23edSMike Heffnerbut is retained for compatibility. 1173