After deleting or saving a message in pager view in the MUA mutt, the program remains in pager view and jumps to the next message in the current folder. Can this default behavior be changed so that after deleting or filing an email, the pager mode is exited and the folder index is displayed?
You want to execute two functions (
This will bind
You can do the same for
If you want to alter the save location interactively I unfortunately don't have a tip how to change it, I'd try to use/leverage save-hooks
I solved it this way:
This also prevents to mark the next message as read
To make a macro for this that doesn't close mutt when you're on the last message you can do something like this:
Or (if you're using Gmail)
This way since
Note that this does mark the next message as read if it was not already. You could probably add something to the end of that to fix that if you wanted to though.