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

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



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

On Sunday, June 15 at 02:45 PM, quoth Russell Hoover:
>On Sun 06/15/08 at 10:39 AM -0500, Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx> 
>wrote:
>
>> Probably a folder-hook that sets your sorting order whenever you enter
>> the INBOX.
>
>Well, I have what's below, but I've these forever:

How long you've had them is beside the point. The point is that folder 
hooks are only triggered when you *ENTER* a directory. So, if you have 
the following in your muttrc:

     set sort=date
     folder-hook . 'set sort=threads'

Then when you view your inbox, it'll be sorted by threads, but if you 
source your muttrc while viewing your inbox, it'll suddenly be sorted 
by date until you re-open your inbox. That's the expected behavior.

Think of it this way:

     mutt reads your muttrc (sort=date)
     mutt opens your inbox (hook triggered, sort=threads)
     you tell mutt to re-read the muttrc (sort=date)
     you tell mutt to re-open your inbox (hook triggered, sort=threads)

~Kyle
- -- 
I have always found that mercy bears richer fruits than strict 
justice.
                                                     -- Abraham Lincoln
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkhVco0ACgkQBkIOoMqOI15Z8QCfawy6QvYqUxIid8a7VtSqskB8
xg8AmwTv562gON+a5c0Z2V78tFxVISkP
=wZqC
-----END PGP SIGNATURE-----