On Mon, Mar 26, 2012 at 01:03:32PM -0600, Scott Barker wrote: > FYI, I use the following in my .muttrc, which includes an expansion of $HOME > in <change-folder-readonly>, and it works fine: > > macro index / "<shell-escape>mutt-notmuch --prompt search<enter><change-folder-readonly>$HOME/.cache/mutt_results<enter>" "notmuch search" Right, but I need support for variable expansions with defaults, because there's no guarantee that $XDG_CACHE_HOME is defined in user environment. I.e., I need the equivalent of shell ${name:-default} idiom. AFAICT that is not supported by Mutt natively. Hence the need of resorting to shell escaping. Hope this explains, -- Stefano Zacchiroli zack@{upsilon.cc,pps.jussieu.fr,debian.org} . o . Maître de conférences ...... http://upsilon.cc/zack ...... . . o Debian Project Leader ....... @zack on identi.ca ....... o o o « the first rule of tautology club is the first rule of tautology club »