A short post scriptum: in mutt_xtitle, printf "\033]0;$(echo "$1" | sed 's/%/%%/g')\007" > /dev/tty can be replaced by: printf "\033]0;%s\007" "$1" > /dev/ttyAnd it would perhaps make sense to add a mutt_xtitle.c file in the contrib directory, to avoid spawning a shell process too often:
#include <stdio.h> int main (int argc, char **argv) { FILE *f; char *s = ""; if (argc > 1) s = argv[1]; if ((f = fopen ("/dev/tty", "w"))) fprintf (f, "\033]0;%s\007", s); printf ("%s", s); return 0; } Gregory