[neomutt-users] can a "hook" execute a shell command?

s0cial+neowoof at kakaomilchkuh.de s0cial+neowoof at kakaomilchkuh.de
Sun Oct 13 09:23:16 CEST 2019


> I checked the neomutt documentation and it says that the hook command
> can execute something with backticks:
> > shutdown-hook 'echo `mbsync -a`'
> 
> But whenever I do that, I get:
> > echo: unknown command

Without having tried just now, I think this should work[1]:

    shutdown-hook 'exec shell-escape "mbsync -a"'

`exec` being a command to execute functions like `shell-escape`.


Good luck!
 Robert


1: I had a similar problem with `reply-hook`s, so it should not be pure
guess-work.


More information about the neomutt-users mailing list