It seems when multiple hooks exist for the same context (in particular, multiple folder-hooks matching on ".*"), they're executed in reverse order of appearance in .muttrc.
>From the 1st day I started using mutt seriously I had this in .muttrc: folder-hook .* "exec collapse-all" But, this resulted in the last message scrolling up to some apparently random position when I entered a folder. So, a couple of times I tried adding folder-hook .* "exec current-bottom" but this seemed to have no effect whatsoever, so I removed it again. Today I finally had the bright idea of doing an uncollapse in a folder right after entering it, and I noticed this placed the last message exactly in the bottom row, where it belongs. So, it was clear that the collapse caused the misalignment. After thinking for a few minutes, I added the hook with current-bottom again, but this time _before_ the hook with collapse-all. And voila! problem solved. >From this behavior it is clear that the "second" hook in fact runs first, and vice versa. It would be nice to document this in the reference :-P -- Please *no* private copies of mailing list or newsgroup messages. Rule 420: All persons more than eight miles high to leave the court.