From: Florian Wehner Date: Sat, 24 Nov 2018 13:52:42 +0000 (+0100) Subject: How to run shell commands in global-hooks X-Git-Tag: 2019-10-25~494 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34c036f06e4228cacf749c214a469398835b3397;p=neomutt How to run shell commands in global-hooks Addition is based on issue https://github.com/neomutt/neomutt/issues/1353 --- diff --git a/doc/manual.xml.head b/doc/manual.xml.head index 792158a4e..ee8e67981 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -12501,6 +12501,18 @@ set abort_noattach_regex = "\\<attach(|ed|ments?)\\>" + + The commands are NeoMutt commands. If you want to run an external + shell command, you need to run them like this: + + +startup-hook 'echo `action.sh ARGS`' + + + The single quotes prevent the + backticks from being expanded. The echo command + prevents and empty command error. + Timeout Hook