Alas! Lee J. Moore spake thus: > Is this possible or impossible? I switched to Maildir a couple > of months ago after years of using mbox and I finally got around > to completely rewriting my muttrc to try to take advantage of > Maildirs different little quirks. > > In the index_format (muttrc) variable, I'd like to pass each of > my sub-Maildir's to a bash script so that I can calculate the > new, deleted and total number of messages - for each sub-Maildir > - and put it in the message index. However, when I call my bash > script, the %f (of course) isn't being expanded. If, in my > index_format, I have this: > > `~/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. -- Rob 'Feztaa' Park http://members.shaw.ca/feztaa/ -- It's simply unbelievable how much energy and creativity people have invested into creating contradictory, bogus and stupid licenses... --- Sven Rudolph about licences in debian/non-free.
msg29319/pgp00000.pgp
Description: PGP signature
