On Tue, Sep 28, 2010 at 08:02:36AM -0700, fe...@crowfix.com wrote:
So is it possible to execute external commands before and after
reading a specific maildir? folder-hook looks to be pre-read only.
I'm not sure if using '.' for the folder-hook maildir would execute
the post-read command if mutt were quit before reading another maildir.
The folder-hooks are primarily for setting Mutt configuration options. You
can fake a post-read command by pushing a shell command that will be executed
once the mailbox is loaded with something like this:
folder-hook +foo '<shell-command>~/bin/myscript<enter>'
However, there no way to make Mutt open a *different* mailbox like you
described in your message.
me