On Sun, 30 Jun 2002, Rob 'Feztaa' Park wrote:

> Alas! Lee J. Moore spake thus:
[..]
> > `~/bin/maildir-count ~/Maildir/%f`
> > 
> > ...it's actually, ~/Maildir/%f and *not* ~/Maildir/submaildir
> > that's being passed to the bash script.
> 
> Well, yeah. The backticks are being evaluated when mutt starts, not when
> viewing a folder. So of course, %f cannot be expanded because mutt can't
> possibly know what it is.

It's a pity that muttrc printf style format strings can't be
expanded into bash variables - allowing the user to pass them to
external scripts/programs.  

set $thisvariable="%f"
set folder_format="`~/bin/myscript $thisvariable`"

I was hoping to have an incredibly descriptive folder_format
list, but my plans have been dashed by my little oversight. ;-)

-- 
Lee J. Moore
[EMAIL PROTECTED]

Attachment: msg29320/pgp00000.pgp
Description: PGP signature

Reply via email to