Skip to content

Commit

Permalink
send-email: Don't add To: recipients to the Cc: header
Browse files Browse the repository at this point in the history
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ask Bjørn Hansen authored and Junio C Hamano committed Nov 20, 2007
1 parent 59adeef commit 7ac1752
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7ac1752

Please sign in to comment.