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

📄 398-402.html

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

<HEAD>

<TITLE>Linux in Plain English:Linux Commands Organized by Group</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=1558285423//-->

<!--TITLE=Linux in Plain English//-->

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

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

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

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

<!--CHAPTER=5//-->

<!--PAGES=398-402//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="394-397.html">Previous</A></TD>

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

<TD><A HREF="403-413.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P><FONT SIZE="+1"><B>procmail......<TT>Process Mail</TT></B></FONT></P>

<P><B>procmail</B> <I>option(s) argument(s)</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>procmail</B> command works under the hood to process mail, usually through the <B>.forward</B> file mechanism as soon as mail arrives. It can also be installed to work immediately through the mail program.</P>

<P>The <B>procmail</B> command sets some environment variables to default values, reads the mail message from <B>stdin</B> until an end-of-file marker appears, separates the body from the header, and then, if no command-line arguments are present, looks for a file named <B>$HOME/.procmailrc</B>. This file routes the message to the correct folder.</P>

<P>Arguments containing = are considered to be environment-variable assignments. Any other arguments are presumed to be <B>rcfile</B> paths.</P>

<P>This is a complex command that can cause some damage to mail processing if not configured properly. Check the online-manual pages for more detailed information about <B>procmail</B>.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="25%" VALIGN="TOP"><B>-d <I>recipient</I></B>

<TD WIDTH="75%">Turns on explicit delivery mode, where delivery will be to the local user <I>recipient</I>. Cannot be used with <B>-p</B>.

<TR>

<TD VALIGN="TOP"><B>-f</B>

<TD>Regenerates a leading <I>From</I> line with <I>fromwhom</I> as the sender (instead of <B>-f</B> one could use the alternate and obsolete <B>-r</B>). If <I>fromwhom</I> consists of a single -, then <B>procmail</B> will only update the timestamp on the <I>From</I> line.

<TR>

<TD><B>-m</B>

<TD>Turns <B>procmail</B> into a general-purpose mail filter.

<TR>

<TD><B>-o</B>

<TD>Overrides fake <I>From</I> lines.

<TR>

<TD><B>-p</B>

<TD>Preserves the old environment.

<TR>

<TD VALIGN="TOP"><B>-t</B>

<TD>Makes <B>procmail</B> fail softly; if procmail cannot deliver to any a destination, the mail will not bounce, instead returning to the mail queue with another delivery attempt made in the future.

<TR>

<TD VALIGN="TOP"><B>-Y</B>

<TD>Works with Berkeley mailbox format, ignoring <I>Content-Length:</I> fields.

<TR>

<TD><B>-a <I>argument</I></B>

<TD>Sets $1 to <I>argument</I>.

</TABLE>

<P><FONT SIZE="+1"><B><I>SIGNALS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="25%"><B>TERMINATE</B>

<TD WIDTH="75%">Terminates prematurely and requeues the mail.

<TR>

<TD><B>HANGUP</B>

<TD>Terminates prematurely and bounces the mail.

<TR>

<TD><B>INTERRUPT</B>

<TD>Terminates prematurely and bounces the mail.

<TR>

<TD><B>QUIT</B>

<TD>Terminates prematurely and silently loses the mail.

<TR>

<TD><B>ALARM</B>

<TD>Forces a timeout.

<TR>

<TD><B>USR1</B>

<TD>Equivalent to VERBOSE=off.

<TR>

<TD><B>USR2</B>

<TD>Equivalent to VERBOSE=on.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>biff</B>

<DD><B>mail</B>

<DD><B>sendmail</B>

</DL>

<P><FONT SIZE="+1"><B>readmsg......<TT>Read Message</TT></B></FONT></P>

<P><B>readmsg</B> <I>option(s) selection folder</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>readmsg</B> command extracts messages from a mail folder. You&#146;ll usually do this when you&#146;re preparing mail in a text editor and want to quote a specific, existing message from your mail folder.</P>

<P>You use the <I>selection</I> argument to specify which message to grab from your mail folder. A wildcard (<B>*</B>) means to pull all messages, while a number refers to a specific message (with <B>0</B> or <B>$</B> referring to the last message in the mailbox). In addition, you can pull messages that contain a specific string; these strings don&#146;t need to be enclosed in quotes. In this instance, the first message that contains the string will be returned. (This method, by the way, is case sensitive).</P>

<P>You can also use <B>readmsg</B> from within the <B>elm</B> newsreader instead of an external editor, but it works a little differently in that situation. The mailbox used for retrieving messages is the current mailbox, not your inbox; the current <B>elm</B> message will be pulled; and the numbering scheme is a little different.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="20%" VALIGN="TOP"><B>-f <I>folder</I></B>

<TD WIDTH="80%">Uses <I>folder</I> instead of the incoming mailbox. This is useful when you want to search through mail you&#146;ve already sent.

<TR>

<TD VALIGN="TOP"><B>-h</B>

<TD>Includes all header information, not just the default <B>From:</B>, <B>Date:</B>, and <B>Subject:</B> fields.

<TR>

<TD><B>-n</B>

<TD>Excludes all headers from retrieved messages.

<TR>

<TD><B>-p</B>

<TD>Places form feeds (<B>Ctrl-L)</B> between messages headers.

<TR>

<TD VALIGN="TOP"><B>-a</B>

<TD>Returns all messages that returns the <I>string</I> on the command line, not just the first.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>elm</B>

<DD><B>newmail</B>

</DL>

<P><FONT SIZE="+1"><B>richtext......<TT>View Rich Text Document</TT></B></FONT></P>

<P><B>richtext</B> <I>option(s) filename</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>richtext</B> displays &#147;rich text&#148; documents&#151;usually mail messages&#151;on an ASCII terminal, using termcap settings to highlight and underline text. Rich text is part of the Multipurpose Internet Mail Extension (MIME) for multimedia Internet mail not Microsoft&#146;s Rich Text Format (RTF).</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="25%"><B>-c</B>

<TD WIDTH="75%">Displays text with no formatting.

<TR>

<TD><B>-f</B>

<TD>Specifies termcap escape codes for bold and italic text.

<TR>

<TD VALIGN="TOP"><B>-m</B>

<TD>Interprets &lt; in multibyte Japanese and Korean sequences as a true less-than symbol and not the start of a rich text command.

<TR>

<TD VALIGN="TOP"><B>-n</B>

<TD>Tells the command to perform no corrections on the raw rich text.

<TR>

<TD><B>-o</B>

<TD>Uses overstriking for underlining when appropriate.

<TR>

<TD><B>-p</B>

<TD>Summons system PAGER from environment variables.

<TR>

<TD VALIGN="TOP"><B>-s <I>charset</I></B>

<TD>Uses specified <I>charset</I> when processing text. <I>Charset</I> can be one of <I>us-ascii</I> (the default), <I>iso-2022-jp</I>, and <I>iso-2022-kr</I>.

<TR>

<TD><B>-t</B>

<TD>Overrides termcap escape codes.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>mailto</B>

<DD><B>metamail</B>

<DD><B>termcap</B>

</DL>

<P><FONT SIZE="+1"><B>rmail......<TT>Remote UUCP Mail</TT></B></FONT></P>

<P><B>rmail</B> <I>username</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>rmail</B> command interprets incoming mail received via uucp. With the advent of the Internet, this command has lessened in usage.</P>

<P><FONT SIZE="+1"><B><I>RELATED COMMAND</I></B></FONT></P>

<DL>

<DD><B>sendmail</B>

</DL>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="394-397.html">Previous</A></TD>

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

<TD><A HREF="403-413.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 + -