mutt stable branch with some hacks

Add demo mutt_xtitle script

+32 -4
+21 -2
ChangeLog
··· 1 + 2007-03-14 13:57 -0700 Brendan Cully <brendan@kublai.com> (67c017c8af80) 2 + 3 + * muttlib.c: Remove trailing newlines from fmtpipe return value. 4 + Increase fmtpipe logging level to 3. 5 + 6 + 2007-03-14 13:49 -0700 David Champion <dgc@uchicago.edu> (63ad6be01750) 7 + 8 + * mutt.h, muttlib.c: Allow format strings to be filtered. Any format 9 + string ending in | will be expanded and piped through the first word 10 + in the string. The string returned will be used for display. If the 11 + returned string ends in %, it will be passed through the formatter a 12 + second time. This allows the filter to generate a replacement format 13 + string including % expandos. 14 + 15 + 2007-03-14 13:26 -0700 Brendan Cully <brendan@kublai.com> (e9203a364537) 16 + 17 + * imap/imap.c: Recheck capabilities after authentication (closes: 18 + #2837) 19 + 1 20 2007-03-14 13:09 -0700 Christoph Berg <cb@df7cb.de> (cbacb14a837a) 2 21 3 22 * doc/mutt.man, main.c: mutt.man and mutt -h updates 4 23 5 - the following patch documents mutt --, removes the reference to 6 - flea, and generally updates the mutt.1 manpage. 24 + Document mutt --, remove the reference to 25 + flea, and generally update the mutt.1 manpage. 7 26 8 27 (I removed -d from the SYNOPSIS part since it wasn't entirely 9 28 correct syntactically there and putting it elsewhere seems like
+1 -1
contrib/Makefile.am
··· 5 5 SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp5.rc pgp6.rc Tin.rc \ 6 6 sample.muttrc sample.mailcap sample.muttrc-tlr \ 7 7 colors.default colors.linux smime.rc \ 8 - ca-bundle.crt smime_keys_test.pl 8 + ca-bundle.crt smime_keys_test.pl mutt_xtitle 9 9 10 10 EXTRA_DIST = language.txt language50.txt \ 11 11 patch.slang-1.2.2.keypad.1 \
+9
contrib/mutt_xtitle
··· 1 + #!/bin/sh 2 + # Demonstration of format string pipes. Sets the xterm title and returns the 3 + # string unchanged. 4 + # 5 + # Example usage: 6 + # 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?]'|" 7 + 8 + printf "\033]0;$1\007" > /dev/tty 9 + echo "$1"
+1 -1
muttlib.c
··· 1096 1096 if (recycler) 1097 1097 { 1098 1098 mutt_FormatString(dest, destlen++, recycler, callback, data, flags); 1099 - safe_free(&recycler); 1099 + FREE(&recycler); 1100 1100 } 1101 1101 } 1102 1102 }