diff options
-rw-r--r-- | quilt/mail.in | 8 |
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 |