mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
send-email: Don't add To: recipients to the Cc: header
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
59adeef48f
commit
7ac1752929
@ -557,7 +557,11 @@ sub sanitize_address
|
||||
sub send_message
|
||||
{
|
||||
my @recipients = unique_email_list(@to);
|
||||
@cc = (map { sanitize_address($_) } @cc);
|
||||
@cc = (grep { my $cc = extract_valid_address($_);
|
||||
not grep { $cc eq $_ } @recipients
|
||||
}
|
||||
map { sanitize_address($_) }
|
||||
@cc);
|
||||
my $to = join (",\n\t", @recipients);
|
||||
@recipients = unique_email_list(@recipients,@cc,@bcclist);
|
||||
@recipients = (map { extract_valid_address($_) } @recipients);
|
||||
|
Loading…
Reference in New Issue
Block a user