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

📄 advancedusage.html

📁 mutt-1.5.12 源代码。linux 下邮件接受的工具。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
single line, each line containing a tab separated address then name thensome other optional information.  On error, or if there are no matchingaddresses, return a non-zero exit code and a one line error message.</p><p>An example multiple response output:</p><pre class="screen">Searching database ... 20 entries ... 3 matching:me@cs.hmc.edu           Michael Elkins  mutt dudeblong@fiction.net       Brandon Long    mutt and moreroessler@guug.de        Thomas Roessler mutt pgp</pre><p></p><p>There are two mechanisms for accessing the query function of mutt.  Oneis to do a query from the index menu using the query function (default: Q).This will prompt for a query, then bring up the query menu which willlist the matching responses.  From the query menu, you can selectaddresses to create aliases, or to mail.  You can tag multiple addressesto mail, start a new query, or have a new query appended to the currentresponses.</p><p>The other mechanism for accessing the query function is for addresscompletion, similar to the alias completion.  In any prompt for addressentry, you can use the complete-query function (default: ^T) to run aquery based on the current address you have typed.  Like aliases, muttwill look for what you have typed back to the last space or comma.  Ifthere is a single response for that query, mutt will expand the addressin place.  If there are multiple responses, mutt will activate the querymenu.  At the query menu, you can select one or more addresses to beadded to the prompt.</p></div><div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="mailbox-formats"></a>6.聽Mailbox Formats</h2></div></div></div><p>Mutt supports reading and writing of four different mailbox formats:mbox, MMDF, MH and Maildir.  The mailbox type is autodetected, so thereis no need to use a flag for different mailbox types.  When creating newmailboxes, Mutt uses the default specified with the <a href="reference.html#mbox-type" title="3.110.聽mbox_type">$mbox_type</a> variable.</p><p><span class="bold"><strong>mbox</strong></span>.  This is the most widely used mailbox format for UNIX.  Allmessages are stored in a single file.  Each message has a line of the form:</p><p></p><pre class="screen">From me@cs.hmc.edu Fri, 11 Apr 1997 11:44:56 PST</pre><p></p><p>to denote the start of a new message (this is often referred to as the``From_'' line).</p><p><span class="bold"><strong>MMDF</strong></span>.  This is a variant of the <span class="emphasis"><em>mbox</em></span> format.  Each message issurrounded by lines containing ``^A^A^A^A'' (four control-A's).</p><p><span class="bold"><strong>MH</strong></span>. A radical departure from <span class="emphasis"><em>mbox</em></span> and <span class="emphasis"><em>MMDF</em></span>, a mailboxconsists of a directory and each message is stored in a separate file.The filename indicates the message number (however, this is may notcorrespond to the message number Mutt displays). Deleted messages arerenamed with a comma (,) prepended to the filename. <span class="bold"><strong>Note:</strong></span> Muttdetects this type of mailbox by looking for either <code class="literal">.mh_sequences</code>or <code class="literal">.xmhcache</code> (needed to distinguish normal directories from MHmailboxes).</p><p><span class="bold"><strong>Maildir</strong></span>.  The newest of the mailbox formats, used by the Qmail MTA (areplacement for sendmail).  Similar to <span class="emphasis"><em>MH</em></span>, except that it adds threesubdirectories of the mailbox: <span class="emphasis"><em>tmp</em></span>, <span class="emphasis"><em>new</em></span> and <span class="emphasis"><em>cur</em></span>.  Filenamesfor the messages are chosen in such a way they are unique, even when twoprograms are writing the mailbox over NFS, which means that no file lockingis needed.</p></div><div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="shortcuts"></a>7.聽Mailbox Shortcuts</h2></div></div></div><p>There are a number of built in shortcuts which refer to specific mailboxes.These shortcuts can be used anywhere you are prompted for a file or mailboxpath.</p><p></p><div class="itemizedlist"><ul type="disc"><li><p>! -- refers to your <a href="reference.html#spoolfile" title="3.264.聽spoolfile">$spoolfile</a> (incoming) mailbox</p></li><li><p>&gt; -- refers to your <a href="reference.html#mbox" title="3.109.聽mbox">$mbox</a> file</p></li><li><p>&lt; -- refers to your <a href="reference.html#record" title="3.231.聽record">$record</a> file</p></li><li><p>^ -- refers to the current mailbox</p></li><li><p>- or !! -- refers to the file you've last visited</p></li><li><p>藴 -- refers to your home directory</p></li><li><p>= or + -- refers to your <a href="reference.html#folder" title="3.54.聽folder">$folder</a> directory</p></li><li><p>@<span class="emphasis"><em>alias</em></span> -- refers to the <a href="configuration.html#save-hook" title="15.聽Specify default save filename">default save folder</a> as determined by the address of the alias</p></li></ul></div><p></p></div><div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="using-lists"></a>8.聽Handling Mailing Lists</h2></div></div></div><p>Mutt has a few configuration options that make dealing with largeamounts of mail easier.  The first thing you must do is to let Muttknow what addresses you consider to be mailing lists (technicallythis does not have to be a mailing list, but that is what it is mostoften used for), and what lists you are subscribed to.  This isaccomplished through the use of the <a href="configuration.html#lists" title="10.聽Mailing lists">lists and subscribe</a> commands in your muttrc.</p><p>Now that Mutt knows what your mailing lists are, it can do severalthings, the first of which is the ability to show the name of a listthrough which you received a message (i.e., of a subscribed list) inthe <span class="emphasis"><em>index</em></span> menu display.  This is useful to distinguish betweenpersonal and list mail in the same mailbox.  In the <a href="reference.html#index-format" title="3.95.聽index_format">$index_format</a> variable, the escape ``%L''will return the string ``To &lt;list&gt;'' when ``list'' appears in the``To'' field, and ``Cc &lt;list&gt;'' when it appears in the ``Cc''field (otherwise it returns the name of the author).</p><p>Often times the ``To'' and ``Cc'' fields in mailing list messagestend to get quite large. Most people do not bother to remove theauthor of the message they are reply to from the list, resulting intwo or more copies being sent to that person.  The ``list-reply''function, which by default is bound to ``L'' in the <span class="emphasis"><em>index</em></span> menuand <span class="emphasis"><em>pager</em></span>, helps reduce the clutter by only replying to theknown mailing list addresses instead of all recipients (except asspecified by <code class="literal">Mail-Followup-To</code>, see below).</p><p>Mutt also supports the <code class="literal">Mail-Followup-To</code> header.  When you senda message to a list of recipients which includes one or severalsubscribed mailing lists, and if the <a href="reference.html#followup-to" title="3.56.聽followup_to">$followup_to</a> option is set, mutt will generatea Mail-Followup-To header which contains all the recipients to whomyou send this message, but not your address. This indicates thatgroup-replies or list-replies (also known as ``followups'') to thismessage should only be sent to the original recipients of themessage, and not separately to you - you'll receive your copy throughone of the mailing lists you are subscribed to.</p><p>Conversely, when group-replying or list-replying to a message whichhas a <code class="literal">Mail-Followup-To</code> header, mutt will respect this header ifthe <a href="reference.html#honor-followup-to" title="3.74.聽honor_followup_to">$honor_followup_to</a> configurationvariable is set.  Using list-reply will in this case also make surethat the reply goes to the mailing list, even if it's not specifiedin the list of recipients in the <code class="literal">Mail-Followup-To</code>.</p><p>Note that, when header editing is enabled, you can create a<code class="literal">Mail-Followup-To</code> header manually.  Mutt will only auto-generatethis header if it doesn't exist when you send the message.</p><p>The other method some mailing list admins use is to generate a``Reply-To'' field which points back to the mailing list address ratherthan the author of the message.  This can create problems when tryingto reply directly to the author in private, since most mail clientswill automatically reply to the address given in the ``Reply-To''field.  Mutt uses the <a href="reference.html#reply-to" title="3.234.聽reply_to">$reply_to</a>variable to help decide which address to use.  If set to <span class="emphasis"><em>ask-yes</em></span> or<span class="emphasis"><em>ask-no</em></span>, you will beprompted as to whether or not you would like to use the address given inthe ``Reply-To'' field, or reply directly to the address given in the``From'' field.  When set to <span class="emphasis"><em>yes</em></span>, the ``Reply-To'' field will be used whenpresent.</p><p>The ``X-Label:'' header field can be used to further identify mailinglists or list subject matter (or just to annotate messagesindividually).  The <a href="reference.html#index-format" title="3.95.聽index_format">$index_format</a> variable's ``%y'' and``%Y'' escapes can be used to expand ``X-Label:'' fields in theindex, and Mutt's pattern-matcher can match regular expressions to``X-Label:'' fields with the ``藴y'' selector.  ``X-Label:'' is not astandard message header field, but it can easily be inserted by procmailand other mail filtering agents.</p><p>Lastly, Mutt has the ability to <a href="reference.html#sort" title="3.258.聽sort">sort</a> the mailbox into<a href="gettingstarted.html#threads" title="3.3.聽Threaded Mode">threads</a>.  A thread is a group of messages which all relate to the samesubject.  This is usually organized into a tree-like structure where amessage and all of its replies are represented graphically.  If you've everused a threaded news client, this is the same concept.  It makes dealingwith large volume mailing lists easier because you can easily deleteuninteresting threads and quickly find topics of value.</p></div><div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="editing-threads"></a>9.聽Editing threads</h2></div></div></div><p>Mutt has the ability to dynamically restructure threads that are brokeneither by misconfigured software or bad behaviour from somecorrespondents. This allows to clean your mailboxes formats) from theseannoyances which make it hard to follow a discussion.</p><div class="sect2" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="id2687015"></a>9.1.聽Linking threads</h3></div></div></div><p>Some mailers tend to "forget" to correctly set the "In-Reply-To:" and"References:" headers when replying to a message. This results in brokendiscussions because Mutt has not enough information to guess the correctthreading.You can fix this by tagging the reply, then moving to the parent messageand using the ``link-threads'' function (bound to &amp; by default). Thereply will then be connected to this "parent" message.</p><p>You can also connect multiple childs at once, tagging them and using thetag-prefix command (';') or the auto_tag option.</p></div><div class="sect2" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="id2687044"></a>9.2.聽Breaking threads</h3></div></div></div><p>On mailing lists, some people are in the bad habit of starting a newdiscussion by hitting "reply" to any message from the list and changingthe subject to a totally unrelated one.You can fix such threads by using the ``break-thread'' function (boundby default to #), which will turn the subthread starting from thecurrent message into a whole different thread.</p></div></div><div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="dsn"></a>10.聽Delivery Status Notification (DSN) Support</h2></div></div></div><p>RFC1894 defines a set of MIME content types for relaying informationabout the status of electronic mail messages.  These can be thought of as``return receipts.'' Berkeley sendmail 8.8.x currently has some commandline options in which the mail client can make requests as to what typeof status messages should be returned.</p><p>To support this, there are two variables. <a href="reference.html#dsn-notify" title="3.43.聽dsn_notify">$dsn_notify</a> is used to request receipts fordifferent results (such as failed message, message delivered, etc.).<a href="reference.html#dsn-return" title="3.44.聽dsn_return">$dsn_return</a> requests how muchof your message should be returned with the receipt (headers or fullmessage).  Refer to the man page on sendmail for more details on DSN.</p></div><div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="pop"></a>11.聽POP3 Support (OPTIONAL)</h2></div></div></div><p>If Mutt was compiled with POP3 support (by running the <span class="emphasis"><em>configure</em></span>script with the <span class="emphasis"><em>--enable-pop</em></span> flag), it has the ability to workwith mailboxes located on a remote POP3 server and fetch mail for localbrowsing.</p><p>You can access the remote POP3 mailbox by selecting the folder<code class="literal">pop://popserver/</code>.</p><p>You can select an alternative port by specifying it with the server, ie:<code class="literal">pop://popserver:port/</code>.</p><p>You can also specify different username for each folder, ie:<code class="literal">pop://username@popserver[:port]/</code>.</p><p>Polling for new mail is more expensive over POP3 than locally. For thisreason the frequency at which Mutt will check for mail remotely can becontrolled by the<a href="reference.html#pop-checkinterval" title="3.208.聽pop_checkinterval">$pop_checkinterval</a>variable, which defaults to every 60 seconds.</p><p>If Mutt was compiled with SSL support (by running the <span class="emphasis"><em>configure</em></span>script with the <span class="emphasis"><em>--with-ssl</em></span> flag), connections to POP3 servers

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -