提交 7ac17529 编写于 作者: A Ask Bjørn Hansen 提交者: Junio C Hamano

send-email: Don't add To: recipients to the Cc: header

Signed-off-by: NAsk Bjørn Hansen <ask@develooper.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 59adeef4
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册