Merge branch 'cb/send-email-sanitize-trailer-addresses'

Address-looking strings found on the trailer are now placed on the
Cc: list after running through sanitize_address by "git send-email".

* cb/send-email-sanitize-trailer-addresses:
  git-send-email: use sanitized address when reading mbox body
This commit is contained in:
Junio C Hamano
2024-07-16 11:18:56 -07:00
2 changed files with 45 additions and 2 deletions

View File

@ -1847,9 +1847,9 @@ sub pre_process_file {
$what, $_) unless $quiet;
next;
}
push @cc, $c;
push @cc, $sc;
printf(__("(body) Adding cc: %s from line '%s'\n"),
$c, $_) unless $quiet;
$sc, $_) unless $quiet;
}
}
close $fh;