Skip to content

Commit 061ed42

Browse files
committed
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
2 parents 5983ddc + 9c54581 commit 061ed42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ sub process_file {
16991699
# Now parse the message body
17001700
while(<$fh>) {
17011701
$message .= $_;
1702-
if (/^([a-z-]*-by|Cc): (.*)/i) {
1702+
if (/^([a-z][a-z-]*-by|Cc): (.*)/i) {
17031703
chomp;
17041704
my ($what, $c) = ($1, $2);
17051705
# strip garbage for the address we'll use:

0 commit comments

Comments
 (0)