diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-04-25 09:41:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-25 09:41:25 +0200 |
commit | 061ed420ec2dc97e2a922a6f02992869089cefb3 (patch) | |
tree | 1727d0497c3823d0f9e56f83b6776788a4c82be9 /git-send-email.perl | |
parent | Merge branch 'bc/send-email-qp-cr' (diff) | |
parent | send-email: don't cc *-by lines with '-' prefix (diff) | |
download | git-061ed420ec2dc97e2a922a6f02992869089cefb3.tar.xz git-061ed420ec2dc97e2a922a6f02992869089cefb3.zip |
Merge branch 'bs/sendemail-tighten-anything-by'
The recently added feature to add addresses that are on
anything-by: trailers in 'git send-email' was found to be way too
eager and considered nonsense strings as if they can be legitimate
beginning of *-by: trailer. This has been tightened.
* bs/sendemail-tighten-anything-by:
send-email: don't cc *-by lines with '-' prefix
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index 751cabf479..24859a7bc3 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -1699,7 +1699,7 @@ sub process_file { # Now parse the message body while(<$fh>) { $message .= $_; - if (/^([a-z-]*-by|Cc): (.*)/i) { + if (/^([a-z][a-z-]*-by|Cc): (.*)/i) { chomp; my ($what, $c) = ($1, $2); # strip garbage for the address we'll use: |