<screen>unmy_hdr to cc</screen>
</sect1>
- <sect1 id="save-hook">
- <title>Specify Default Save Mailbox</title>
+ <sect1 id="default-save-mailbox">
+ <title>Specify Default Fcc: and/or Save Mailbox</title>
<para>
Usage:
</para>
<cmdsynopsis>
+ <command>fcc-save-hook</command>
+ <arg choice="plain">
+ <replaceable class="parameter">pattern</replaceable>
+ </arg>
+ <arg choice="plain">
+ <replaceable class="parameter">mailbox</replaceable>
+ </arg>
+ <command>fcc-hook</command>
+ <arg choice="plain">
+ <replaceable class="parameter">pattern</replaceable>
+ </arg>
+ <arg choice="plain">
+ <replaceable class="parameter">mailbox</replaceable>
+ </arg>
<command>save-hook</command>
<arg choice="plain">
<replaceable class="parameter">pattern</replaceable>
<replaceable class="parameter">mailbox</replaceable>
</arg>
</cmdsynopsis>
- <para>
- This command is used to override the default mailbox used when saving
- messages. <emphasis>mailbox</emphasis> will be used as the default if
- the message matches <emphasis>pattern</emphasis>, see
- <xref linkend="pattern-hook" /> for information on the exact format.
+ <para><anchor id="fcc-save-hook" />
+ <command>fcc-save-hook</command> is a shortcut, equivalent to doing
+ both a <link linkend="fcc-hook"><command>fcc-hook</command></link> and
+ a <link linkend="save-hook"><command>save-hook</command></link> with
+ its arguments, including %-expansion on <emphasis>mailbox</emphasis>
+ according to <link linkend="index-format">$index_format</link>.
</para>
+
+ <para><anchor id="fcc-hook" />
+ <command>fcc-hook</command> is used to save outgoing mail in a mailbox
+ other than <link linkend="record">$record</link>. NeoMutt searches the
+ initial list of message recipients for the first matching
+ <emphasis>pattern</emphasis> and uses <emphasis>mailbox</emphasis> as
+ the default <quote>Fcc:</quote> mailbox. If no match is found the
+ message will be saved to <link linkend="record">$record</link> mailbox.
+ </para>
+ <screen>fcc-hook [@.]aol\\.com$ +spammers</screen>
<para>
- To provide more flexibility and good defaults, NeoMutt applies the
- expandos of <link linkend="index-format">$index_format</link> to
- <emphasis>mailbox</emphasis> after it was expanded.
+ ...will save a copy of all messages going to the aol.com domain to the
+ <quote>+spammers</quote> mailbox by default.
</para>
- <example id="ex-save-hook-exando">
- <title>Using %-expandos in
- <command>save-hook</command></title>
-<screen>
+ <para><anchor id="save-hook" />
+ <command>save-hook</command> is used to override the default mailbox
+ used when saving messages. <emphasis>mailbox</emphasis> will be used
+ as the default if the message matches <emphasis>pattern</emphasis>.
+ </para>
+ <example id="ex-save-hook-exando">
+ <title>Using %-expandos in <command>save-hook</command></title>
+ <screen>
<emphasis role="comment"># default: save all to ~/Mail/<author name></emphasis>
save-hook . ~/Mail/%F
<emphasis role="comment"># save from me@turing.cs.hmc.edu and me@cs.hmc.edu to $folder/elkins</emphasis>
save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins
<emphasis role="comment"># save from aol.com to $folder/spam</emphasis>
save-hook aol\\.com$ +spam
-</screen>
-
+ </screen>
</example>
+
<para>
Also see the
<link linkend="fcc-save-hook"><command>fcc-save-hook</command></link>
command.
- </para>
- </sect1>
-
- <sect1 id="fcc-hook">
- <title>Specify Default Fcc: Mailbox When Composing</title>
- <para>
- Usage:
- </para>
- <cmdsynopsis>
- <command>fcc-hook</command>
- <arg choice="plain">
- <replaceable class="parameter">pattern</replaceable>
- </arg>
- <arg choice="plain">
- <replaceable class="parameter">mailbox</replaceable>
- </arg>
- </cmdsynopsis>
- <para>
- This command is used to save outgoing mail in a mailbox other than
- <link linkend="record">$record</link>. NeoMutt searches the initial
- list of message recipients for the first matching
- <emphasis>pattern</emphasis> and uses <emphasis>mailbox</emphasis> as
- the default Fcc: mailbox. If no match is found the message will be
- saved to <link linkend="record">$record</link> mailbox.
- </para>
- <para>
+ </para><para>
To provide more flexibility and good defaults, NeoMutt applies the
expandos of <link linkend="index-format">$index_format</link> to
- <emphasis>mailbox</emphasis> after it was expanded.
- </para>
- <para>
- See <xref linkend="pattern-hook" /> for information on the exact format
- of <emphasis>pattern</emphasis>.
- </para>
- <screen>fcc-hook [@.]aol\\.com$ +spammers</screen>
- <para>
- ...will save a copy of all messages going to the aol.com domain to the
- `+spammers' mailbox by default. Also see the
- <link linkend="fcc-save-hook"><command>fcc-save-hook</command></link>
- command.
- </para>
- </sect1>
-
- <sect1 id="fcc-save-hook">
- <title>Specify Default Save Filename and Default Fcc: Mailbox at Once</title>
- <para>
- Usage:
- </para>
- <cmdsynopsis>
- <command>fcc-save-hook</command>
- <arg choice="plain">
- <replaceable class="parameter">pattern</replaceable>
- </arg>
- <arg choice="plain">
- <replaceable class="parameter">mailbox</replaceable>
- </arg>
- </cmdsynopsis>
- <para>
- This command is a shortcut, equivalent to doing both a
- <link linkend="fcc-hook"><command>fcc-hook</command></link> and a
- <link linkend="save-hook"><command>save-hook</command></link> with its
- arguments, including %-expansion on <emphasis>mailbox</emphasis>
- according to <link linkend="index-format">$index_format</link>.
+ <emphasis>mailbox</emphasis> after it was expanded. See
+ <xref linkend="pattern-hook" /> for information on the exact format of
+ <emphasis>pattern</emphasis>.
</para>
</sect1>
</arg>
</group>
<arg choice="opt" rep="repeat"></arg>
- <command>toggle</command>
+ <command>unset</command>
<arg choice="plain">
<replaceable class="parameter">variable</replaceable>
</arg>
<arg choice="opt" rep="repeat">
<replaceable class="parameter">variable</replaceable>
</arg>
- <command>unset</command>
+ <command>reset</command>
<arg choice="plain">
<replaceable class="parameter">variable</replaceable>
</arg>
<arg choice="opt" rep="repeat">
<replaceable class="parameter">variable</replaceable>
</arg>
- <command>reset</command>
+ <command>toggle</command>
<arg choice="plain">
<replaceable class="parameter">variable</replaceable>
</arg>
<link linkend="account-hook"><command>account-hook</command></link>
</para>
</listitem>
- <listitem>
- <para>
- <link linkend="append-hook"><command>append-hook</command></link>
- </para>
- </listitem>
<listitem>
<para>
<link linkend="charset-hook"><command>charset-hook</command></link>
</para>
- </listitem>
- <listitem>
<para>
- <link linkend="close-hook"><command>close-hook</command></link>
+ <link linkend="iconv-hook"><command>iconv-hook</command></link>
</para>
</listitem>
<listitem>
</listitem>
<listitem>
<para>
- <link linkend="fcc-hook"><command>fcc-hook</command></link>
+ <link linkend="fcc-save-hook"><command>fcc-save-hook</command></link>
</para>
- </listitem>
- <listitem>
<para>
- <link linkend="fcc-save-hook"><command>fcc-save-hook</command></link>
+ <link linkend="fcc-hook"><command>fcc-hook</command></link>
</para>
- </listitem>
- <listitem>
<para>
- <link linkend="folder-hook"><command>folder-hook</command></link>
+ <link linkend="save-hook"><command>save-hook</command></link>
</para>
</listitem>
<listitem>
<para>
- <link linkend="iconv-hook"><command>iconv-hook</command></link>
+ <link linkend="folder-hook"><command>folder-hook</command></link>
</para>
</listitem>
<listitem>
<para>
<link linkend="open-hook"><command>open-hook</command></link>
</para>
+ <para>
+ <link linkend="close-hook"><command>close-hook</command></link>
+ </para>
+ <para>
+ <link linkend="append-hook"><command>append-hook</command></link>
+ </para>
</listitem>
<listitem>
<para>
<link linkend="reply-hook"><command>reply-hook</command></link>
</para>
- </listitem>
- <listitem>
<para>
- <link linkend="save-hook"><command>save-hook</command></link>
+ <link linkend="send-hook"><command>send-hook</command></link>
+ </para>
+ <para>
+ <link linkend="send2-hook"><command>send2-hook</command></link>
</para>
</listitem>
<listitem>
<para>
- <link linkend="send-hook"><command>send-hook</command></link>
+ <link linkend="global-hooks"><command>timeout-hook</command></link>
+ </para>
+ <para>
+ <link linkend="global-hooks"><command>startup-hook</command></link>
+ </para>
+ <para>
+ <link linkend="global-hooks"><command>shutdown-hook</command></link>
</para>
</listitem>
<listitem>
<para>
- <link linkend="send2-hook"><command>send2-hook</command></link>
+ <link linkend="unhook"><command>unhook</command></link>
</para>
</listitem>
</itemizedlist>
<row>
<entry><emphasis>@alias</emphasis></entry>
<entry>
- to the <link linkend="save-hook">default save folder</link> as
- determined by the address of the alias
+ to the
+ <link linkend="default-save-mailbox">default save folder</link>
+ as determined by the address of the alias
</entry>
</row>
</tbody>
</group>
</cmdsynopsis>
</listitem>
- <listitem>
- <cmdsynopsis>
- <command>
- <link linkend="append-hook">append-hook</link>
- </command>
- <arg choice="plain">
- <replaceable class="parameter">regex</replaceable>
- </arg>
- <arg choice="plain">
- <replaceable class="parameter">"shell-command"</replaceable>
- </arg>
- </cmdsynopsis>
- </listitem>
<listitem>
<cmdsynopsis>
<command>
<arg choice="plain">
<replaceable class="parameter">charset</replaceable>
</arg>
- </cmdsynopsis>
- </listitem>
- <listitem>
- <cmdsynopsis>
<command>
- <link linkend="close-hook">close-hook</link>
+ <link linkend="charset-hook">iconv-hook</link>
</command>
<arg choice="plain">
- <replaceable class="parameter">regex</replaceable>
+ <replaceable class="parameter">charset</replaceable>
</arg>
<arg choice="plain">
- <replaceable class="parameter">"shell-command"</replaceable>
+ <replaceable class="parameter">local-charset</replaceable>
</arg>
</cmdsynopsis>
</listitem>
<listitem>
<cmdsynopsis>
<command>
- <link linkend="fcc-hook">fcc-hook</link>
+ <link linkend="default-save-mailbox">fcc-save-hook</link>
</command>
<arg choice="plain">
<replaceable class="parameter">pattern</replaceable>
<arg choice="plain">
<replaceable class="parameter">mailbox</replaceable>
</arg>
- </cmdsynopsis>
- </listitem>
- <listitem>
- <cmdsynopsis>
<command>
- <link linkend="fcc-save-hook">fcc-save-hook</link>
+ <link linkend="default-save-mailbox">fcc-hook</link>
+ </command>
+ <arg choice="plain">
+ <replaceable class="parameter">pattern</replaceable>
+ </arg>
+ <arg choice="plain">
+ <replaceable class="parameter">mailbox</replaceable>
+ </arg>
+ <command>
+ <link linkend="default-save-mailbox">save-hook</link>
</command>
<arg choice="plain">
<replaceable class="parameter">pattern</replaceable>
</group>
</cmdsynopsis>
</listitem>
- <listitem>
- <cmdsynopsis>
- <command>
- <link linkend="iconv-hook">iconv-hook</link>
- </command>
- <arg choice="plain">
- <replaceable class="parameter">charset</replaceable>
- </arg>
- <arg choice="plain">
- <replaceable class="parameter">local-charset</replaceable>
- </arg>
- </cmdsynopsis>
- </listitem>
<listitem>
<cmdsynopsis>
<command>
<replaceable>regex</replaceable>
</arg>
</group>
+ <command>
+ <link linkend="lists">subscribe</link>
+ </command>
+ <arg choice="opt" rep="repeat">
+ <option>-group</option>
+ <replaceable class="parameter">name</replaceable>
+ </arg>
+ <arg choice="plain">
+ <replaceable class="parameter">regex</replaceable>
+ </arg>
+ <arg choice="opt" rep="repeat">
+ <replaceable class="parameter">regex</replaceable>
+ </arg>
+ <command>
+ <link linkend="lists">unsubscribe</link>
+ </command>
+ <arg choice="opt" rep="repeat">
+ <option>-group</option>
+ <replaceable>name</replaceable>
+ </arg>
+ <group choice="req">
+ <arg choice="plain">
+ <replaceable class="parameter">*</replaceable>
+ </arg>
+ <arg choice="plain" rep="repeat">
+ <replaceable class="parameter">regex</replaceable>
+ </arg>
+ </group>
</cmdsynopsis>
</listitem>
<listitem>
<arg choice="plain">
<replaceable class="parameter">"shell-command"</replaceable>
</arg>
+ <command>
+ <link linkend="close-hook">close-hook</link>
+ </command>
+ <arg choice="plain">
+ <replaceable class="parameter">regex</replaceable>
+ </arg>
+ <arg choice="plain">
+ <replaceable class="parameter">"shell-command"</replaceable>
+ </arg>
+ <command>
+ <link linkend="append-hook">append-hook</link>
+ </command>
+ <arg choice="plain">
+ <replaceable class="parameter">regex</replaceable>
+ </arg>
+ <arg choice="plain">
+ <replaceable class="parameter">"shell-command"</replaceable>
+ </arg>
</cmdsynopsis>
</listitem>
<listitem>
<listitem>
<cmdsynopsis>
<command>
- <link linkend="reply-hook">reply-hook</link>
+ <link linkend="send-hook">reply-hook</link>
</command>
<arg choice="plain">
<replaceable class="parameter">pattern</replaceable>
<arg choice="plain">
<replaceable class="parameter">command</replaceable>
</arg>
- </cmdsynopsis>
- </listitem>
- <listitem>
- <cmdsynopsis>
<command>
- <link linkend="save-hook">save-hook</link>
+ <link linkend="send-hook">send-hook</link>
</command>
<arg choice="plain">
<replaceable class="parameter">pattern</replaceable>
</arg>
<arg choice="plain">
- <replaceable class="parameter">mailbox</replaceable>
+ <replaceable class="parameter">command</replaceable>
+ </arg>
+ <command>
+ <link linkend="send-hook">send2-hook</link>
+ </command>
+ <arg choice="plain">
+ <replaceable class="parameter">pattern</replaceable>
+ </arg>
+ <arg choice="plain">
+ <replaceable class="parameter">command</replaceable>
</arg>
</cmdsynopsis>
</listitem>
</group>
</cmdsynopsis>
</listitem>
- <listitem>
- <cmdsynopsis>
- <command>
- <link linkend="send-hook">send-hook</link>
- </command>
- <arg choice="plain">
- <replaceable class="parameter">pattern</replaceable>
- </arg>
- <arg choice="plain">
- <replaceable class="parameter">command</replaceable>
- </arg>
- </cmdsynopsis>
- </listitem>
- <listitem>
- <cmdsynopsis>
- <command>
- <link linkend="send2-hook">send2-hook</link>
- </command>
- <arg choice="plain">
- <replaceable class="parameter">pattern</replaceable>
- </arg>
- <arg choice="plain">
- <replaceable class="parameter">command</replaceable>
- </arg>
- </cmdsynopsis>
- </listitem>
<listitem>
<cmdsynopsis>
<command>
</group>
<arg choice="opt" rep="repeat"></arg>
<command>
- <link linkend="set">toggle</link>
+ <link linkend="set">unset</link>
</command>
<arg choice="plain">
<replaceable class="parameter">variable</replaceable>
<replaceable class="parameter">variable</replaceable>
</arg>
<command>
- <link linkend="set">unset</link>
+ <link linkend="set">reset</link>
</command>
<arg choice="plain">
<replaceable class="parameter">variable</replaceable>
<replaceable class="parameter">variable</replaceable>
</arg>
<command>
- <link linkend="set">reset</link>
+ <link linkend="set">toggle</link>
</command>
<arg choice="plain">
<replaceable class="parameter">variable</replaceable>
<listitem>
<cmdsynopsis>
<command>
- <link linkend="subscribe">subscribe</link>
+ <link linkend="global-hooks">timeout-hook</link>
</command>
- <arg choice="opt" rep="repeat">
- <option>-group</option>
- <replaceable class="parameter">name</replaceable>
- </arg>
<arg choice="plain">
- <replaceable class="parameter">regex</replaceable>
+ <replaceable class="parameter">command</replaceable>
</arg>
- <arg choice="opt" rep="repeat">
- <replaceable class="parameter">regex</replaceable>
+ <command>
+ <link linkend="global-hooks">startup-hook</link>
+ </command>
+ <arg choice="plain">
+ <replaceable class="parameter">command</replaceable>
</arg>
<command>
- <link linkend="subscribe">unsubscribe</link>
+ <link linkend="global-hooks">shutdown-hook</link>
</command>
- <arg choice="opt" rep="repeat">
- <option>-group</option>
- <replaceable>name</replaceable>
+ <arg choice="plain">
+ <replaceable class="parameter">command</replaceable>
</arg>
- <group choice="req">
- <arg choice="plain">
- <replaceable class="parameter">*</replaceable>
- </arg>
- <arg choice="plain" rep="repeat">
- <replaceable class="parameter">regex</replaceable>
- </arg>
- </group>
</cmdsynopsis>
</listitem>
<listitem>
</group>
</cmdsynopsis>
</listitem>
- <listitem>
- <cmdsynopsis>
- <command>
- <link linkend="global-hooks">shutdown-hook</link>
- </command>
- <arg choice="plain">
- <replaceable class="parameter">command</replaceable>
- </arg>
- <command>
- <link linkend="global-hooks">startup-hook</link>
- </command>
- <arg choice="plain">
- <replaceable class="parameter">command</replaceable>
- </arg>
- <command>
- <link linkend="global-hooks">timeout-hook</link>
- </command>
- <arg choice="plain">
- <replaceable class="parameter">command</replaceable>
- </arg>
- </cmdsynopsis>
- </listitem>
</itemizedlist>
</sect1>