# Don't scroll past the current message in the pager
set pager_stop
+# Format for the status bar
+set status_format="$HOME/.mutt/set_xtitle '-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'|"
+
# Format for messages in the index
set index_format='%4C %Z %H %{%b %d} %-15.15L %s'
--- /dev/null
+#!/bin/sh
+# Demonstration of format string pipes. Sets the xterm title and returns the
+# string unchanged.
+#
+# Example usage:
+# set status_format="mutt_xtitle '%r %f (%L) [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?]'|"
+
+printf "\033]0;$1\007" > /dev/tty
+echo "$1"