<row><entry>Key</entry><entry>Function</entry><entry>Description</entry></row>
</thead>
<tbody>
-<row><entry>j or Down</entry><entry>next-entry</entry><entry>move to the next entry</entry></row>
-<row><entry>k or Up</entry><entry>previous-entry</entry><entry>move to the previous entry</entry></row>
-<row><entry>z or PageDn</entry><entry>page-down</entry><entry>go to the next page</entry></row>
-<row><entry>Z or PageUp</entry><entry>page-up</entry><entry>go to the previous page</entry></row>
-<row><entry>= or Home</entry><entry>first-entry</entry><entry>jump to the first entry</entry></row>
-<row><entry>* or End</entry><entry>last-entry</entry><entry>jump to the last entry</entry></row>
+<row><entry>j or <Down></entry><entry>next-entry</entry><entry>move to the next entry</entry></row>
+<row><entry>k or <Up></entry><entry>previous-entry</entry><entry>move to the previous entry</entry></row>
+<row><entry>z or <PageDn></entry><entry>page-down</entry><entry>go to the next page</entry></row>
+<row><entry>Z or <PageUp></entry><entry>page-up</entry><entry>go to the previous page</entry></row>
+<row><entry>= or <Home></entry><entry>first-entry</entry><entry>jump to the first entry</entry></row>
+<row><entry>* or <End></entry><entry>last-entry</entry><entry>jump to the last entry</entry></row>
<row><entry>q</entry><entry>quit</entry><entry>exit the current menu</entry></row>
<row><entry>?</entry><entry>help</entry><entry>list all keybindings for the current menu</entry></row>
</tbody>
<para>
Mutt automatically filters out repeated items from the history. It
also mimics the behavior of some shells by ignoring items starting
-with a space.
-</para>
-
-<para>
-The latter feature can be useful in macros to not clobber the history's
-valuable entries with unwanted entries.
+with a space. The latter feature can be useful in macros to not clobber
+the history's valuable entries with unwanted entries.
</para>
</sect2>
<para>
Common keys used to navigate through and manage messages in the index
-are shown in <xref linkend="tab-key-index"/>.
+are shown in <xref linkend="tab-key-index"/>. How messages are presented
+in the index menu can be customized using the
+<link linkend="index-format">$index_format</link> variable.
</para>
<para>
-
<table id="tab-key-index">
<title>Most common message index keys</title>
<tgroup cols="2">
</para>
-<sect3>
-<title>Status Flags</title>
-
<para>
In addition to who sent the message and the subject, a short summary of
the disposition of each message is printed beside the message number.
Zero or more of the ``flags'' in <xref linkend="tab-msg-status-flags"/>
may appear, some of which can be turned on or off using these functions:
+<literal>set-flag</literal> and <literal>clear-flag</literal> bound by default
+to ``w'' and ``W'' respectively.
</para>
-<itemizedlist>
-<listitem>
-
-<para>
-<emphasis role="bold">set-flag</emphasis> (default: w)
-</para>
-</listitem>
-<listitem>
-
-<para>
-<emphasis role="bold">clear-flag</emphasis> (default: W)
-</para>
-</listitem>
-
-</itemizedlist>
-
<para>
Furthermore, the flags in <xref linkend="tab-msg-recip-flags"/> reflect
who the message is addressed to. They can be customized with the
</tgroup>
</table>
-</sect3>
-
</sect2>
<sect2>
</para>
<para>
-
<table id="tab-key-pager">
<title>Most common pager keys</title>
<tgroup cols="2">
</tbody>
</tgroup>
</table>
-
</para>
<para>
In addition to key bindings in <xref linkend="tab-key-pager"/>,
many of the functions from the <emphasis>index</emphasis> are available in
-the pager, such as <emphasis>delete-message</emphasis> or <emphasis>copy-message</emphasis> (this is one
-advantage over using an external pager to view messages).
+the pager, such as <literal>delete-message</literal> or <literal>copy-message</literal>
+(this is one advantage over using an external pager to view messages).
</para>
<para>
</table>
<para>
-Mutt uses these attributes for handling text/enriched messages, and they
-can also be used by an external <link linkend="auto-view">autoview</link>
-script for highlighting purposes. <emphasis role="bold">Note:</emphasis> If you change the colors for your
+Mutt uses these attributes for handling <literal>text/enriched</literal>
+messages, and they can also be used by an external
+<link linkend="auto-view">autoview</link> script for highlighting purposes.
+<emphasis role="bold">Note:</emphasis> If you change the colors for your
display, for example by changing the color associated with color2 for
your xterm, then that color will be used instead of green.
</para>
<title>Miscellaneous Functions</title>
<para>
-<emphasis role="bold">create-alias</emphasis><anchor id="create-alias"/> (default: a)
-
+In addition, the <emphasis>index</emphasis> and <emphasis>pager</emphasis>
+have these interesting functions:
</para>
+<variablelist>
+
+<varlistentry>
+<term></term>
+<listitem><para></para></listitem>
+</varlistentry>
+
+<varlistentry>
+<term>
+<literal>create-alias</literal><anchor id="create-alias"/> (default: a)
+</term>
+<listitem>
<para>
Creates a new alias based upon the current message (or prompts for a
new one). Once editing is complete, an <link linkend="alias">alias</link>
Specifying an <link linkend="alias-file">$alias_file</link>
does not add the aliases specified there-in, you must also <link linkend="source">source</link> the file.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">check-traditional-pgp</emphasis><anchor id="check-traditional-pgp"/> (default: ESC P)
-
-</para>
-
+<varlistentry>
+<term>
+<literal>check-traditional-pgp</literal><anchor id="check-traditional-pgp"/> (default: ESC P)
+</term>
+<listitem>
<para>
This function will search the current message for content signed or
encrypted with PGP the "traditional" way, that is, without proper
is similar to the <link linkend="edit-type">edit-type</link> function's
effect.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">display-toggle-weed</emphasis><anchor id="display-toggle-weed"/> (default: h)
-
-</para>
-
-<para>
-Toggles the weeding of message header fields specified by <link linkend="ignore">ignore</link> commands.
-</para>
-
-<para>
-<emphasis role="bold">edit</emphasis><anchor id="edit"/> (default: e)
-
-</para>
-
+<varlistentry>
+<term>
+<literal>edit</literal><anchor id="edit"/> (default: e)
+</term>
+<listitem>
<para>
This command (available in the ``index'' and ``pager'') allows you to
edit the raw current message as it's present in the mail folder.
appended to the current folder, and the original message will be
marked for deletion.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">edit-type</emphasis><anchor id="edit-type"/>
+<varlistentry>
+<term>
+<literal>edit-type</literal><anchor id="edit-type"/>
(default: ˆE on the attachment menu, and in the pager and index menus; ˆT on the
compose menu)
-</para>
-
+</term>
+<listitem>
<para>
This command is used to temporarily edit an attachment's content
type to fix, for instance, bogus character set parameters. When
menu</link>. There, it's used to fine-tune the properties of attachments you are going
to send.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">enter-command</emphasis><anchor id="enter-command"/> (default: ``:'')
-
-</para>
-
+<varlistentry>
+<term>
+<literal>enter-command</literal><anchor id="enter-command"/> (default: ``:'')
+</term>
+<listitem>
<para>
This command is used to execute any command you would normally put in a
configuration file. A common use is to check the settings of variables, or
in conjunction with <link linkend="macro">macros</link> to change settings on the
fly.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">extract-keys</emphasis><anchor id="extract-keys"/> (default: ˆK)
-
-</para>
-
+<varlistentry>
+<term>
+<literal>extract-keys</literal><anchor id="extract-keys"/> (default: ˆK)
+</term>
+<listitem>
<para>
This command extracts PGP public keys from the current or tagged
message(s) and adds them to your PGP public key ring.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">forget-passphrase</emphasis><anchor id="forget-passphrase"/> (default:
+<varlistentry>
+<term>
+<literal>forget-passphrase</literal><anchor id="forget-passphrase"/> (default:
ˆF)
-
-</para>
-
+</term>
+<listitem>
<para>
This command wipes the passphrase(s) from memory. It is useful, if
you misspelled the passphrase.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">list-reply</emphasis><anchor id="list-reply"/> (default: L)
-
-</para>
-
+<varlistentry>
+<term>
+<literal>list-reply</literal><anchor id="list-reply"/> (default: L)
+</term>
+<listitem>
<para>
Reply to the current or tagged message(s) by extracting any addresses which
match the regular expressions given by the <link linkend="lists">lists or subscribe</link>
to mailing lists helps avoid duplicate copies being sent to the author of
the message you are replying to.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">pipe-message</emphasis><anchor id="pipe-message"/> (default: |)
-
-</para>
-
+<varlistentry>
+<term>
+<literal>pipe-message</literal><anchor id="pipe-message"/> (default: |)
+</term>
+<listitem>
<para>
Asks for an external Unix command and pipes the current or
tagged message(s) to it. The variables <link linkend="pipe-decode">$pipe_decode</link>, <link linkend="pipe-split">$pipe_split</link>,
<link linkend="pipe-sep">$pipe_sep</link> and <link linkend="wait-key">$wait_key</link> control the exact behavior of this function.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">resend-message</emphasis><anchor id="resend-message"/> (default: ESC e)
-
-</para>
-
+<varlistentry>
+<term>
+<literal>resend-message</literal><anchor id="resend-message"/> (default: ESC e)
+</term>
+<listitem>
<para>
With resend-message, mutt takes the current message as a template for a
new message. This function is best described as "recall from arbitrary
to easily resend a message which was included with a bounce message
as a message/rfc822 body part.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">shell-escape</emphasis><anchor id="shell-escape"/> (default: !)
-
-</para>
-
+<varlistentry>
+<term>
+<literal>shell-escape</literal><anchor id="shell-escape"/> (default: !)
+</term>
+<listitem>
<para>
Asks for an external Unix command and executes it. The <link linkend="wait-key">$wait_key</link> can be used to control
whether Mutt will wait for a key to be pressed when the command returns
(presumably to let the user read the output of the command), based on
the return status of the named command.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">toggle-quoted</emphasis><anchor id="toggle-quoted"/> (default: T)
-
-</para>
-
+<varlistentry>
+<term>
+<literal>toggle-quoted</literal><anchor id="toggle-quoted"/> (default: T)
+</term>
+<listitem>
<para>
The <emphasis>pager</emphasis> uses the <link linkend="quote-regexp">$quote_regexp</link> variable to detect quoted text when
displaying the body of the message. This function toggles the display
are interested in just the response and there is a large amount of
quoted text in the way.
</para>
+</listitem>
+</varlistentry>
-<para>
-<emphasis role="bold">skip-quoted</emphasis><anchor id="skip-quoted"/> (default: S)
-
-</para>
-
+<varlistentry>
+<term>
+<literal>skip-quoted</literal><anchor id="skip-quoted"/> (default: S)
+</term>
+<listitem>
<para>
This function will go to the next line of non-quoted text which come
after a line of quoted text in the internal pager.
</para>
+</listitem>
+</varlistentry>
+
+</variablelist>
</sect2>
<sect1 id="sending">
<title>Sending Mail</title>
+<sect2>
+<title>Introduction</title>
+
<para>
The bindings shown in <xref linkend="tab-key-send"/> are available in the
-<emphasis>index</emphasis> for sending messages.
+<emphasis>index</emphasis> and <emphasis>pager</emphasis> to start a new message.
</para>
<para>
</para>
<para>
-Bouncing a message sends the message as is to the recipient you
-specify. Forwarding a message allows you to add comments or
+<emphasis>Bouncing</emphasis> a message sends the message as is to the recipient you
+specify. <emphasis>Forwarding</emphasis> a message allows you to add comments or
modify the message you are forwarding. These items are discussed
in greater detail in the next chapter ``<link linkend="forwarding-mail">Forwarding
and Bouncing Mail</link>.''
</para>
<para>
-Mutt will then automatically start your <link linkend="editor">$editor</link> on the message body. If the <link linkend="edit-headers">$edit_headers</link> variable is set, the headers will be at
-the top of the message in your editor. Any messages you are replying
-to will be added in sort order to the message, with appropriate <link linkend="attribution">$attribution</link>, <link linkend="indent-string">$indent_string</link> and <link linkend="post-indent-string">$post_indent_string</link>. When forwarding a
-message, if the <link linkend="mime-forward">$mime_forward</link>
+Mutt will then automatically start your <link linkend="editor">$editor</link>
+on the message body. If the <link linkend="edit-headers">$edit_headers</link>
+variable is set, the headers will be at the top of the message in your editor.
+Any messages you are replying to will be added in sort order to the message,
+with appropriate <link linkend="attribution">$attribution</link>,
+<link linkend="indent-string">$indent_string</link> and
+<link linkend="post-indent-string">$post_indent_string</link>.
+When forwarding a message, if the <link linkend="mime-forward">$mime_forward</link>
variable is unset, a copy of the forwarded message will be included. If
you have specified a <link linkend="signature">$signature</link>, it
will be appended to the message.
<para>
Once you have finished editing the body of your mail message, you are
returned to the <emphasis>compose</emphasis> menu providing the functions
-show in <xref linkend="tab-func-compose"/>.
+show in <xref linkend="tab-func-compose"/> to modify, send or postpone the
+message.
</para>
<para>
</para>
<para>
-<emphasis role="bold">Note:</emphasis> The attach-message function will prompt you for a folder to
+The compose menu is also used to edit the attachments for a message which can be eiter files
+or other messages. The <literal>attach-message</literal> function to will prompt you for a folder to
attach messages from. You can now tag messages in that folder and they
will be attached to the message you are sending. Note that certain
operations like composing a new mail, replying, forwarding, etc. are
-not permitted when you are in that folder. The %r in <link linkend="status-format">$status_format</link> will change to
+not permitted when you are in that folder. The %r in
+<link linkend="status-format">$status_format</link> will change to
a 'A' to indicate that you are in attach-message mode.
</para>
+</sect2>
+
<sect2>
<title>Editing the message header</title>
<para>
-When editing the header of your outgoing message, there are a couple of
-special features available.
+When editing the header because of <link linkend="edit-headers">$edit_headers</link>
+being set, there are a couple of special features available.
</para>
+<sect3>
+<title>Fcc: pseudo header</title>
+
<para>
If you specify
<literal>Fcc:</literal> <emphasis>filename</emphasis>
-Mutt will pick up <emphasis>filename</emphasis>
+as a header, Mutt will pick up <emphasis>filename</emphasis>
just as if you had used the <emphasis>edit-fcc</emphasis> function in the <emphasis>compose</emphasis> menu.
+This header will not be included in sent messages.
</para>
+</sect3>
+
+<sect3>
+<title>Attach: pseudo header</title>
+
<para>
You can also attach files to your message by specifying
<literal>Attach:</literal> <emphasis>filename</emphasis> [ <emphasis>description</emphasis> ]
where <emphasis>filename</emphasis> is the file to attach and <emphasis>description</emphasis> is an
-optional string to use as the description of the attached file.
-</para>
-
-<para>
-When replying to messages, if you remove the <emphasis>In-Reply-To:</emphasis> field from
-the header field, Mutt will not generate a <emphasis>References:</emphasis> field, which
-allows you to create a new message thread.
+optional string to use as the description of the attached file. This header, too, won't be send
+out.
</para>
-<para>
-Also see <link linkend="edit-headers">$edit_headers</link>.
-</para>
-
-</sect2>
+</sect3>
-<sect2>
-<title>Using Mutt with PGP</title>
+<sect3>
+<title>Pgp: pseudo header</title>
<para>
If you want to use PGP, you can specify
indicates complete validity.
</para>
+</sect3>
+
+<sect3>
+<title>In-Reply-To: header</title>
+
+<para>
+When replying to messages, the <emphasis>In-Reply-To:</emphasis> header contains the
+Message-Id of the message(s) you reply to. If you remove its value, Mutt will not generate a
+<emphasis>References:</emphasis> field, which allows you to create a new message thread, for example
+to create a new list to a mailing list without having to needing to enter the mailing list's address.
+</para>
+
+</sect3>
+
</sect2>
<sect2>
-<title>Sending anonymous messages via mixmaster.</title>
+<title>Sending anonymous messages via mixmaster</title>
<para>
-You may also have configured mutt to co-operate with Mixmaster, an
+You may also have compiled mutt to co-operate with Mixmaster, an
anonymous remailer. Mixmaster permits you to send your messages
anonymously using a chain of remailers. Mixmaster support in mutt is for
mixmaster version 2.04 (beta 45 appears to be the latest) and 2.03.
<para>
Bouncing and forwarding let you send an existing message to recipients
-that you specify. Bouncing a message uses the <link linkend="sendmail">$sendmail</link> command to send a copy to alternative addresses as if
-they were the message's original recipients. Forwarding a message, on
-the other hand, allows you to modify the message before it is resent
-(for example, by adding your own comments). The default key bindings
-are shown in <xref linkend="tab-key-fwd"/>.
-</para>
-
-<para>
-
-<table id="tab-key-fwd">
-<title>Message forwarding/bouncing keys</title>
-<tgroup cols="3">
-<thead>
-<row><entry>Key</entry><entry>Function</entry><entry>Description</entry></row>
-</thead>
-<tbody>
-<row><entry>f</entry><entry>forward</entry><entry>forward message</entry></row>
-<row><entry>b</entry><entry>bounce</entry><entry>bounce (remail) message</entry></row>
-</tbody>
-</tgroup>
-</table>
-
+that you specify. Bouncing a message sends a verbatim copy of a message
+to alternative addresses as if they were the message's original recipients.
+Forwarding a message, on the other hand, allows you to modify the message
+before it is resent (for example, by adding your own comments). Bouncing
+is done using the <literal>bounce</literal> function and forwarding
+using the <literal>forward</literal> command bound to ``b'' and ``f''
+respectively.
</para>
<para>
<para>
At times it is desirable to delay sending a message that you have
-already begun to compose. When the <emphasis>postpone-message</emphasis> function is
+already begun to compose. When the <literal>postpone-message</literal> function is
used in the <emphasis>compose</emphasis> menu, the body of your message and attachments
are stored in the mailbox specified by the <link linkend="postponed">$postponed</link> variable. This means that you can recall the
message even if you exit Mutt and then restart it at a later time.
<chapter id="configuration">
<title>Configuration</title>
+<sect1>
+<title>Location of initialization files</title>
+
<para>
While the default configuration (or ``preferences'') make Mutt
usable right out of the box, it is often desirable to tailor Mutt to
V) from the index menu.
</para>
+</sect1>
+
<sect1 id="muttrc-syntax" xreflabel="Syntax of Initialization Files">
<title>Syntax of Initialization Files</title>
For a complete list, see the <link linkend="commands">command reference</link>.
</para>
+<para>
+All configuration files are expected to be in the current locale as
+specified by the <link linkend="charset">$charset</link> variable
+which doesn't have a default value since it's determined by Mutt at startup.
+If a configuration file is not encoded in the same character set the
+<link linkend="config-charset">$config_charset</link>
+variable should be used: all lines starting with the next are recoded
+from $config_charset to $charset.
+</para>
+
+<para>
+This mechanism should be avoided if possible as it has the
+following implications:
+</para>
+
+<para>
+<itemizedlist>
+
+<listitem><para>These variables should be set early in a configuration
+file with $charset preceeding $config_charset so Mutt
+know what character set to convert to.</para></listitem>
+
+<listitem><para>If $config_charset is set, it should be set
+in each configuration file because the value is global and <emphasis>not</emphasis>
+per configuration file.</para></listitem>
+
+<listitem><para>Because Mutt first recodes a line before it attempts to parse it,
+a conversion introducing question marks or other characters as
+part of errors (unconvertable characters, transliteration) may introduce syntax
+errors or silently change the meaning of certain tokens (e.g. inserting
+question marks into regular expressions).</para></listitem>
+
+</itemizedlist>
+</para>
+
</sect1>
<sect1 id="addrgroup">
<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.
+<literal>select-entry</literal> key (default: <Return>), and use the
+<emphasis>exit</emphasis> key (default: q) to return to the address prompt.
</para>
</sect1>
<para>
However, the sorting method is not restored to its previous value when
reading a different mailbox. To specify a <emphasis>default</emphasis> command, use the
-pattern ``.'':
+pattern ``.'' before other folder-hooks adjusting a value on a per-folder basis
+because folder-hooks are evaluated in the order given in the configuration file.
+The following example will set the <link linkend="sort">sort</link> variable
+to <literal>date-sent</literal> for all folders but to <literal>threads</literal>
+for all folders containing ``mutt'' in their name.
</para>
<para>
-
<screen>
folder-hook . set sort=date-sent
+folder-hook mutt set sort=threads
</screen>
-
</para>
</sect1>
actions. When you press <emphasis>key</emphasis> in menu <emphasis>menu</emphasis>, Mutt will behave as if
you had typed <emphasis>sequence</emphasis>. So if you have a common sequence of commands
you type, you can create a macro to execute those commands with a single
-key.
+key or fewer keys.
</para>
<para>
-<emphasis>menu</emphasis> is the <link linkend="maps">map</link> which the macro will be bound.
+<emphasis>menu</emphasis> is the <link linkend="maps">map</link> which the macro will be bound in.
Multiple maps may be specified by separating multiple menu arguments by
commas. Whitespace may not be used in between the menu arguments and the
commas separating them.
</para>
<para>
-<emphasis>key</emphasis> and <emphasis>sequence</emphasis> are expanded by the same rules as the <link linkend="bind">key bindings</link>. There are some additions however. The
+<emphasis>key</emphasis> and <emphasis>sequence</emphasis> are expanded by the same rules as the
+<link linkend="bind">key bindings</link> with some additions. The
first is that control characters in <emphasis>sequence</emphasis> can also be specified
as <emphasis>ˆx</emphasis>. In order to get a caret (`ˆ'') you need to use
<emphasis>ˆˆ</emphasis>. Secondly, to specify a certain key such as <emphasis>up</emphasis>
<title>Ignoring (weeding) unwanted message headers</title>
<para>
+<literallayout>
Usage: <literal>[un]ignore</literal> <emphasis>pattern</emphasis> [ <emphasis>pattern</emphasis> ... ]
+Usage: <literal>hdr_order</literal> <emphasis>header1</emphasis> <emphasis>header2</emphasis> <emphasis>header3</emphasis>
+</literallayout>
</para>
<para>
Messages often have many header fields added by automatic processing systems,
or which may not seem useful to display on the screen. This command allows
-you to specify header fields which you don't normally want to see.
+you to specify header fields which you don't normally want to see in the pager.
</para>
<para>
<para>
For example:
+</para>
+<para>
<screen>
# Sven's draconian header weeding
ignore *
unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
unignore posted-to:
</screen>
+</para>
+
+<para>
+With the <literal>hdr_order</literal> command you can specify an order in
+which mutt will attempt to present these headers to you when viewing messages.
+</para>
+<para>
+``unhdr_order *'' will clear all previous headers from the order list,
+thus removing the header order effects set by the system-wide startup file.
+</para>
+
+<para>
+<screen>
+hdr_order From Date: From: To: Cc: Subject:
+</screen>
</para>
</sect1>
<para>
Usage: <literal>[un]alternates</literal> [ <literal>-group</literal> <emphasis>name</emphasis> [ ... ] ] <emphasis>regexp</emphasis> [ <emphasis>regexp</emphasis> ... ]
-
</para>
<para>
</para>
<para>
-<literal>folder</literal> can either be a local file or directory
+<emphasis>folder</emphasis> can either be a local file or directory
(Mbox/Mmdf or Maildir/Mh). If Mutt was built with POP and/or IMAP
-support, <literal>folder</literal> can also be a POP/IMAP folder
+support, <emphasis>folder</emphasis> can also be a POP/IMAP folder
URL. The URL syntax is described in <xref linkend="url-syntax"/>,
POP and IMAP are described in <xref linkend="pop"/> and <xref linkend="imap"/>
respectively.
</sect1>
<sect1 id="my-hdr">
+<anchor id="hdr-order"/>
<title>User defined headers</title>
<para>
-Usage:
-
-<literal>my_hdr</literal> <emphasis>string</emphasis>
-
-<literal>unmy_hdr</literal> <emphasis>field</emphasis> [ <emphasis>field</emphasis> ... ]
+<literallayout>
+Usage: <literal>my_hdr</literal> <emphasis>string</emphasis>
+Usage: <literal>unmy_hdr</literal> <emphasis>field</emphasis> [ <emphasis>field</emphasis> [... ] ]
+</literallayout>
</para>
<para>
-The ``my_hdr'' command allows you to create your own header
+The <literal>my_hdr</literal> command allows you to create your own header
fields which will be added to every message you send.
</para>
</para>
<para>
-<quote
->my_hdr Organization: A Really Big Company, Anytown, USA</quote
->
+<screen>
+my_hdr Organization: A Really Big Company, Anytown, USA
+</screen>
</para>
<para>
</para>
<para>
-<emphasis role="bold">Note:</emphasis> space characters are <emphasis>not</emphasis> allowed between the keyword and
-the colon (``:''). The standard for electronic mail (RFC822) says that
+<emphasis role="bold">Note:</emphasis> space characters are <emphasis>not</emphasis> allowed between the keyword and
+the colon (``:''). The standard for electronic mail (RFC822) says that
space is illegal there, so Mutt enforces the rule.
</para>
<para>
If you would like to add a header field to a single message, you should
either set the <link linkend="edit-headers">$edit_headers</link> variable,
-or use the <emphasis>edit-headers</emphasis> function (default: ``E'') in the send-menu so
+or use the <literal>edit-headers</literal> function (default: ``E'') in the compose menu so
that you can edit the header of your message along with the body.
</para>
<para>
-To remove user defined header fields, use the ``unmy_hdr''
-command. You may specify an asterisk (``*'') to remove all header
-fields, or the fields to remove. For example, to remove all ``To'' and
+To remove user defined header fields, use the <literal>unmy_hdr</literal>
+command. You may specify an asterisk (``*'') to remove all header
+fields, or the fields to remove. For example, to remove all ``To'' and
``Cc'' header fields, you could use:
</para>
<para>
-<quote>unmy_hdr to cc</quote>
-</para>
-
-</sect1>
-
-<sect1 id="hdr-order">
-<title>Defining the order of headers when viewing messages</title>
-
-<para>
-Usage: <literal>hdr_order</literal> <emphasis>header1</emphasis> <emphasis>header2</emphasis> <emphasis>header3</emphasis>
-</para>
-
-<para>
-With this command, you can specify an order in which mutt will attempt
-to present headers to you when viewing messages.
-</para>
-
-<para>
-``unhdr_order *'' will clear all previous headers from the order list,
-thus removing the header order effects set by the system-wide startup
-file.
-</para>
-
-<para>
-
<screen>
-hdr_order From Date: From: To: Cc: Subject:
+unmy_hdr to cc
</screen>
-
</para>
</sect1>
</para>
<para>
-
<screen>
# default: save all to ~/Mail/<author name>
save-hook . ~/Mail/%F
-# save from me@turing.cs.hmc.edu/me@cs.hmc.edu to $folder/elinks
+
+# save from me@turing.cs.hmc.edu and me@cs.hmc.edu to $folder/elkins
save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins
+
# save from aol.com to $folder/spam
save-hook aol\\.com$ +spam
</screen>
-
</para>
<para>
<para>
These commands can be used to execute arbitrary configuration commands based
-upon recipients of the message. <emphasis>pattern</emphasis> is a regular expression
-matching the desired address. <emphasis>command</emphasis> is executed when <emphasis>regexp</emphasis>
-matches recipients of the message.
+upon recipients of the message. <emphasis>pattern</emphasis> is used to match
+the message, see <xref linkend="pattern-hook"/> for details. <emphasis>command</emphasis>
+is executed when <emphasis>pattern</emphasis> matches.
</para>
<para>
-<literal>reply-hook</literal> is matched against the message you are <emphasis>replying</emphasis>
-<emphasis role="bold">to</emphasis>, instead of the message you are <emphasis>sending</emphasis>. <literal>send-hook</literal> is
+<literal>reply-hook</literal> is matched against the message you are <emphasis>replying to</emphasis>,
+instead of the message you are <emphasis>sending</emphasis>. <literal>send-hook</literal> is
matched against all messages, both <emphasis>new</emphasis> and <emphasis>replies</emphasis>. <emphasis role="bold">Note:</emphasis>
<literal>reply-hook</literal>s are matched <emphasis role="bold">before</emphasis> the <literal>send-hook</literal>, <emphasis role="bold">regardless</emphasis>
of the order specified in the user's configuration file.
(for that type of hook).
</para>
-<para>
-See <xref linkend="pattern-hook"/> for information on the exact format of <emphasis>pattern</emphasis>.
-</para>
-
<para>
Example: <literal>send-hook mutt "set mime_forward signature=''"</literal>
</para>
</para>
<para>
-<emphasis role="bold">Note:</emphasis> the send-hook's are only executed ONCE after getting the initial
+<emphasis role="bold">Note:</emphasis> the send-hook's are only executed once after getting the initial
list of recipients. Adding a recipient after replying or editing the
-message will NOT cause any send-hook to be executed. Also note that
-my_hdr commands which modify recipient headers, or the message's
+message will not cause any send-hook to be executed. Also note that
+<literal>my_hdr</literal> commands which modify recipient headers, or the message's
subject, don't have any effect on the current message when executed
from a send-hook.
</para>
</para>
<para>
-When encrypting messages with PGP or OpenSSL, you may want to associate a certain
+When encrypting messages with PGP/GnuPG or OpenSSL, you may want to associate a certain
key with a given e-mail address automatically, either because the
recipient's public key can't be deduced from the destination address,
or because, for some reasons, you need to override the key Mutt would
-normally use. The crypt-hook command provides a method by which you can
-specify the ID of the public key to be used when encrypting messages to
-a certain recipient.
+normally use. The <literal>crypt-hook</literal> command provides a
+method by which you can specify the ID of the public key to be used
+when encrypting messages to a certain recipient.
</para>
<para>
-The meaning of "key id" is to be taken broadly in this context: You
+The meaning of <emphasis>keyid</emphasis> is to be taken broadly in this context: You
can either put a numerical key ID here, an e-mail address, or even
just a real name.
</para>
boolean, number, string and quadoption. <emphasis>boolean</emphasis> variables can be
<emphasis>set</emphasis> (true) or <emphasis>unset</emphasis> (false). <emphasis>number</emphasis> variables can be
assigned a positive integer value.
-</para>
-
-<para>
-<emphasis>string</emphasis> variables consist of any number of printable characters.
-<emphasis>strings</emphasis> must be enclosed in quotes if they contain spaces or tabs. You
-may also use the ``C'' escape sequences <emphasis role="bold">\n</emphasis> and <emphasis role="bold">\t</emphasis> for
-newline and tab, respectively.
-</para>
-
-<para>
+<emphasis>string</emphasis> variables consist of any number of printable characters and
+must be enclosed in quotes if they contain spaces or tabs. You
+may also use the escape sequences ``\n'' and ``\t'' for newline and tab, respectively.
<emphasis>quadoption</emphasis> variables are used to control whether or not to be prompted
for certain actions, or to specify a default action. A value of <emphasis>yes</emphasis>
will cause the action to be carried out automatically as if you had answered
</para>
<para>
-The <literal>set</literal> command creates a
-custom <literal>$my_</literal> variable and changes its
-value. The <literal>unset</literal> and <literal>reset</literal>
+The <literal>set</literal> command either creates a
+custom <literal>my_</literal> variable or changes its
+value if does exist already. The <literal>unset</literal> and <literal>reset</literal>
commands remove the variable entirely.
</para>
<para>
Format strings are a general concept you'll find in several locations
through the mutt configuration, especially in the
-<link linkend="index-format">$index_format"</link>,
-<link linkend="pager-format">$pager_format"</link>,
-<link linkend="status-format">$status_format"</link>,
+<link linkend="index-format">$index_format</link>,
+<link linkend="pager-format">$pager_format</link>,
+<link linkend="status-format">$status_format</link>,
and other ``*_format'' variables. These can be very straightforward,
and it's quite possible you already know how to use them.
</para>
The most basic format string element is a percent symbol followed
by another character. For example, <literal>%s</literal>
represents a message's Subject: header in the <link
-linkend="index-format">$index_format"</link> variable. The
+linkend="index-format">$index_format</link> variable. The
``expandos'' available are documented with each format variable, but
there are general modifiers available with all formatting expandos,
too. Those are our concern here.
<para>
Certain named classes of characters are predefined. Character classes
consist of ``[:'', a keyword denoting the class, and ``:]''.
-The following classes are defined by the POSIX standard:
+The following classes are defined by the POSIX standard in
+<xref linkend="posix-regex-char-classes"/>
</para>
<para>
-<variablelist>
-
-<varlistentry>
-<term>[:alnum:]</term>
-<listitem>
-<para>
-Alphanumeric characters.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:alpha:]</term>
-<listitem>
-<para>
-Alphabetic characters.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:blank:]</term>
-<listitem>
-<para>
-Space or tab characters.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:cntrl:]</term>
-<listitem>
-<para>
-Control characters.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:digit:]</term>
-<listitem>
-<para>
-Numeric characters.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:graph:]</term>
-<listitem>
-<para>
-Characters that are both printable and visible. (A space is printable,
-but not visible, while an ``a'' is both.)
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:lower:]</term>
-<listitem>
-<para>
-Lower-case alphabetic characters.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:print:]</term>
-<listitem>
-<para>
-Printable characters (characters that are not control characters.)
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:punct:]</term>
-<listitem>
-<para>
-Punctuation characters (characters that are not letter, digits, control
-characters, or space characters).
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:space:]</term>
-<listitem>
-<para>
-Space characters (such as space, tab and formfeed, to name a few).
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:upper:]</term>
-<listitem>
-<para>
-Upper-case alphabetic characters.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>[:xdigit:]</term>
-<listitem>
-<para>
-Characters that are hexadecimal digits.
-</para>
-</listitem>
-</varlistentry>
-</variablelist>
+<table id="posix-regex-char-classes">
+<title>POSIX regular expression character classes</title>
+<tgroup cols="2">
+<thead>
+<row><entry>Character class</entry><entry>Description</entry></row>
+</thead>
+<tbody>
+<row><entry>[:alnum:]</entry><entry>Alphanumeric characters</entry></row>
+<row><entry>[:alpha:]</entry><entry>Alphabetic characters</entry></row>
+<row><entry>[:blank:]</entry><entry>Space or tab characters</entry></row>
+<row><entry>[:cntrl:]</entry><entry>Control characters</entry></row>
+<row><entry>[:digit:]</entry><entry>Numeric characters</entry></row>
+<row><entry>[:graph:]</entry><entry>Characters that are both printable and visible. (A space is printable, but not visible, while an ``a'' is both)</entry></row>
+<row><entry>[:lower:]</entry><entry>Lower-case alphabetic characters</entry></row>
+<row><entry>[:print:]</entry><entry>Printable characters (characters that are not control characters)</entry></row>
+<row><entry>[:punct:]</entry><entry>Punctuation characters (characters that are not letter, digits, control characters, or space characters)</entry></row>
+<row><entry>[:space:]</entry><entry>Space characters (such as space, tab and formfeed, to name a few)</entry></row>
+<row><entry>[:upper:]</entry><entry>Upper-case alphabetic characters</entry></row>
+<row><entry>[:xdigit:]</entry><entry>Characters that are hexadecimal digits</entry></row>
+</tbody>
+</tgroup>
+</table>
</para>
<para>
<para>
A regular expression matching a single character may be followed by one
-of several repetition operators:
+of several repetition operators described in <xref linkend="regex-repeat"/>.
</para>
<para>
-<variablelist>
-
-<varlistentry>
-<term>?</term>
-<listitem>
-<para>
-The preceding item is optional and matched at most once.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>*</term>
-<listitem>
-<para>
-The preceding item will be matched zero or more times.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>+</term>
-<listitem>
-<para>
-The preceding item will be matched one or more times.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>{n}</term>
-<listitem>
-<para>
-The preceding item is matched exactly <emphasis>n</emphasis> times.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>{n,}</term>
-<listitem>
-<para>
-The preceding item is matched <emphasis>n</emphasis> or more times.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>{,m}</term>
-<listitem>
-<para>
-The preceding item is matched at most <emphasis>m</emphasis> times.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>{n,m}</term>
-<listitem>
-<para>
-The preceding item is matched at least <emphasis>n</emphasis> times, but no more than
-<emphasis>m</emphasis> times.
-</para>
-</listitem>
-</varlistentry>
-</variablelist>
+<table id="regex-repeat">
+<title>Regular expression repetition operators</title>
+<tgroup cols="2">
+<thead>
+<row><entry>Operator</entry><entry>Description</entry></row>
+</thead>
+<tbody>
+<row><entry>?</entry><entry>The preceding item is optional and matched at most once</entry></row>
+<row><entry>*</entry><entry>The preceding item will be matched zero or more times</entry></row>
+<row><entry>+</entry><entry>The preceding item will be matched one or more times</entry></row>
+<row><entry>{n}</entry><entry>The preceding item is matched exactly <emphasis>n</emphasis> times</entry></row>
+<row><entry>{n,}</entry><entry>The preceding item is matched <emphasis>n</emphasis> or more times</entry></row>
+<row><entry>{,m}</entry><entry>The preceding item is matched at most <emphasis>m</emphasis> times</entry></row>
+<row><entry>{n,m}</entry><entry>The preceding item is matched at least <emphasis>n</emphasis> times, but no more than <emphasis>m</emphasis> times</entry></row>
+</tbody>
+</tgroup>
+</table>
</para>
<para>
<para>
<emphasis role="bold">Note:</emphasis> If you compile Mutt with the GNU <emphasis>rx</emphasis> package, the
-following operators may also be used in regular expressions:
+following operators may also be used in regular expressions as described in <xref linkend="regex-gnu-ext"/>.
</para>
<para>
-<variablelist>
-
-<varlistentry>
-<term>\\y</term>
-<listitem>
-<para>
-Matches the empty string at either the beginning or the end of a word.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>\\B</term>
-<listitem>
-<para>
-Matches the empty string within a word.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>\\<</term>
-<listitem>
-<para>
-Matches the empty string at the beginning of a word.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>\\></term>
-<listitem>
-<para>
-Matches the empty string at the end of a word.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>\\w</term>
-<listitem>
-<para>
-Matches any word-constituent character (letter, digit, or underscore).
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>\\W</term>
-<listitem>
-<para>
-Matches any character that is not word-constituent.
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>\\`</term>
-<listitem>
-<para>
-Matches the empty string at the beginning of a buffer (string).
-</para>
-</listitem>
-</varlistentry>
-<varlistentry>
-<term>\\'</term>
-<listitem>
-<para>
-Matches the empty string at the end of a buffer.
-</para>
-</listitem>
-</varlistentry>
-</variablelist>
+<table id="regex-gnu-ext">
+<title>GNU regular expression extensions</title>
+<tgroup cols="2">
+<thead>
+<row><entry>Expression</entry><entry>Description</entry></row>
+</thead>
+<tbody>
+<row><entry>\\y</entry><entry>Matches the empty string at either the beginning or the end of a word</entry></row>
+<row><entry>\\B</entry><entry>Matches the empty string within a word</entry></row>
+<row><entry>\\<</entry><entry>Matches the empty string at the beginning of a word</entry></row>
+<row><entry>\\></entry><entry>Matches the empty string at the end of a word</entry></row>
+<row><entry>\\w</entry><entry>Matches any word-constituent character (letter, digit, or underscore)</entry></row>
+<row><entry>\\W</entry><entry>Matches any character that is not word-constituent</entry></row>
+<row><entry>\\`</entry><entry>Matches the empty string at the beginning of a buffer (string)</entry></row>
+<row><entry>\\'</entry><entry>Matches the empty string at the end of a buffer</entry></row>
+</tbody>
+</tgroup>
+</table>
</para>
<para>
<para>
Many of Mutt's commands allow you to specify a pattern to match
-(limit, tag-pattern, delete-pattern, etc.). <xref linkend="tab-patterns"/>
+(<literal>limit</literal>, <literal>tag-pattern</literal>,
+<literal>delete-pattern</literal>, etc.). <xref linkend="tab-patterns"/>
shows several ways to select messages.
</para>
</thead>
<tbody>
<row><entry>~A</entry><entry>all messages</entry></row>
-<row><entry>~b EXPR</entry><entry>messages which contain EXPR in the message body</entry></row>
-<row><entry>=b STRING</entry><entry>messages which contain STRING in the message body. If IMAP is enabled, searches for STRING on the server, rather than downloading each message and searching it locally.</entry></row>
-<row><entry>~B EXPR</entry><entry>messages which contain EXPR in the whole message</entry></row>
-<row><entry>~c EXPR</entry><entry>messages carbon-copied to EXPR</entry></row>
-<row><entry>%c GROUP</entry><entry>messages carbon-copied to any member of GROUP</entry></row>
-<row><entry>~C EXPR</entry><entry>message is either to: or cc: EXPR</entry></row>
-<row><entry>%C GROUP</entry><entry>message is either to: or cc: to any member of GROUP</entry></row>
-<row><entry>~d [MIN]-[MAX]</entry><entry>messages with ``date-sent'' in a Date range</entry></row>
+<row><entry>~b <emphasis>EXPR</emphasis></entry><entry>messages which contain <emphasis>EXPR</emphasis> in the message body</entry></row>
+<row><entry>=b <emphasis>STRING</emphasis></entry><entry>messages which contain <emphasis>STRING</emphasis> in the message body. If IMAP is enabled, searches for <emphasis>STRING</emphasis> on the server, rather than downloading each message and searching it locally.</entry></row>
+<row><entry>~B <emphasis>EXPR</emphasis></entry><entry>messages which contain <emphasis>EXPR</emphasis> in the whole message</entry></row>
+<row><entry>~c <emphasis>EXPR</emphasis></entry><entry>messages carbon-copied to <emphasis>EXPR</emphasis></entry></row>
+<row><entry>%c <emphasis>GROUP</emphasis></entry><entry>messages carbon-copied to any member of <emphasis>GROUP</emphasis></entry></row>
+<row><entry>~C <emphasis>EXPR</emphasis></entry><entry>message is either to: or cc: <emphasis>EXPR</emphasis></entry></row>
+<row><entry>%C <emphasis>GROUP</emphasis></entry><entry>message is either to: or cc: to any member of <emphasis>GROUP</emphasis></entry></row>
+<row><entry>~d [<emphasis>MIN</emphasis>]-[<emphasis>MAX</emphasis>]</entry><entry>messages with ``date-sent'' in a Date range</entry></row>
<row><entry>~D</entry><entry>deleted messages</entry></row>
-<row><entry>~e EXPR</entry><entry>message which contains EXPR in the ``Sender'' field</entry></row>
-<row><entry>%e GROUP</entry><entry>message which contain a member of GROUP in the ``Sender'' field</entry></row>
+<row><entry>~e <emphasis>EXPR</emphasis></entry><entry>message which contains <emphasis>EXPR</emphasis> in the ``Sender'' field</entry></row>
+<row><entry>%e <emphasis>GROUP</emphasis></entry><entry>message which contain a member of <emphasis>GROUP</emphasis> in the ``Sender'' field</entry></row>
<row><entry>~E</entry><entry>expired messages</entry></row>
<row><entry>~F</entry><entry>flagged messages</entry></row>
-<row><entry>~f EXPR</entry><entry>messages originating from EXPR</entry></row>
-<row><entry>%f GROUP</entry><entry>messages originating from any member of GROUP</entry></row>
+<row><entry>~f <emphasis>EXPR</emphasis></entry><entry>messages originating from <emphasis>EXPR</emphasis></entry></row>
+<row><entry>%f <emphasis>GROUP</emphasis></entry><entry>messages originating from any member of <emphasis>GROUP</emphasis></entry></row>
<row><entry>~g</entry><entry>cryptographically signed messages</entry></row>
<row><entry>~G</entry><entry>cryptographically encrypted messages</entry></row>
-<row><entry>~h EXPR</entry><entry>messages which contain EXPR in the message header</entry></row>
-<row><entry>~H EXPR</entry><entry>messages with a spam attribute matching EXPR</entry></row>
-<row><entry>~i EXPR</entry><entry>message which match EXPR in the ``Message-ID'' field</entry></row>
+<row><entry>~h <emphasis>EXPR</emphasis></entry><entry>messages which contain <emphasis>EXPR</emphasis> in the message header</entry></row>
+<row><entry>~H <emphasis>EXPR</emphasis></entry><entry>messages with a spam attribute matching <emphasis>EXPR</emphasis></entry></row>
+<row><entry>~i <emphasis>EXPR</emphasis></entry><entry>message which match <emphasis>EXPR</emphasis> in the ``Message-ID'' field</entry></row>
<row><entry>~k</entry><entry>message contains PGP key material</entry></row>
-<row><entry>~L EXPR</entry><entry>message is either originated or received by EXPR</entry></row>
-<row><entry>%L GROUP</entry><entry>message is either originated or received by any member of GROUP</entry></row>
+<row><entry>~L <emphasis>EXPR</emphasis></entry><entry>message is either originated or received by <emphasis>EXPR</emphasis></entry></row>
+<row><entry>%L <emphasis>GROUP</emphasis></entry><entry>message is either originated or received by any member of <emphasis>GROUP</emphasis></entry></row>
<row><entry>~l</entry><entry>message is addressed to a known mailing list</entry></row>
-<row><entry>~m [MIN]-[MAX]</entry><entry>message in the range MIN to MAX *)</entry></row>
-<row><entry>~n [MIN]-[MAX]</entry><entry>messages with a score in the range MIN to MAX *)</entry></row>
+<row><entry>~m [<emphasis>MIN</emphasis>]-[<emphasis>MAX</emphasis>]</entry><entry>message in the range <emphasis>MIN</emphasis> to <emphasis>MAX</emphasis> *)</entry></row>
+<row><entry>~n [<emphasis>MIN</emphasis>]-[<emphasis>MAX</emphasis>]</entry><entry>messages with a score in the range <emphasis>MIN</emphasis> to <emphasis>MAX</emphasis> *)</entry></row>
<row><entry>~N</entry><entry>new messages</entry></row>
<row><entry>~O</entry><entry>old messages</entry></row>
<row><entry>~p</entry><entry>message is addressed to you (consults alternates)</entry></row>
<row><entry>~P</entry><entry>message is from you (consults alternates)</entry></row>
<row><entry>~Q</entry><entry>messages which have been replied to</entry></row>
-<row><entry>~r [MIN]-[MAX]</entry><entry>messages with ``date-received'' in a Date range</entry></row>
+<row><entry>~r [<emphasis>MIN</emphasis>]-[<emphasis>MAX</emphasis>]</entry><entry>messages with ``date-received'' in a Date range</entry></row>
<row><entry>~R</entry><entry>read messages</entry></row>
-<row><entry>~s EXPR</entry><entry>messages having EXPR in the ``Subject'' field.</entry></row>
+<row><entry>~s <emphasis>EXPR</emphasis></entry><entry>messages having <emphasis>EXPR</emphasis> in the ``Subject'' field.</entry></row>
<row><entry>~S</entry><entry>superseded messages</entry></row>
-<row><entry>~t EXPR</entry><entry>messages addressed to EXPR</entry></row>
+<row><entry>~t <emphasis>EXPR</emphasis></entry><entry>messages addressed to <emphasis>EXPR</emphasis></entry></row>
<row><entry>~T</entry><entry>tagged messages</entry></row>
<row><entry>~u</entry><entry>message is addressed to a subscribed mailing list</entry></row>
<row><entry>~U</entry><entry>unread messages</entry></row>
<row><entry>~v</entry><entry>message is part of a collapsed thread.</entry></row>
<row><entry>~V</entry><entry>cryptographically verified messages</entry></row>
-<row><entry>~x EXPR</entry><entry>messages which contain EXPR in the `References' field</entry></row>
-<row><entry>~X [MIN]-[MAX]</entry><entry>messages with MIN to MAX attachments *)</entry></row>
-<row><entry>~y EXPR</entry><entry>messages which contain EXPR in the `X-Label' field</entry></row>
-<row><entry>~z [MIN]-[MAX]</entry><entry>messages with a size in the range MIN to MAX *)</entry></row>
+<row><entry>~x <emphasis>EXPR</emphasis></entry><entry>messages which contain <emphasis>EXPR</emphasis> in the `References' field</entry></row>
+<row><entry>~X [<emphasis>MIN</emphasis>]-[<emphasis>MAX</emphasis>]</entry><entry>messages with <emphasis>MIN</emphasis> to <emphasis>MAX</emphasis> attachments *)</entry></row>
+<row><entry>~y <emphasis>EXPR</emphasis></entry><entry>messages which contain <emphasis>EXPR</emphasis> in the `X-Label' field</entry></row>
+<row><entry>~z [<emphasis>MIN</emphasis>]-[<emphasis>MAX</emphasis>]</entry><entry>messages with a size in the range <emphasis>MIN</emphasis> to <emphasis>MAX</emphasis> *)</entry></row>
<row><entry>~=</entry><entry>duplicated messages (see $duplicate_threads)</entry></row>
<row><entry>~$</entry><entry>unreferenced messages (requires threaded view)</entry></row>
-<row><entry>~(PATTERN)</entry><entry>messages in threads
-containing messages matching a certain pattern, e.g. all
+<row><entry>~(<emphasis>PATTERN</emphasis>)</entry><entry>messages in threads
+containing messages matching <emphasis>PATTERN</emphasis>, e.g. all
threads containing messages from you: ~(~P)</entry></row>
</tbody>
</tgroup>
</para>
<para>
-Where EXPR is a
+Where <emphasis>EXPR</emphasis> is a
<link linkend="regexp">regular expression</link>. Special attention has to be
made when using regular expressions inside of patterns. Specifically,
-Mutt's parser for these patterns will strip one level of backslash (\),
+Mutt's parser for these patterns will strip one level of backslash (``\''),
which is normally used for quoting. If it is your intention to use a
backslash in the regular expression, you will need to use two backslashes
-instead (\\). You can force mutt to treat EXPR as a simple string
+instead (``\\''). You can force mutt to treat <emphasis>EXPR</emphasis> as a simple string
instead of a regular expression by using = instead of ˜ in the
pattern name. For example, =b *.* will find all messages that contain
the literal string '*.*'. Simple string matches are less powerful than
</para>
<para>
-*) The forms <literal><[MAX]</literal>, <literal>>[MIN]</literal>,
-<literal>[MIN]-</literal> and <literal>-[MAX]</literal>
+*) The forms ``<[<emphasis>MAX</emphasis>]'', ``>[<emphasis>MIN</emphasis>]'',
+``[<emphasis>MIN</emphasis>]-'' and ``-[<emphasis>MAX</emphasis>]''
are allowed, too.
</para>
<title>Pattern Modifier</title>
<para>
-Note that patterns matching 'lists' of addresses (notably c,C,p,P and t)
+Note that patterns matching 'lists' of addresses (notably c, C, p, P and t)
match if there is at least one match in the whole list. If you want to
make sure that all elements of that list match, you need to prefix your
-pattern with ˆ.
+pattern with ``ˆ''.
This example matches all mails which only has recipients from Germany.
</para>
Mutt supports two versions of so called ``simple searches'' which are
issued if the query entered for searching, limiting and similar
operations does not seem to be a valid pattern (i.e. it does not contain
-one of these characters: ``~'', ``='' or ``%''). If the query is
+one of these characters: ``˜'', ``='' or ``%''). If the query is
supposed to contain one of these special characters, they must be escaped
by prepending a backslash (``\'').
</para>
<title>Using Hooks</title>
<para>
-A <emphasis>hook</emphasis> is a concept borrowed from the EMACS editor which allows you to
+A <emphasis>hook</emphasis> is a concept found in many other programs which allows you to
execute arbitrary commands before performing some operation. For example,
you may wish to tailor your configuration based upon which mailbox you are
reading, or to whom you are sending mail. In the Mutt world, a <emphasis>hook</emphasis>
</sect1>
<sect1 id="urlview">
-<title>Start a WWW Browser on URLs (EXTERNAL)</title>
+<title>Start a WWW Browser on URLs</title>
<para>
-If a message contains URLs (<emphasis>unified resource locator</emphasis> = address in the
-WWW space like <emphasis>http://www.mutt.org/</emphasis>), it is efficient to get
+If a message contains URLs, it is efficient to get
a menu with all the URLs and start a WWW browser on one of them. This
functionality is provided by the external urlview program which can be
retrieved at <ulink