summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-10-11 04:40:30 +0200
committerAndreas Gruenbacher <agruen@schurl.(none)>2012-01-23 19:40:38 +0100
commit1edd83d133c9863108e059f4484086bebcf52ae7 (patch)
tree0e33fab78833eedb6f5438a7e6acb25455e17e28
parente8e69a32ee8cbd37e95305301958745f28353055 (diff)
downloadquilt-1edd83d133c9863108e059f4484086bebcf52ae7.tar.gz
quilt mail: CC people in more common patch headers
In addition to Signed-off-by and Acked-by, also CC people in Suggested-by, Reviewed-by, Requested-by, Reported-by, and Tested-by headers.
-rw-r--r--quilt/mail.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/quilt/mail.in b/quilt/mail.in
index 5752542..de23878 100644
--- a/quilt/mail.in
+++ b/quilt/mail.in
@@ -370,10 +370,14 @@ then
# addresses that contain commas and add quotes, e.g.,
# Last, First <email> => "Last, First" <email>
+ set -- Signed-off-by Acked-by Suggested-by Reviewed-by Requested-by Reported-by Tested-by
+ set -- "$*"
+ set -- ${*// /\\|}
+
sed -n -e "/\<${LOGNAME:-$(whoami)}@/d" \
-e 's/^\(To\|Cc\):/Recipient-\1:/ip' \
- -e 's/^\(\(Signed-off-by\|Acked-by\):[ '$'\t'']*\)\([^"]*\(,[^"]*\)\+[^" '$'\t'']\)\([ '$'\t'']*<.*>\)/\1"\3"\5/i' \
- -e 's/^\(Signed-off-by\|Acked-by\):/Recipient-Cc:/ip' \
+ -e 's/^\(\('"$*"'\):[ '$'\t'']*\)\([^"]*\(,[^"]*\)\+[^" '$'\t'']\)\([ '$'\t'']*<.*>\)/\1"\3"\5/i' \
+ -e 's/^\('"$*"'\):/Recipient-Cc:/ip' \
$tmpdir/header
echo