On 08:47 Thu 18 Mar , Gary Johnson wrote: > > It's the way it's supposed to work, but it is confusing. > > Folder hooks are processed as the manual says. However, the push > command pushes its arguments onto a stack and mutt's input parser > later pops those arguments off the stack to parse and execute them. > It's that pushing and popping that reverses the order of your pushed > commands. The solution is to enter those folder hooks that contain > pushes into your muttrc "upside down", like this: > > folder-hook inbox 'push :inbox' > folder-hook . 'push :default' > > It would be nice to be able to put commands into a queue rather than > onto a stack. I don't know why it is the way it is. > > Regards, > Gary That makes a lot of sense. Thank you for the explanation. Perhaps they should at least write it into the manual. I just found it in the wiki
http://wiki.mutt.org/?DebugConfig but I guess some beginners like me may feel really confused about the order. Thanks Peng