📄 mail5.nr
字号:
.\" Copyright (c) 1980, 1993.\" The Regents of the University of California. All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)mail5.nr 8.1 (Berkeley) 6/8/93.\".bp.sh 1 "Additional features".ppThis section describes some additional commands useful forreading your mail, setting options, and handling lists of messages..sh 2 "Message lists".ppSeveral.i Mailcommands accept a list of messages as an argument.Along with.b typeand.b delete ,described in section 2,there is the.b fromcommand, which prints the message headers associated with themessage list passed to it.The.b fromcommand is particularly useful in conjunction with some of themessage list features described below..ppA.i "message list"consists of a list of message numbers, ranges, and names,separated by spaces or tabs. Message numbers may be eitherdecimal numbers, which directly specify messages, or one of thespecial characters.q \(ua.q "."or.q "$"to specify the first relevant, current, or lastrelevant message, respectively..i Relevanthere means, for most commands.q "not deleted"and.q "deleted"for the.b undeletecommand..ppA range of messages consists of two message numbers (of the formdescribed in the previous paragraph) separated by a dash.Thus, to print the first four messages, use.(ltype 1\-4.)land to print all the messages from the current message to the lastmessage, use.(ltype .\-$.)l.ppA.i nameis a user name. The user names given in the message list arecollected together and each message selected by other meansis checked to make sure it was sent by one of the named users.If the message consists entirely of user names, then everymessage sent by one of those users that is.i relevant(in the sense described earlier)is selected. Thus, to print every message sent to you by.q root,do.(ltype root.)l.ppAs a shorthand notation, you can specify simply.q *to get every.i relevant(same sense)message. Thus,.(ltype *.)lprints all undeleted messages,.(ldelete *.)ldeletes all undeleted messages, and.(lundelete *.)lundeletes all deleted messages..ppYou can search for the presence of a word in subject lines with.b / .For example, to print the headers of all messages that contain theword.q PASCAL,do:.(lfrom /pascal.)lNote that subject searching ignores upper/lower case differences..sh 2 "List of commands".ppThis section describes all the.i Mailcommands available whenreceiving mail..ip "\fB\-\fP\ \ "The.rb \-command goes to the previous message and prints it. The.rb \-command may be given a decimal number.i nas an argument, in which case the.i n thprevious message is gone to and printed..ip "\fB?\fP\ \ "Prints a brief summary of commands..ip "\fB!\fP\ \ "Used to preface a command to be executed by the shell..ip "\fBPrint\fP\ \ "Like.b print ,but also print out ignored header fields. See also\fBprint\fP, \fBignore\fP and \fBretain\fP.\fBPrint\fP can be abbreviated to \fBP\fP..ip "\fBReply\fP or \fBRespond\fP\ \ "Note the capital \fBR\fP in the name.Frame a reply to a one or more messages.The reply (or replies if you are using this on multiple messages)will be sent ONLY to the person who sent you the message(respectively, the set of people who sent the messages you arereplying to).You canadd people using the \fB~t\fP, \fB~c\fP and \fB~b\fPtilde escapes. The subject in your reply is formed by prefacing thesubject in the original message with.q "Re:"unless it already began thus.If the original message included a.q "reply-to"header field, the reply will go.i onlyto the recipient named by.q "reply-to."You type in your message using the same conventions available to youthrough the.b mailcommand.The.b Replycommand is especially useful for replying to messages that were sentto enormous distribution groups when you really just want tosend a message to the originator. Use it often.\fBReply\fP (and \fBRespond\fP) can be abbreviated to \fBR\fP..ip "\fBType\fP\ \ "Identical to the.b Printcommand.\fBType\fP can be abbreviated to \fBT\fP..ip "\fBalias\fP\ \ "Define a name to stand for a set of other names.This is used when you want to send messages to a certaingroup of people and want to avoid retyping their names.For example.(lalias project john sue willie kathryn.)lcreates an alias.i projectwhich expands to the four people John, Sue, Willie, and Kathryn.If no arguments are given, all currently-defined aliases are printed.If one argument is given, that alias is printed (if it exists).\fBAlias\fP can be abbreviated to \fBa\fP..ip "\fBalternates\fP\ \ "If you have accounts on several machines, you may find it convenientto use the /usr/lib/aliases on all the machines except one to directyour mail to a single account.The.b alternatescommand is used to inform.i Mailthat each of these other addresses is really.i you ..i Alternatestakes a list of user names and remembers that they are all actually you.When you.b replyto messages that were sent to one of these alternate names,.i Mailwill not bother to send a copy of the message to this other address (whichwould simply be directed back to you by the alias mechanism).If.i alternatesis given no argument, it lists the current set of alternate names..b Alternatesis usually used in the .mailrc file.\fBAlternates\fP can be abbreviated to \fBalt\fP..ip "\fBchdir\fP\ \ "The.b chdircommand allows you to change your current directory..b Chdirtakes a single argument, which is taken to be the pathname ofthe directory to change to. If no argument is given,.b chdirchanges to your home directory.\fBChdir\fP can be abbreviated to \fBc\fP..ip "\fBcopy\fP\ \ "The.b copycommand does the same thing that.b savedoes, except that it does not mark the messages it is used onfor deletion when you quit.\fBCopy\fP can be abbreviated to \fBco\fP..ip "\fBdelete\fP\ \ "Deletes a list of messages. Deleted messages can be reclaimedwith the.b undeletecommand.\fBDelete\fP can be abbreviated to \fBd\fP..ip "\fBdp\fP or \fBdt\fP\ \ "Thesecommands delete the current message and print the next message.They are useful for quickly reading and disposing of mail.If there is no next message, \fImail\fP says ``at EOF.''.ip "\fBedit\fP\ \ "To edit individual messages using the text editor, the.b editcommand is provided. The.b editcommand takes a list of messages as described under the.b typecommand and processes each by writing it into the fileMessage\c.i xwhere.i xis the message number being edited and executing the text editor on it.When you have edited the message to your satisfaction, write the messageout and quit, upon which.i Mailwill read the message back and remove the file..b Editcan be abbreviated to.b e ..ip "\fBelse\fP\ \ "Marks the end of the then-part of an.b ifstatement and the beginning of thepart to take effect if the condition of the.b ifstatement is false..ip "\fBendif\fP\ \ "Marks the end of an.b ifstatement..ip "\fBexit\fP or \fBxit\fP\ \ "Leave.i Mailwithout updating the system mailbox or the file your were reading.Thus, if you accidentally delete several messages, you can use.b exitto avoid scrambling your mailbox.\fBExit\fP can be abbreviated to \fBex\fP or \fBx\fP..ip "\fBfile\fP\ \ "The same as.b folder .\fBFile\fP can be abbreviated to \fBfi\fP..ip "\fBfolders\fP\ \ "List the names of the folders in your folder directory..ip "\fBfolder\fP\ \ "The.b foldercommand switches to a new mail file or folder. With no arguments, ittells you which file you are currently reading. If you giveit an argument, it will write out changes (such as deletions)you have made in the current file and read the new file.Some special conventions are recognized for the name:.(b.TScenter;c cl a.Name Meaning_# Previous file read% Your system mailbox%name \fIName\fP's system mailbox& Your ~/mbox file+folder A file in your folder directory.TE.)b\fBFolder\fP can be abbreviated to \fBfo\fP..ip "\fBfrom\fP\ \ "The.b fromcommand takes a list of messages and prints out the header lines for each one;hence.(lfrom joe.)lis the easy way to display all the message headers from \*(lqjoe.\*(rq\fBFrom\fP can be abbreviated to \fBf\fP..ip "\fBheaders\fP\ \ "When you start up.i Mailto read your mail, it lists the message headers that you have.These headers tell you who each message is from, when they werereceived, how many lines and characters each message is, and the.q "Subject:"header field of each message, if present. In addition,.i Mailtags the message header of each message that has been the objectof the.b preservecommand with a.q P.Messages that have been.b savedor.b writtenare flagged with a.q *.Finally,.b deletedmessages are not printed at all. If you wish to reprint the currentlist of message headers, you can do so with the.b headerscommand. The.b headerscommand (and thus the initial header listing)only lists the first so many message headers.The number of headers listed depends on the speed of yourterminal.This can be overridden by specifying the number of headers youwant with the.i windowoption..i Mailmaintains a notion of the current.q windowinto your messages for the purposes of printing headers.Use the.b zcommand to move forward and back a window.You can move.i Mail'snotion of the current window directly to a particular message byusing, for example,.(lheaders 40.)lto move.i Mail'sattention to the messages around message 40.If a ``+'' argument is given, then the next screenful of message headers isprinted, and if a ``\-'' argument is given, the previous screenful of messageheaders is printed.\fBHeaders\fP can be abbreviated to \fBh\fP..ip "\fBhelp\fP\ \ "Print a brief and usually out of date help message about the commandsin.i Mail .The .i manpage for .i mailis usually more up-to-date than either the help message or this manual.It is also a synonym for \fB?\fP..ip "\fBhold\fP\ \ "Arrange to hold a list of messages in the system mailbox, insteadof moving them to the file.i mboxin your home directory. If you set the binary option.i hold ,this will happen by default.It does not override the \fBdelete\fP command.\fBHold\fP can be abbreviated to \fBho\fP..ip "\fBif\fP\ \ "Commands in your.q .mailrcfile can be executed conditionally depending on whether you aresending or receiving mail with the.b ifcommand. For example, you can do:.(lif receive \fIcommands\fP...endif.)lAn.b elseform is also available:.(lif send \fIcommands\fP...else \fIcommands\fP...endif.)lNote that the only allowed conditions are.b receiveand.b send ..ip "\fBignore\fP \ \ ".b N.B.:.i Ignorehas been superseded by.i retain..brAdd the list of header fields named to the.i "ignore list" .Header fields in the ignore list are not printed on yourterminal when you print a message. This allows you to suppressprinting of certain machine-generated header fields, such as.i Viawhich are not usually of interest. The.b Typeand.b Printcommands can be used to print a message in its entirety, includingignored fields.If.b ignoreis executed with no arguments, it lists the current set of ignored fields..ip "\fBlist\fP\ \ "List the valid.i Mailcommands.\fBList\fP can be abbreviated to \fBl\fP... .ip \fBlocal\fP.. Define a list of local names for this host. This command is useful.. when the host is known by more than one name. Names in the list.. may be qualified be the domain of the host. The first name on the local.. list is the.. .i distinguished.. name of the host... The names on the local list are used by.. .i Mail.. to decide which addresses are local to the host... For example:.. .(l.. local ucbarpa.BERKELEY.ARPA arpa.BERKELEY.ARPA \\.. arpavax.BERKELEY.ARPA r.BERKELEY.ARPA \\.. ucb-arpa.ARPA.. .)l.. From this list we see that.. .i "fred@ucbarpa.BERKELEY.ARPA",.. .i "harold@arpa.BERKELEY",.. and.. .i "larry@r".. are all addresses of users on the local host... The.. .b local.. command is usually not used be general users since it is designed for.. local configuration; it is usually found in the file /usr/lib/Mail.rc..ip "\fBmail\fP\ \ "Send mail to one or more people. If you have the.i askoption set,.i Mailwill prompt you for a subject to your message. Then youcan type in your message, using tilde escapes as described insection 4 to edit, print, or modify your message. To signal yoursatisfaction with the message and send it, type control-d at thebeginning of a line, or a . alone on a line if you set the option.i dot .To abort the message, type two interrupt characters (\s-2RUBOUT\s0by default) in a row or use the.b ~qescape.The \fBmail\fP command can be abbreviated to \fBm\fP..ip "\fBmbox\fP\ \ "Indicate that a list of messages be sent to.i mboxin your home directory when you quit. This is the defaultaction for messages if you do.i nothave the.i holdoption set..ip "\fBnext\fP or \fB+\fP\ \ "The.b next
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -