On Wed, Sep 01, 1999 at 10:37:21AM +0000, Gerard Beekmans wrote: > I was playing with the index_format variable today and I got stuck > somewhere. If i add a line like set index_format="%C %a" in .muttrc it > works fine by itself. If, however, I add it in a folder-hook like: > folder-hook Misc_Messages set index_format="%C %a" it doesn't work. Mutt > loads with the message %a: unknown variable and it then only displays > the output of the first variable (%C in this example, so I get the > number of messages and that's it). > > Is this a real problem or am I doing something wrong and I just > shouldn't use the index_format var. in a folder-hook? Or am I supposed > to use a special variable to denote a space? Because if I add set > index_format="%C%a" in a folder-hook it does work, but it won't put a > space and thus makes it not nice to read. This is a somewhat common problem. The *-hook commands work similar to the eval command of most shell programs in that one level of quotation marks is removed. So in the example above, you are trying to execute set index_format=%C %a which is trying to set the variable %a, which is of course not right. You can either add single quotes (') arround the 'set ...' or backquote (\) the space twice: set index_format="%C\\ %a" me