<<< Date Index >>>     <<< Thread Index >>>

Re: ":source ~/.muttrc" command weirdly moves message around in



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday, June 15 at 09:54 PM, quoth Russell Hoover:
>I mean, what I need is surely this:
>
>     folder-hook   <|cv|dm        'set index_format="whatever"

Yes, that is more succinct, assuming that the only reason "sent" was 
in there was to match against $record. However, like I said, that 
"sent" string in the original pattern will also match folders named 
"abSENT" and "SENTimental" and "esSENTial". So it was entirely 
possible that the "sent" string was not redundant, and was actually 
intentional.

>if I want the three folders, "<" "cv" and "dv", all to have the same 
>index format, yes?

That's still a bad regular expression for that purpose, because it's 
still excessively general. It will match against things like 
"advocacy" and "inadvertent" and "advisor". I suggest, at the very 
least, that you use something more like this:

     folder-hook '(<|=cv|=dm)$' 'set index_format="whatever"'

...assuming that cv and dm are folders within $folder (which is what = 
means).

~Kyle
- -- 
It has been my experience that folks who have no vices have very few 
virtues.
                                                     -- Abraham Lincoln
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkhV0oUACgkQBkIOoMqOI15fAACeJcZckM72SWXw7TTCZIbl3f6c
h5AAoOz2WV+OMfavWvIqC2gEk1YtUo6g
=2cf8
-----END PGP SIGNATURE-----