</para>
<sect4 id="compress-open-hook-example">
- <title>Example of open-hook</title>
+ <title>Example of <literal>open-hook</literal></title>
- <screen>open-hook '\.gz$' "gzip -cd '%f' > '%t'"</screen>
+ <screen>open-hook '\.gz$' "gzip --stdout --decompress '%f' > '%t'"</screen>
<itemizedlist>
<listitem><para>Mutt finds a file, <quote>example.gz</quote>,
</note>
<sect4 id="compress-close-hook-example">
- <title>Example of close-hook</title>
+ <title>Example of <literal>close-hook</literal></title>
- <screen>close-hook '\.gz$' "gzip -c '%t' > '%f'"</screen>
+ <screen>close-hook '\.gz$' "gzip --stdout '%t' > '%f'"</screen>
<itemizedlist>
<listitem><para>Mutt has finished with a folder, <quote>example.gz</quote>,
to create a new compressed file</para></listitem>
</itemizedlist>
</sect4>
+
+ <note>
+ <para>
+ The <literal>close-hook</literal> can also include extra options,
+ e.g. compression level: <literal>--best</literal>
+ </para>
+ </note>
</sect3>
<sect3 id="append-hook">
</note>
<sect4 id="compress-append-hook-example">
- <title>Example of append-hook</title>
+ <title>Example of <literal>append-hook</literal></title>
- <screen>append-hook '\.gz$' "gzip -c '%t' >> '%f'"</screen>
+ <screen>append-hook '\.gz$' "gzip --stdout '%t' >> '%f'"</screen>
<itemizedlist>
<listitem><para>Mutt wants to append an email to a folder, <quote>example.gz</quote>,
</itemizedlist>
</sect4>
+ <note>
+ <para>
+ The <literal>append-hook</literal> can also include extra options,
+ e.g. compression level: <literal>--best</literal>
+ </para>
+ </note>
+
</sect3>
<sect3 id="compress-empty">
<variablelist>
<varlistentry>
<term><emphasis role="bold">Dependencies:</emphasis></term>
- <listitem><para>IMAP support</para></listitem>
+ <listitem><para>If IMAP is enabled, the trash folder will use it wisely</para></listitem>
</varlistentry>
</variablelist>
-
- <para>
- If IMAP is enabled, this patch will use it
- </para>
</sect2>
<sect2 id="trash-folder-intro">