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

Steve Quezadas steveeq1 at gmail.com
Sun Oct 13 00:58:59 CEST 2019


Is there any way to have a "hook" execute a shell command? Either through a:
- <pipe-entry>
- tick marks (``)
- through "a macro"

I checked the neomutt documentation (
https://neomutt.org/feature/global-hooks#targetText=Run%20a%20command%20when%20NeoMutt%20shuts%20down%2C%20before%20closing%20the%20last%20mailbox&targetText=This%20feature%20implements%20a%20hook,useful%20to%20users%20of%20notmuch.)
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

I tried doing a:
> shutdown-hook 'echo `ls`'

and I still get the same error. Am I missing something?

- Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20191012/45364328/attachment.html>


More information about the neomutt-users mailing list