⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 640-643.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 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=640-643//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="638-640.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="643-645.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H3><A NAME="Heading15"></A><FONT COLOR="#000077">Deleting and Undeleting Messages with <I>mail</I>

</FONT></H3>

<P>To delete a message from a file of messages you&#146;re reading, you use the <TT>d</TT> command. If you quit the <TT>mail</TT> program by using <TT>q</TT>, any messages you deleted with the <TT>d</TT> command are removed from the file.</P>

<P>You use the <TT>d</TT> or <TT>delete</TT> command to mark messages for deletion when you use <TT>mail</TT> to read your e-mail. If you then quit the program with <TT>q</TT>, the marked messages are removed from your mailbox. Unless you&#146;ve saved them, they&#146;re gone for good. For some messages, deleting without saving them is a very good idea.</P>

<P>To delete the current message, type <TT><B>d</B></TT> and press &lt;Return&gt;. You can also specify a message list.</P>

<P>If you mark a message or a group of messages to be deleted, you can change your mind and undelete the message or messages by using the <TT>u</TT> command. You must use the <TT>u</TT> command before you enter <TT>q</TT> to quit; when you enter <TT>q</TT>, the messages are gone for good. Use the <TT>u</TT> or <TT>undelete</TT> command in the same way you use <TT>d</TT> or <TT>delete</TT>.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>TIP:&nbsp;&nbsp;</B>To undelete all the messages you marked for deletion, enter <TT><B>u *</B></TT> at the <TT>?</TT> prompt.<HR></FONT>

</BLOCKQUOTE>

<H3><A NAME="Heading16"></A><FONT COLOR="#000077">Replying to E-Mail with <I>mail</I>

</FONT></H3>

<P>To reply to e-mail, use the address specified in the <TT>Reply-To</TT> header field. If that field isn&#146;t present, use the information in the <TT>Return-Path</TT> header field. Following are partial headers of two messages; one has both header fields, and the other has only the <TT>Return-Path</TT> header field. The pertinent fields are in bold in each example.</P>

<!-- CODE //-->

<PRE>

<I>Message 1:</I>



From server@malte.abc.com Mon Nov  8 18:31 EST 1993

Received: from MALTE.ABC.COM by s850.mwc.edu with SMTP

<B>Return-Path: &lt;server@matle.ams.com&gt;</B>

Date: Mon, 8 Nov 93 18:17:15 -0500

Comment: From the DuJour List

Originator: dujour@mathe.abc.com

Errors-To: asap@can.org

<B>Reply-To: &lt;dujour@mathe.abc.com&gt;</B>

Sender: dujour@mathe.abc.com



<I>Message 2:</I>



From jones Fri, Jan 7 13:22 EST 1994

Received: by your.system.com

Date: Fri, 7 Jan 1994 13:22:01 -0500

From: Carol Jones &lt;jones&gt;

<B>Return-Path: &lt;jones&gt;</B>

To: aborat, lynn, oackerm, bkorn

Subject: Draft Report

</PRE>

<!-- END CODE //-->

<P>To reply to the first message, use the <TT>Reply-To</TT> address dujour@mathe.abc.com. Note that the <TT>Reply-To</TT> and <TT>Return-Path</TT> fields are different. In the second example, use jones to respond to the sender of the message.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>Always use the <TT>Reply-To</TT> address if it&#146;s included in the header because it represents the specific address of the sender. When the <TT>Reply-To</TT> address isn&#146;t available, the <TT>Return-Path</TT> address usually provides an adequate address back to the sender.<HR></FONT>

</BLOCKQUOTE>

<P>You can let the <TT>mail</TT> program determine the address to use to reply to an electronic mail message. To do this, use either of the following commands:</P>

<TABLE><TR>

<TD><TT>R</TT>

<TD>Addresses a reply to the sender of the message

<TR>

<TD><TT>r</TT>

<TD>Addresses a reply to the sender and all recipients of an e-mail message

</TABLE>

<P>With either command, you can specify a message list, as explained earlier in this chapter. Otherwise, the <TT>R</TT> or <TT>r</TT> command applies to the current message.</P>

<P>The following partial header shows how to use these two commands. This header is excerpted from a message from Carol Jones, in which she asks a group to comment on a draft of a report she has prepared:</P>

<!-- CODE SNIP //-->

<PRE>

From jonesFri, Jan 7 13:22 EST 1994

Received: by your.system.com

Date: Fri, 7 Jan 1994 13:22:01 -0500

From: Carol Jones &lt;jones&gt;

Return-Path: &lt;jones&gt;

To: aborat, lynn, oackerm, bkorn

Subject: Draft Report

</PRE>

<!-- END CODE SNIP //-->

<P>To respond to jones only, enter <TT><B>R</B></TT> at the <TT>?</TT> prompt. You see the following response:</P>

<!-- CODE SNIP //-->

<PRE>

To: jones

Subject: Re: Draft Report

</PRE>

<!-- END CODE SNIP //-->

<P>The <TT>To</TT> line tells you that the reply is going to one person. The <TT>Subject</TT> header indicates that the message is a reply to the one originally sent.</P>

<P>To make comments for everyone on the distribution list to see, enter <TT>r</TT> at the <TT>?</TT> prompt. You see the following response lines:</P>

<!-- CODE SNIP //-->

<PRE>

To: jones, aborat, lynn, oackerm, bkorn

Subject: Re: Draft Report

</PRE>

<!-- END CODE SNIP //-->

<P>The <TT>To</TT> line tells you that the reply is going to everyone on the original distribution list, as well as the author. The <TT>Subject</TT> header indicates that the message is a reply to the one originally sent.</P>

<P>From here on, you enter your message in the manner described earlier in the section &#147;Sending E-Mail with <TT>mail</TT>.&#148;</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>CAUTION:&nbsp;&nbsp;</B><BR>Be careful about using <TT>r</TT> to reply to a message. Whatever you send is sent to everyone who got a copy of the original message. Because Linux is case-sensitive and most people aren&#146;t used to typing capital letters as commands, it&#146;s a very common mistake and can sometimes be embarrassing.<HR></FONT>

</BLOCKQUOTE>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>Think about what you write and who will read your message before you send a reply. Being sarcastic or scathing doesn&#146;t work very well with e-mail&#151;you usually end up sounding like a bully. Using e-mail isn&#146;t the same as talking with someone: You don&#146;t get a chance to see or hear the person&#146;s reactions, and he or she doesn&#146;t get a chance to see or hear you, either. When you use e-mail, it&#146;s a lot easier and more effective to be polite and direct.

<P>You can see how easy it is to forward mail; as soon as you send something to one person, you can never tell where the message will end up or how many people will see it. Think, and be considerate.<HR></FONT>

</BLOCKQUOTE>

</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>See</B> &#147;Lack of Visual Reference,&#148; <B>p. 662</B><HR></FONT>

</BLOCKQUOTE>

<H3><A NAME="Heading17"></A><FONT COLOR="#000077">Routing Mail to Others</FONT></H3>

<P>E-mail is distributed by addresses. Tasks such as forwarding a message, sending copies (cc:) of a message, creating aliases or simpler forms of addresses, and creating mailing lists all involve manipulating addresses. You don&#146;t have to do the manipulation directly&#151;the <TT>mail</TT> program has these capabilities built in.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="638-640.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="643-645.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 + -