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
This commit is contained in:
Junio C Hamano 2019-04-25 16:41:25 +09:00
Родитель 5983ddc165 9c545816be
Коммит 061ed420ec
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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: