]> granicus.if.org Git - neomutt/commitdiff
How to run shell commands in global-hooks
authorFlorian Wehner <florian@whnr.de>
Sat, 24 Nov 2018 13:52:42 +0000 (14:52 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 24 Nov 2018 15:18:15 +0000 (15:18 +0000)
Addition is based on issue https://github.com/neomutt/neomutt/issues/1353

doc/manual.xml.head

index 792158a4e32d7e6fb0d4009d6579aef1d36332a5..ee8e67981d92bbf40707389c3780d95e47c5334f 100644 (file)
@@ -12501,6 +12501,18 @@ set abort_noattach_regex = "\\&lt;attach(|ed|ments?)\\&gt;"
             </para>
           </listitem>
         </itemizedlist>
+        <para>
+          The commands are NeoMutt commands. If you want to run an external
+          shell command, you need to run them like this:
+        </para>
+<screen>
+startup-hook 'echo `action.sh ARGS`'
+</screen>
+        <para>
+          The single quotes prevent the
+          backticks from being expanded. The <literal>echo</literal> command
+          prevents and empty command error.
+        </para>
 
         <sect3 id="timeout-hook-intro">
           <title>Timeout Hook</title>