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 '-' prefixmaint
commit
061ed420ec
|
|
@ -1699,7 +1699,7 @@ sub process_file {
|
||||||
# Now parse the message body
|
# Now parse the message body
|
||||||
while(<$fh>) {
|
while(<$fh>) {
|
||||||
$message .= $_;
|
$message .= $_;
|
||||||
if (/^([a-z-]*-by|Cc): (.*)/i) {
|
if (/^([a-z][a-z-]*-by|Cc): (.*)/i) {
|
||||||
chomp;
|
chomp;
|
||||||
my ($what, $c) = ($1, $2);
|
my ($what, $c) = ($1, $2);
|
||||||
# strip garbage for the address we'll use:
|
# strip garbage for the address we'll use:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue