📄 manual.xml.head
字号:
</table></para><para>Forwarding can be done by including the original message in the newmessage's body (surrounded by indicating lines) or including it as a MIMEattachment, depending on the value of the <link linkend="mime-forward">$mime_forward</link> variable. Decoding of attachments,like in the pager, can be controlled by the <link linkend="forward-decode">$forward_decode</link> and <link linkend="mime-forward-decode">$mime_forward_decode</link> variables,respectively. The desired forwarding format may depend on the content,therefore <emphasis>$mime_forward</emphasis> is a quadoption which, forexample, can be set to ``ask-no''.</para><para>The inclusion of headers is controlled by the current setting of the<link linkend="weed">$weed</link> variable, unless <link linkend="mime-forward">$mime_forward</link> is set.</para><para>Editing the message to forward follows the same procedure as sending orreplying to a message does.</para></sect1><sect1 id="postponing-mail"><title>Postponing Mail</title><para>At times it is desirable to delay sending a message that you havealready begun to compose. When the <emphasis>postpone-message</emphasis> function isused in the <emphasis>compose</emphasis> menu, the body of your message and attachmentsare stored in the mailbox specified by the <link linkend="postponed">$postponed</link> variable. This means that you can recall themessage even if you exit Mutt and then restart it at a later time.</para><para>Once a message is postponed, there are several ways to resume it. From thecommand line you can use the ``-p'' option, or if you <emphasis>compose</emphasis> a newmessage from the <emphasis>index</emphasis> or <emphasis>pager</emphasis> you will be prompted if postponedmessages exist. If multiple messages are currently postponed, the<emphasis>postponed</emphasis> menu will pop up and you can select which message you wouldlike to resume.</para><para><emphasis role="bold">Note:</emphasis> If you postpone a reply to a message, the reply setting ofthe message is only updated when you actually finish the message andsend it. Also, you must be in the same folder with the message youreplied to for the status of the message to be updated.</para><para>See also the <link linkend="postpone">$postpone</link> quad-option.</para></sect1></chapter><chapter id="configuration"><title>Configuration</title><para>While the default configuration (or ``preferences'') make Muttusable right out of the box, it is often desirable to tailor Mutt tosuit your own tastes. When Mutt is first invoked, it will attempt toread the ``system'' configuration file (defaults set by your localsystem administrator), unless the ``-n'' <link linkend="commandline">command line</link> option is specified. This file is typically<literal>/usr/local/share/mutt/Muttrc</literal> or <literal>/etc/Muttrc</literal>. Muttwill next look for a file named <literal>.muttrc</literal> in your homedirectory. If this file does not exist and your home directory hasa subdirectory named <literal>.mutt</literal>, mutt try to load a file named<literal>.mutt/muttrc</literal>. </para><para><literal>.muttrc</literal> is the file where you will usually place your <link linkend="commands">commands</link> to configure Mutt.</para><para>In addition, mutt supports version specific configuration files that areparsed instead of the default files as explained above. For instance, ifyour system has a <literal>Muttrc-0.88</literal> file in the system configurationdirectory, and you are running version 0.88 of mutt, this file will besourced instead of the <literal>Muttrc</literal> file. The same is true of the userconfiguration file, if you have a file <literal>.muttrc-0.88.6</literal> in your homedirectory, when you run mutt version 0.88.6, it will source this fileinstead of the default <literal>.muttrc</literal> file. The version number is thesame which is visible using the ``-v'' <link linkend="commandline">command line</link> switch or using the <literal>show-version</literal> key (default:V) from the index menu.</para><sect1 id="muttrc-syntax" xreflabel="Syntax of Initialization Files"><title>Syntax of Initialization Files</title><para>An initialization file consists of a series of <link linkend="commands">commands</link>. Each line of the file may contain one or more commands.When multiple commands are used, they must be separated by a semicolon (;).<screen>set realname='Mutt user' ; ignore x-</screen>The hash mark, or pound sign(``#''), is used as a ``comment'' character. You can use it toannotate your initialization file. All text after the comment characterto the end of the line is ignored. For example,</para><para><screen>my_hdr X-Disclaimer: Why are you listening to me? # This is a comment</screen></para><para>Single quotes (') and double quotes (") can be used to quote stringswhich contain spaces or other special characters. The difference betweenthe two types of quotes is similar to that of many popular shell programs,namely that a single quote is used to specify a literal string (one that isnot interpreted for shell variables or quoting with a backslash [seenext paragraph]), while double quotes indicate a string for whichshould be evaluated. For example, backtics are evaluated inside of doublequotes, but <emphasis role="bold">not</emphasis> for single quotes.</para><para>\ quotes the next character, just as in shells such as bash and zsh.For example, if want to put quotes ``"'' inside of a string, you can use``\'' to force the next character to be a literal instead of interpretedcharacter.<screen>set realname="Michael \"MuttDude\" Elkins"</screen></para><para>``\\'' means to insert a literal ``\'' into the line.``\n'' and ``\r'' have their usual C meanings of linefeed andcarriage-return, respectively.</para><para>A \ at the end of a line can be used to split commands overmultiple lines, provided that the split points don't appear in themiddle of command names.</para><para>It is also possible to substitute the output of a Unix command in aninitialization file. This is accomplished by enclosing the command inbackquotes (``). For example,<screen>my_hdr X-Operating-System: `uname -a`</screen>The output of the Unix command ``uname -a'' will be substituted before theline is parsed. Note that since initialization files are line oriented, onlythe first line of output from the Unix command will be substituted.</para><para>Both environment variables and mutt variables can be accessed byprepending ``$'' to the name of the variable. For example,</para><screen>set record=+sent_on_$HOSTNAME</screen><para>will cause mutt to save outgoing messages to a folder named``sent_on_kremvax'' if the environment variable HOSTNAME is set to``kremvax.'' (See <link linkend="record">$record</link> fordetails.)</para><para>Mutt expands the variable when it is assigned, not when it is used. Ifthe value of a variable on the right-hand side of an assignmentchanges after the assignment, the variable on the left-hand side willnot be affected.</para><para>The commands understood by mutt are explained in the next paragraphs.For a complete list, see the <link linkend="commands">command reference</link>.</para></sect1><sect1 id="alias"><title>Defining/Using aliases</title><para>Usage: <literal>alias</literal> <emphasis>key</emphasis> <emphasis>address</emphasis> [ , <emphasis>address</emphasis>, ... ]</para><para>It's usually very cumbersome to remember or type out the address of someoneyou are communicating with. Mutt allows you to create ``aliases'' which mapa short string to a full address.</para><para><emphasis role="bold">Note:</emphasis> if you want to create an alias for a group (by specifying more thanone address), you <emphasis role="bold">must</emphasis> separate the addresses with a comma (``,'').</para><para>To remove an alias or aliases (``*'' means all aliases):</para><para><literal>unalias</literal> [ * | <emphasis>key</emphasis> <emphasis>...</emphasis> ]</para><para><screen>alias muttdude me@cs.hmc.edu (Michael Elkins)alias theguys manny, moe, jack</screen></para><para>Unlike other mailers, Mutt doesn't require aliases to be definedin a special file. The <literal>alias</literal> command can appear anywhere ina configuration file, as long as this file is <link linkend="source">sourced</link>. Consequently, you can have multiple alias files, oryou can have all aliases defined in your muttrc.</para><para>On the other hand, the <link linkend="create-alias">create-alias</link>function can use only one file, the one pointed to by the <link linkend="alias-file">$alias_file</link> variable (which is<literal>˜/.muttrc</literal> by default). This file is not special either,in the sense that Mutt will happily append aliases to any file, but inorder for the new aliases to take effect you need to explicitly <link linkend="source">source</link> this file too.</para><para>For example:</para><para><screen>source /usr/local/share/Mutt.aliasessource ~/.mail_aliasesset alias_file=~/.mail_aliases</screen></para><para>To use aliases, you merely use the alias at any place in mutt where muttprompts for addresses, such as the <emphasis>To:</emphasis> or <emphasis>Cc:</emphasis> prompt. You canalso enter aliases in your editor at the appropriate headers if you have the<link linkend="edit-headers">$edit_headers</link> variable set.</para><para>In addition, at the various address prompts, you can use the tab characterto expand a partial alias to the full alias. If there are multiple matches,mutt will bring up a menu with the matching aliases. In order to bepresented with the full list of aliases, you must hit tab with out a partialalias, such as at the beginning of the prompt or after a comma denotingmultiple addresses.</para><para>In the alias menu, you can select as many aliases as you want with the<emphasis>select-entry</emphasis> key (default: RET), and use the <emphasis>exit</emphasis> key(default: q) to return to the address prompt.</para></sect1><sect1 id="bind"><title>Changing the default key bindings</title><para>Usage: <literal>bind</literal> <emphasis>map</emphasis> <emphasis>key</emphasis> <emphasis>function</emphasis></para><para>This command allows you to change the default key bindings (operationinvoked when pressing a key).</para><para><emphasis>map</emphasis> specifies in which menu the binding belongs. Multiple maps maybe specified by separating them with commas (no additional whitespace isallowed). The currently defined maps are:</para><para><anchor id="maps"/><variablelist><varlistentry><term>generic</term><listitem><para>This is not a real menu, but is used as a fallback for all of the othermenus except for the pager and editor modes. If a key is not defined inanother menu, Mutt will look for a binding to use in this menu. This allowsyou to bind a key to a certain function in multiple menus instead of havingmultiple bind statements to accomplish the same task.</para></listitem></varlistentry><varlistentry><term>alias</term><listitem><para>The alias menu is the list of your personal aliases as defined in yourmuttrc. It is the mapping from a short alias name to the full emailaddress(es) of the recipient(s).</para></listitem></varlistentry><varlistentry><term>attach</term><listitem><para>The attachment menu is used to access the attachments on received messages.</para></listitem></varlistentry><varlistentry><term>browser</term><listitem><para>The browser is used for both browsing the local directory structure, and forlisting all of your incoming mailboxes.</para></listitem></varlistentry><varlistentry><term>editor</term><listitem><para>The editor is the line-based editor the user enters text data.</para></listitem></varlistentry><varlistentry><term>index</term><listitem><para>The index is the list of messages contained in a mailbox.</para></listitem></varlistentry><varlistentry><term>compose</term><listitem><para>The compose menu is the screen used when sending a new message.</para></listitem></varlistentry><varlistentry><term>pager</term><listitem><para>The pager is the mode used to display message/attachment data, and helplistings.</para></listitem></varlistentry><varlistentry><term>pgp</term><listitem><para>The pgp menu is used to select the OpenPGP keys used for encrypting outgoingmessages.</para></listitem></varlistentry><varlistentry><term>postpone</term><listitem><para>The postpone menu is similar to the index menu, except is used whenrecalling a message the user was composing, but saved until later.</para></listitem></varlistentry></variablelist></para><para><emphasis>key</emphasis> is the key (or key sequence) you wish to bind. To specify acontrol character, use the sequence <emphasis>\Cx</emphasis>, where <emphasis>x</emphasis> is theletter of the control character (for example, to specify control-A use``\Ca''). Note that the case of <emphasis>x</emphasis> as well as <emphasis>\C</emphasis> isignored, so that <emphasis>\CA</emphasis>, <emphasis>\Ca</emphasis>, <emphasis>\cA</emphasis> and <emphasis>\ca</emphasis> are allequivalent. An alternative form is to specify the key as a three digitoctal number prefixed with a ``\'' (for example <emphasis>\177</emphasis> isequivalent to <emphasis>\c?</emphasis>).</para>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -