📄 mail2.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..\".\" @(#)mail2.nr 8.1 (Berkeley) 6/8/93.\".bp.sh 1 "Common usage".ppThe.i Mailcommand has two distinct usages, according to whether onewants to send or receive mail. Sending mail is simple: to send amessage to a user whose login name is, say,\*(lqroot,\*(rquse the shellcommand:.(l% Mail root.)lthen type your message. When you reach the end of the message, typean EOT (control\-d) at the beginning of a line, which will cause.i Mailto echo \*(lqEOT\*(rq and return you to the Shell. When the user you sent mailto next logs in, he will receive the message:.(lYou have mail..)lto alert him to the existence of your message..ppIf, while you are composing the messageyou decide that you do not wish to send it after all, you canabort the letter with a \s-2RUBOUT\s0. Typing a single \s-2RUBOUT\s0causes.i Mailto print.(l(Interrupt -- one more to kill letter).)lTyping a second\s-2RUBOUT\s0 causes.i Mailto save your partial letter on the file.q dead.letterin your home directory and abort the letter.Once you havesent mail to someone, there is no way to undo the act, so becareful..ppThe message your recipient reads will consist of the message youtyped, preceded by a line telling who sent the message (your login name)and the date and time itwas sent..ppIf you want to send the same message to several other people, you can listtheir login names on the command line.Thus,.(l% Mail sam bob johnTuition fees are due next Friday. Don't forget!!<Control\-d>EOT%.)lwill send the reminder to sam, bob, and john..ppIf, when you log in, you see the message,.(lYou have mail..)lyou can read the mail by typing simply:.(l% Mail.)l.i Mailwill respond by typing its version number and date and then listingthe messages you have waiting. Then it will type a prompt and awaityour command. The messages are assigned numbers starting with 1 \*- yourefer to the messages with these numbers..i Mailkeeps track of which messages are.i new(have been sent since you last read your mail) and.i read(have been read by you). New messages have an.b Nnext to them in the header listing and old, but unread messages havea.b Unext to them..i Mailkeeps track of new/old and read/unread messages by putting aheader field called.q Statusinto your messages..ppTo look at a specific message, use the.b typecommand, which may be abbreviated to simply.b t .For example, if you had the following messages:.(lN 1 root Wed Sep 21 09:21 "Tuition fees"N 2 sam Tue Sep 20 22:55.)lyou could examine the first message by giving the command:.(ltype 1.)lwhich might cause.i Mailto respond with, for example:.(lMessage 1:From root Wed Sep 21 09:21:45 1978Subject: Tuition feesStatus: RTuition fees are due next Wednesday. Don't forget!!.)lMany.i Mailcommands that operate on messages take a message number as anargument like the.b typecommand. For these commands, there is a notion of a currentmessage. When you enter the.i Mailprogram, the current message is initially the first one. Thus,you can often omit the message number and use, for example,.(lt.)lto type the current message. As a further shorthand, you can type a messageby simply giving its message number. Hence,.(l1.)lwould type the first message..ppFrequently, it is useful to read the messages in your mailbox in order,one after another. You can read the next message in.i Mailby simply typing a newline. As a special case, you can type a newlineas your first command to.i Mailto type the first message..ppIf, after typing a message, you wish to immediately send a reply,you can do so with the.b replycommand..b Reply ,like.b type ,takes a message number as an argument..i Mailthen begins a message addressed to the user who sent you the message.You may then type in your letter in reply, followed by a <control-d>at the beginning of a line, as before..i Mailwill type EOT, then type the ampersand prompt to indicate its readinessto accept another command. In our example, if, after typing thefirst message, you wished to reply to it, you might give the command:.(lreply.)l.i Mailresponds by typing:.(lTo: rootSubject: Re: Tuition fees.)land waiting for you to enter your letter.You are now in the message collection mode described at the beginningof this section and.i Mailwill gather up your message up to a control\-d.Note that it copies the subjectheader from the original message. This is useful in that correspondenceabout a particular matter will tend to retain the same subject heading,making it easy to recognize. If there are other header fields inthe message, the information found will also be used.For example, if the letter had a.q "To:"header listing several recipients,.i Mailwould arrange to send your replay to the same people as well.Similarly, if the original message contained a.q "Cc:"(carbon copies to) field,.i Mailwould send your reply to.i thoseusers, too..i Mailis careful, though, not too send the message to.i you ,even if you appear in the.q "To:"or.q "Cc:"field, unless you ask to be included explicitly. See section 4 for moredetails..ppAfter typing in your letter, the dialog with.i Mailmight look like the following:.(lreplyTo: rootSubject: Tuition feesThanks for the reminderEOT&.)l.ppThe.b replycommand is especially useful for sustaining extended conversationsover the message system, with other.q listeningusers receiving copies of the conversation. The.b replycommand can be abbreviated to.b r ..ppSometimes you will receive a message that has been sent toseveral people and wish to reply.i onlyto the person who sent it..b Replywith a capital.b Rreplies to a message, but sends a copy to the sender only..ppIf you wish, while reading your mail, to send a message to someone,but not as a reply to one of your messages, you can send the messagedirectly with the.b mailcommand, which takes as arguments the names of the recipients you wishto send to. For example, to send a message to.q frank,you would do:.(lmail frankThis is to confirm our meeting next Friday at 4.EOT&.)lThe.b mailcommand can be abbreviated to.b m ..ppNormally, each message you receive is saved in the file.i mboxin your login directory at the time you leave.i Mail .Often,however, you will not want to save a particular message youhave received because it is only of passing interest. To avoidsaving a message in.i mboxyou can delete it using the.b deletecommand. In our example,.(ldelete 1.)lwill prevent.i Mailfrom saving message 1 (from root) in.i mbox .In addition to not saving deleted messages,.i Mailwill not letyou type them, either. The effect is to make the message disappearaltogether, along with its number. The.b delete
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -