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

📄 414-418.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Configuration and Installation:Linux and the Internet</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=1558285660//-->

<!--TITLE=Linux Configuration and Installation//-->

<!--AUTHOR=Patrick Volkerding//-->

<!--AUTHOR=Kevin Reichard//-->

<!--AUTHOR=Eric Foster//-->

<!--PUBLISHER=IDG Books Worldwide, Inc.//-->

<!--IMPRINT=M & T Books//-->

<!--CHAPTER=9//-->

<!--PAGES=414-418//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="410-414.html">Previous</A></TD>

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

<TD><A HREF="418-420.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P><FONT SIZE="+1"><B>What Do I Do with My Messages?</B></FONT></P>

<P>After you read a message, the shell presents you with a different prompt:

</P>

<!-- CODE SNIP //-->

<PRE>

     &#38;

</PRE>

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

<P>asking for a response related to the mail program. There are many actions you can take at this point; the handiest options are listed in Table 9.1.

</P>

<TABLE WIDTH="100%"><CAPTION><B>Table 9.1</B> A Selection of Mail Commands

<TR>

<TH WIDTH="25%" ALIGN="LEFT">Command

<TH WIDTH="75%" ALIGN="LEFT">Result

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TD><B>Return</B>

<TD>Prints next message.

<TR>

<TD><B>-</B>

<TD>Prints previous message.

<TR>

<TD><B>d</B>

<TD>Deletes current message.

<TR>

<TD><B>d<I>N</I></B>

<TD>Deletes message <I>N</I>.

<TR>

<TD><B>dp</B>

<TD>Deletes current message and goes to the next message.

<TR>

<TD><B>dq</B>

<TD>Deletes current message and quit.

<TR>

<TD><B>u <I>N</I></B>

<TD>Undeletes message <I>N</I>.

<TR>

<TD VALIGN="TOP"><B>s <I>filename</I></B>

<TD>Saves message to <I>filename</I>; if <I>filename</I> is not specified, message is saved to <B>$HOME/mbox</B>.

<TR>

<TD VALIGN="TOP"><B>w <I>filename</I></B>

<TD>Saves message without header information to <I>filename</I>; if <I>filename</I> is not specified, message is saved to <B>$HOME/mbox</B>.

<TR>

<TD><B>?</B>

<TD>Lists mail commands.

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<P><FONT SIZE="+1"><B>Saving Messages</B></FONT></P>

<P>As we saw in Table 9.1, saving a message is simply a matter of typing:

</P>

<!-- CODE SNIP //-->

<PRE>

     ? s filename

</PRE>

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

<P>If you don&#146;t get many messages, it&#146;s no big deal to save them all to the same file. But if you get a lot of messages on many topics, it&#146;s a good idea to introduce some organization to your mail habits.

</P>

<P>Let&#146;s say you&#146;re working on a project with user <I>erc</I>, and you want to keep all of his mail messages in the same file. You do so with the <I>s</I> option at the <B>?</B> prompt:</P>

<!-- CODE SNIP //-->

<PRE>

     ? s erc

</PRE>

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

<P>where <B>erc</B> is the name of the file containing his mail messages. When you do this the first time, the shell creates a file named <B>erc</B>. Subsequent uses will append mail messages to the existing <B>erc</B> file.</P>

<P>To read this file, use <B>mail</B> with the -<I>f</I> option:</P>

<!-- CODE SNIP //-->

<PRE>

     gilbert:/$ mail -f erc

</PRE>

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

<P>Don&#146;t make the mistake of assuming your electronic mail messages are private. Because mail messages normally appear in unencrypted text files, anyone with superuser privileges, such as your system administrator, can read your mail.

</P>

<P>Few businesses have policies regarding the privacy of electronic mail communications. When in doubt, assume that your boss can read your mail.</P>

<P><FONT SIZE="+1"><B>Other Mail Packages</B></FONT></P>

<P>As you can tell, mail sports an exceedingly primitive interface. Over the years, a crop of new mail programs have appeared, some commercial software and some free, each of which aims at making life easier for the user. Some of the free ones are included with Linux.

</P>

<P><B>Xmh</B> is an X Window front end to <B>mh</B>, as shown in Figure 9.4.</P>

<P><A NAME="Fig4"></A><A HREF="javascript:displayWindow('images/09-04.jpg',512,406 )"><IMG SRC="images/09-04t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/09-04.jpg',512,406)"><FONT COLOR="#000077"><B>Figure 9.4</B></FONT></A>&nbsp;&nbsp;<B>Xmh</B> in action.

</P>

<P>Pine is another popular electronic-mail program, shown in Figure 9.5.

</P>

<P><A NAME="Fig5"></A><A HREF="javascript:displayWindow('images/09-05.jpg',582,368 )"><IMG SRC="images/09-05t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/09-05.jpg',582,368)"><FONT COLOR="#000077"><B>Figure 9.5</B></FONT></A>&nbsp;&nbsp;Pine in action.</P>

<P>Finally, there&#146;s <B>elm</B>, which is one of our favorites. Elm stands for electronic mail and it works by providing an easy-to-use interface over the standard mail program.</P>

<P>The basic <B>elm</B> screen looks like that shown in Figure 9.6.</P>

<P><A NAME="Fig6"></A><A HREF="javascript:displayWindow('images/09-06.jpg',582,368 )"><IMG SRC="images/09-06t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/09-06.jpg',582,368)"><FONT COLOR="#000077"><B>Figure 9.6</B></FONT></A>&nbsp;&nbsp;The <B>elm</B> mail program.

</P>

<P>You can use the arrow keys on your keyboard to select a message. Pressing <B>Return</B> reads the message. Elm is so simple, fast and easy that we think you&#146;ll soon be a convert. The online help, available by typing a question mark (<B>?</B>), should get you going in no time. (Like many users, we&#146;re often too busy to read the manual. In fact, we&#146;ve never read the <B>elm</B> manual&#151;the program is that easy.)</P>

<P>If you&#146;ve been observant, you&#146;ve noticed that all the programs shown in this section work from the same mail file. This is no accident; to prevent multiple mail files from popping up all over your Linux system (as well as the entire UNIX system, if you&#146;re networked), the mail packages work from the same incoming-mail file.</P>

<P>Linux also supports a series of commands that allow MIME attachments to mail messages, which is a very popular way to attach files to mail messages in a manner that almost any other Internet e-mail user can understand.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="410-414.html">Previous</A></TD>

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

<TD><A HREF="418-420.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 + -