📄 643-645.html
字号:
<HTML>
<HEAD>
<TITLE>Special Edition Using Linux, Fourth Edition:Using Electronic Mail</TITLE>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!--ISBN=0789717468//-->
<!--TITLE=Special Edition Using Linux, Fourth Edition//-->
<!--AUTHOR=Jack Tackett//-->
<!--AUTHOR=Jr.//-->
<!--AUTHOR=Steve Burnett//-->
<!--PUBLISHER=Macmillan Computer Publishing//-->
<!--IMPRINT=Que//-->
<!--CHAPTER=33//-->
<!--PAGES=643-645//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="640-643.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="645-648.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H4 ALIGN="LEFT"><A NAME="Heading18"></A><FONT COLOR="#000077">Forwarding Messages</FONT></H4>
<P>To forward a message (actually, you’re including the message with a message you compose), you must first start <TT>mail</TT> in the same way that you start it to read your messages. Then you use the <TT>m</TT>, <TT>r</TT>, or <TT>R</TT> command to send a message. As you compose your message, you use a tilde command, <TT>~f</TT>, to forward one or several messages. The general form of the <TT>~f</TT> command is <TT>~f <I>msglist</I></TT>. Here is a step-by-step example of how to forward a message:</P>
<DL>
<DD><B>1.</B> Start <TT>mail</TT> (type <TT><B>mail</B></TT> and press <Return>). The system responds with something similar to the following:
<!-- CODE //-->
<PRE>
mail Type ? for help.
“/var/spool/mail/bkorn”: 5 messages 2 new 1 unread
1 sarah Wed Jan 8 09:17 15/363
2 top@kite.fish.com Thu Jan 9 10:18 26/657 Meeting on
Friday
U 3 fred Fri Jan 10 08:09 32/900 New Orders
> N 4 jones Fri Jan 10 13:22 35/1347 Draft Report
N 5 smith@somewhere.com Sat Jan 11 13:21 76/3103 Excerpt from
book
?
</PRE>
<!-- END CODE //-->
<DD><B>2.</B> Read message 5 by typing <TT><B>5</B></TT> and pressing <Return>. (The text of that message isn’t shown here.) Suppose that you want to forward it to your friends whose addresses are sarah, anglee@hb.com, and lynn@netcong.com.
<DD><B>3.</B> Use the <TT>m</TT> command to send mail to the addresses listed in step 2, type a subject, and type a beginning for your message, as shown here:
<!-- CODE SNIP //-->
<PRE>
<B>? m sarah anglee@hb.com lynn@netcong.com</B>
Subject: <B>Forwarding an excerpt from new Que Linux book</B>
<B>Hi!</B>
<B>I’m forwarding an excerpt I came across from a new book by Que.</B>
<B>It’s Special Edition Using Linux, Fourth Edition. I’ll be</B>
<B>getting my own copy tomorrow.</B>
<B>Do you want me to pick up a copy for you, too?</B>
</PRE>
<!-- END CODE SNIP //-->
<DD><B>4.</B> Use the <TT>~f</TT> command to forward message number 5 (type <TT><B>~f 5</B></TT> and press <Return>). <TT>mail</TT> responds with the following message:
<!-- CODE SNIP //-->
<PRE>
Interpolating: 5
(continue)
</PRE>
<!-- END CODE SNIP //-->
<DD><B>5.</B> The cursor is now under the word “continue.” You can continue adding text to your mail message, or you can end it by typing <TT>~.</TT> and pressing <Return>. If you end it, the <TT>?</TT> prompt appears.
</DL>
<H4 ALIGN="LEFT"><A NAME="Heading19"></A><FONT COLOR="#000077">Sending a Copy with <I>mail</I>
</FONT></H4>
<P>You can send a copy of an e-mail message to one or more addresses by putting those addresses on what’s known as the <I>cc: list</I>. The cc: list works as you expect it to: The mail is sent to the primary address or addresses (those in the <TT>To</TT> header) and also to the address or addresses in the <TT>Cc</TT> header. To include addresses in the cc: list, use the tilde command <TT>~c <I>address</I></TT> while you’re sending the message.</P>
<P>The following example shows how to send a brief memo to a primary address (wjones) and a copy of it to yourself and another address (your address is bkorn, and the other user’s address is ecarlst). You send one to yourself so that you have a copy of the memo. Follow these steps to add a cc: list to the list of recipients:</P>
<DL>
<DD><B>1.</B> Start <TT>mail</TT> to send e-mail to the primary address, wjones, and give a subject header. Enter the following commands to achieve this:
<!-- CODE SNIP //-->
<PRE>
$ <B>mail fred</B>
Subject: <B>Memo - Sales Agreement with Framistan</B>
</PRE>
<!-- END CODE SNIP //-->
<DD><B>2.</B> Enter the text of the memo you want to send. For example, type the following:
<!-- CODE //-->
<PRE>
TO: Fred Jones
Date: Oct 31, 1996
From: Henry Charleston
RE: Sales Agreement With Framistan Motors
On October 27, 1996, I held a meeting with the CEO of Framistan Motors.
We concluded and initialed a sales agreement by which Framistan would
purchase 10,000 units of our thermo-embryonic carthurators. The
agreement has been forwarded to the appropriate parties in our
organization and we intend to formally complete the agreement within
two weeks.
</PRE>
<!-- END CODE //-->
<DD><B>3.</B> Give the <TT>~c</TT> address command to add addresses to the cc: list. For example, type the following to send copies to yourself (bkorn) and to ecarlst:
<!-- CODE SNIP //-->
<PRE>
<B>~c ecarlst bkorn</B>
</PRE>
<!-- END CODE SNIP //-->
<DD><B>4.</B> To send the message, enter a tilde and period (<TT><B>~.</B></TT>) and press <Return>. The <TT>EOT</TT> message appears, followed by the shell prompt.
</DL>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>TIP: </B>To review and possibly modify the headers on an outgoing message, enter <TT><B>~h</B></TT> while you’re composing the message. You’re shown the headers one at a time, and you can modify them.<HR></FONT>
</BLOCKQUOTE>
<P>When a message is sent this way, all the recipients can see the headers <TT>To</TT> and <TT>Cc</TT>. Anyone who replies to the message with the <TT>r</TT> command will send the reply to every address in the <TT>To</TT> and <TT>Cc</TT> lists, as well as to the author.</P>
<P>You can customize <TT>mail</TT> so that it always prompts you for a <TT>Cc</TT> header in the same way that it prompts you for the <TT>Subject</TT> header (this is discussed later in the section “Customizing Your <TT>mail</TT> Environment”). Of course, you can keep from entering anything in the <TT>Cc</TT> list by pressing <Return>.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="640-643.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="645-648.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -