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

📄 629-632.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=629-632//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="../ch32/625-628.html">Previous</A></TD>

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

<TD><A HREF="632-634.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Chapter 33<BR>Using Electronic Mail

</FONT></H2>

<P><I>by Steve Burnett</I></P>

<DL>

<DT><B><BIG>I</BIG>n this chapter

</B><DT>Understanding E-Mail

<DT>Sending E-Mail with <TT>mail</TT>

<DT>Reading Your Mail

<DT>Printing Mail Messages

<DT>Getting Help with <TT>mail</TT>

<DT>Saving E-Mail to Files with <TT>mail</TT>

<DT>Deleting and Undeleting Messages with <TT>mail</TT>

<DT>Replying to E-Mail with <TT>mail</TT>

<DT>Routing Mail to Others

<DT>Customizing Your <TT>mail</TT> Environment

<DT>Quitting the <TT>mail</TT> Program

<DT>Using the <TT>elm</TT> Mailer

<DT>Using the <TT>Mutt</TT> E-Mail Client

</DL>

<P>Electronic mail, or e-mail, seems to have taken the world by storm. Millions of computer users worldwide have access to electronic mail. A large number of commercial networks or Internet service providers (ISPs) can give you or your organization access to electronic mail around the world.

</P>

<H3><A NAME="Heading2"></A><FONT COLOR="#000077">Understanding E-Mail</FONT></H3>

<P>E-mail is any program that users on a single computer system or a network of systems use to send and receive electronic messages. At a minimum, you provide the program with the address of the recipient and the message you want to send. The address includes the login name of the person who is to receive the mail. If that user is on another system in a network, the address also includes a means of identifying the target computer system. You either prepare the message while you&#146;re using your e-mail program, or you prepare it beforehand by using a text editor such as <TT>vi</TT>.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>See</B> &#147;Using <TT>vi</TT>,&#148; <B>p. 181</B><HR></FONT>

</BLOCKQUOTE>

<P>Using electronic mail has several advantages:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;You can send reports, data, and documents that can reach their destination in a matter of seconds or minutes.

<DD><B>&#149;</B>&nbsp;&nbsp;You don&#146;t have to worry about interrupting someone when you send a message, nor are you necessarily interrupted when you receive messages&#151;that&#146;s handled by the computer system.

<DD><B>&#149;</B>&nbsp;&nbsp;You don&#146;t need to play phone tag or make an appointment to communicate with someone.

<DD><B>&#149;</B>&nbsp;&nbsp;You can send and receive at a convenient time.

</DL>

<P>When you send e-mail, it&#146;s up to the computer system to make the delivery, which can involve putting your message out on a network to be delivered at some other site. At this point, you say that the mail has been sent. Soon after that, the message arrives at the recipient&#146;s machine.

</P>

<P>If the sender and the receiver are on the same computer system, the sending and receiving all takes place on one machine. The e-mail system on the target computer verifies that the addressee exists, and the message is added to a file that holds all the e-mail for that user (if no network is involved, the local computer system verifies the addressee). The mail-storage file is called the user&#146;s <I>system mailbox</I> and usually has the same name as the user who&#146;s receiving the mail. For example, if your login name is george, your system mailbox is the file named george in the directory /var/spool/mail. When the message has been &#147;delivered&#148; to the mailbox, you say that the mail has been received.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>There&#146;s a common kind of e-mail, called Post Office Protocol (POP) mail, where e-mail is stored on a remote system and is then retrieved as you read mail. This chapter assumes that you&#146;re running a full mail system on your Linux computer, complete with the <TT>sendmail</TT> program, which handles the background jobs of sending and receiving e-mail.<HR></FONT>

</BLOCKQUOTE>

<P>Figure 33.1 shows the relationship between sending and receiving e-mail.

</P>

<P><A NAME="Fig1"></A><A HREF="javascript:displayWindow('images/33-01.jpg',417,256 )"><IMG SRC="images/33-01t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/33-01.jpg',417,256)"><FONT COLOR="#000077"><B>FIG. 33.1</B></FONT></A>&nbsp;&nbsp;Sending and receiving e-mail.</P>



<TABLE BORDER="2" BORDERCOLOR="#0000" ALIGN="CENTER">

<TR><TD><FONT SIZE="+1"><B>Does the Mail Always Get Through?</B></FONT>

<P>When you send e-mail, you may see a message on-screen that says <TT>Mail Sent!</TT> This means that the mail has been sent&#151;not that it has been received or delivered. Usually, your e-mail system will notify you if your message can&#146;t be delivered.</P>

<P>E-mail messages may not go through for several reasons. If mail is going out to a network, the network address may be correct but the name of the user on that network may not be correct. Or perhaps the complete address is correct, but because of problems with permissions or quotas, the message couldn&#146;t be placed in the user&#146;s system mailbox. In both cases, the mail was sent but was undeliverable. Another scenario is that the e-mail was delivered but the user&#146;s mailbox was corrupted or destroyed. A final possibility is that the recipient ignores e-mail or doesn&#146;t log in for several days, weeks, or more.</P>

</TABLE>



<P>Your computer system notifies you when you have mail. When you read your e-mail, you can treat it on a message-by-message basis. Some of the things you can do with your mail are the following:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;Delete individual messages after you read them&#151;or without bothering to read them (using e-mail doesn&#146;t mean that you won&#146;t get junk mail).

<DD><B>&#149;</B>&nbsp;&nbsp;Keep some messages in the system mailbox.

<DD><B>&#149;</B>&nbsp;&nbsp;Keep some messages in a personal mailbox.

<DD><B>&#149;</B>&nbsp;&nbsp;Keep other messages in individual files or folders.

<DD><B>&#149;</B>&nbsp;&nbsp;Reply directly to the sender of a message.

<DD><B>&#149;</B>&nbsp;&nbsp;Do a &#147;group reply&#148; to a group of users who all received the same message.

<DD><B>&#149;</B>&nbsp;&nbsp;Forward mail to others.

<DD><B>&#149;</B>&nbsp;&nbsp;Print your mail.

</DL>

<P>It&#146;s up to you to manage your mail so that it doesn&#146;t take up any more disk space than necessary. You most certainly don&#146;t have to save every piece of e-mail you get. You&#146;ll also see that it&#146;s easier to read your incoming mail if you regularly delete or remove messages from your system mailbox.

</P>

<P>Several different e-mail programs are available for Linux, including e-mail programs that are integrated with Web browsers such as Netscape. The most common e-mail interface, available on virtually every UNIX environment, is <TT>mail</TT>. With the <TT>mail</TT> program, you can do the following:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;Manage and view your e-mail.

<DD><B>&#149;</B>&nbsp;&nbsp;Include a subject header on e-mail you send.

<DD><B>&#149;</B>&nbsp;&nbsp;Include a cc header for sending copies of e-mail to others.

<DD><B>&#149;</B>&nbsp;&nbsp;Forward e-mail to others.

<DD><B>&#149;</B>&nbsp;&nbsp;Set up mailing lists.

</DL>

<P>This section shows examples of <TT>mail</TT>. Later in the chapter, you&#146;re introduced to another mail program for Linux&#151;the <TT>elm</TT> mailer.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="../ch32/625-628.html">Previous</A></TD>

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

<TD><A HREF="632-634.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 + -