From: Brendan Cully Date: Wed, 14 Mar 2007 21:04:25 +0000 (-0700) Subject: Add demo mutt_xtitle script X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6e5d1d946eba915a32f1a08d1d91b4a08531aaf;p=neomutt Add demo mutt_xtitle script --- diff --git a/ChangeLog b/ChangeLog index e5e0a5496..0b901d0ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,28 @@ +2007-03-14 13:57 -0700 Brendan Cully (67c017c8af80) + + * muttlib.c: Remove trailing newlines from fmtpipe return value. + Increase fmtpipe logging level to 3. + +2007-03-14 13:49 -0700 David Champion (63ad6be01750) + + * mutt.h, muttlib.c: Allow format strings to be filtered. Any format + string ending in | will be expanded and piped through the first word + in the string. 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. + +2007-03-14 13:26 -0700 Brendan Cully (e9203a364537) + + * imap/imap.c: Recheck capabilities after authentication (closes: + #2837) + 2007-03-14 13:09 -0700 Christoph Berg (cbacb14a837a) * doc/mutt.man, main.c: mutt.man and mutt -h updates - the following patch documents mutt --, removes the reference to - flea, and generally updates the mutt.1 manpage. + Document mutt --, remove the reference to + flea, and generally update the mutt.1 manpage. (I removed -d from the SYNOPSIS part since it wasn't entirely correct syntactically there and putting it elsewhere seems like diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 363e7928d..f6e67d42f 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -5,7 +5,7 @@ subdir = contrib SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp5.rc pgp6.rc Tin.rc \ sample.muttrc sample.mailcap sample.muttrc-tlr \ colors.default colors.linux smime.rc \ - ca-bundle.crt smime_keys_test.pl + ca-bundle.crt smime_keys_test.pl mutt_xtitle EXTRA_DIST = language.txt language50.txt \ patch.slang-1.2.2.keypad.1 \ diff --git a/contrib/mutt_xtitle b/contrib/mutt_xtitle new file mode 100755 index 000000000..f9b8a23ff --- /dev/null +++ b/contrib/mutt_xtitle @@ -0,0 +1,9 @@ +#!/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" diff --git a/muttlib.c b/muttlib.c index d448831a0..32495f3e6 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1096,7 +1096,7 @@ void mutt_FormatString (char *dest, /* output buffer */ if (recycler) { mutt_FormatString(dest, destlen++, recycler, callback, data, flags); - safe_free(&recycler); + FREE(&recycler); } } }