]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
README: Provide an example hook script
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 14 Jun 2017 17:57:29 +0000 (10:57 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Wed, 14 Jun 2017 21:57:24 +0000 (14:57 -0700)
Provide a simple hook script that just looks at the X-Aiaiai-Project
header that could be added, with e.g:

git format-patch --add-header="X-Aiaiai-Project: foo" while formatting
patches.

This is enough to avoid per-project email addresses.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
doc/README

index c2ebd1f70bc9a4ffaecd8be25d43f01ac33fa948..ff140ccfed4173b95dddf7bfee935408e77816f7 100644 (file)
@@ -138,7 +138,13 @@ aiaiai+foo@domain.tld.
 In case you would want to use the same aiaiai recipient email address for all
 projects, you need to create a hook file which will be looking at the
 X-Aiaiai-Project header in the mbox file, and output it to stdout (see:
-email/aiaiai-email-test-patchset)
+email/aiaiai-email-test-patchset). An example hook script could look like this:
+
+#!/bin/sh
+CFGFILE="$1"
+MBOX="$2"
+grep "X-Aiaiai-Project" $MBOX
+ret=$?
 
 1.3 Non-e-mail scripts
 ~~~~~~~~~~~~~~~~~~~~~~