+2007-10-11 11:18 +0200 Rocco Rutte <pdmef@gmx.net> (efcd349fc9e0)
+
+ * init.h: Document that $indent_string actually is a format string.
+
+2007-10-11 11:03 +0200 Rocco Rutte <pdmef@gmx.net> (40f2c0f4c597)
+
+ * ChangeLog, muttlib.c: Do not consider empty pipes for filtering in
+ format strings. This fixes a crash with $indent_string="|" and
+ $text_flowed unset.
+
2007-09-28 11:06 +0200 Rocco Rutte <pdmef@gmx.net> (709db707bcdf)
* curs_lib.c, muttlib.c, protos.h: Make mutt_FormatString()'s string
+ $save_history, $history_file (save history across sessions)
+ $smtp_url (ESMTP relay support)
+ $crypt_use_pka (use GPGME PKA signature verification)
+ ! format pipe support: format strings ending in | are filtered
1.5.13 (2006-08-14):
<sect1 id="formatstrings">
<title>Format Strings</title>
+<sect2>
+<title>Basic usage</title>
+
<para>
Format strings are a general concept you'll find in several locations
through the mutt configuration, especially in the
replace all decimal points with underlines.
</para>
+</sect2>
+
+<sect2>
+<title>Filters</title>
+
+<para>
+Any format string ending in a vertical bar (``|'') will be
+expanded and piped through the first word in the string, using spaces
+as separator. The string returned will be used for display.
+If the returned string ends in %, it will be passed through
+the formatter a second time. This allows the filter to generate a
+replacement format string including % expandos.
+</para>
+
+<para>
+All % expandos in a format string are expanded before the script
+is called so that:
+</para>
+
+<screen>
+set status_format="script.sh '%r %f (%L)'|"
+</screen>
+
+<para>
+will make mutt expand <literal>%r</literal>,
+<literal>%f</literal> and <literal>%L</literal>
+before calling the script. The example also shows that arguments can be
+quoted: the script will receive the expanded string between the single quotes
+as the only argument.
+</para>
+
+<para>
+A practical example is the <literal>mutt_xtitle</literal>
+script installed in the <literal>samples</literal>
+subdirectory of the mutt documentation: it can be used as filter for
+<literal>$status_format</literal> to set the current
+terminal's title, if supported.
+</para>
+
+</sect2>
+
</sect1>
</chapter>